Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jul 03, 2018 at 11:14 PM by RatMoleRat for the following reason:

Problem is resolved, and question doesn't actually apply to the problem

avatar image
0
Question by RatMoleRat · Jul 03, 2018 at 03:25 PM · procedural meshuvs

How to generate UVs on a mesh that isn't flat on any axis?

I have a procedurally-generated mesh that I need to generate UVs for. The problem is that all of the triangles are at angles on all of the axis, since the y-values are changed based on Perlin noise and the x- and z- are what forms the top-down square shape of the mesh. Since UVs are a Vector2, I'm not sure how to translate that to the curved shape of the mesh.

Edit: My issue is that there is what looks like a black plane going through the mesh. Here's some pictures of it. I was thinking this was caused by the UVs being wrong, but it may not be. picture of mesh picture of mesh The first is a picture of the side view of the mesh in the scene, showing the black part. And the second is something I just noticed - the bottom of the mesh in the inspector view (like when you click on the asset from the folders in the project tab) looks different than the top - bigger triangles. I think that may be related to my issue, but I have no idea why that is.

meshpreviewviewbutton.png (58.2 kB)
meshquestionsideview.png (69.8 kB)
Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · Jul 03, 2018 at 06:09 PM 0
Share

this mostly depends on how you want this setup. usually you just assign the front left vertex a Vector2.zero and the rear right a Vector2.one. The question is how you interpolate the rest in between. will it be flat mapped, like when looking from the top giving values based on their xz position, or does it depend on how big the faces are?... you have to decide that first.

avatar image RatMoleRat · Jul 03, 2018 at 06:20 PM 0
Share

@hexagonius If I map it on the x-y, where do the z-values fall in? Do I account for them at all? The mesh is going to be walked on by the player, so I need it to look alright when they look down or straight across from their position on top of it. Figuring out how to make that work is what I'm struggling with.

avatar image hexagonius RatMoleRat · Jul 03, 2018 at 06:23 PM 0
Share

I meant xz, sorry for that.

avatar image RatMoleRat hexagonius · Jul 03, 2018 at 06:30 PM 0
Share

Oh, okay. Do I need to adjust for the y then (going along the x-z)? I have tried just going across the xz, but then there's a plane through the mesh that is black on the bottom. I'm pretty sure this is because of the lack of adjustment of UVs on the y -axis - maybe not though?

Show more comments

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

87 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is it safe to assume that all platforms can support a mesh with 4 sets of UVs ? 0 Answers

Procedural Mesh UV problem 0 Answers

UV Mapping: extra pixels either side 1 Answer

UV mapping a hexagon, starting from a 3D space 1 Answer

Surface Shader Ignoring Mesh UVs 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges