- Home /
Polygon buffering/offsetting?
My iPhone game can already build meshes but they use a single texture -- I want to automatically apply a different texture to the edges. There seems to be two main goals -- smart mesh creation and smart UV mapping so that the texture is mapped appropriately. I have no idea where to start for UV mapping, but this thread offers a starting point for generating the meshes (NOTE: I need to go inward to get the edges, unlike the example in that thread.
What I'm kind of lost on is how I'd check for tight spaces so that the boarder a. doesn't extend outside of the original mesh's space b. doesn't overlap with other parts of the boarder
What I want:
or
Examples found in other games:
How do they do it?
Edit: http://www.cgal.org/Manual/3.2/doc_html/cgal_manual/Straight_skeleton_2/Chapter_main.html looks like what I'm looking for is called Straight Skeleton
That skeleton stuff looks really interesting! Be sure to post back if you figure it out.
Answer by Muzz5 · Jun 13, 2011 at 08:39 PM
This is probably not the way you want to do it, but you could just go to your texturing program (say Photoshop) and add those side details in? It'll save you a headache wondering about it.
They're procedural meshes generated at runtime (built in a level editor I made). The texturing needs to be more or less automated so that users can easily make their own levels. Also, having different textures for each shape would severely bloat the size of the game..
http://www.youtube.com/watch?v=agvntUBpUF4 this is my game I'd like to use this for
Your answer
Follow this Question
Related Questions
Procedural Mesh UVs Edge Case? 1 Answer
save meshfilter for retrieval even after app termination iphone android 1 Answer
Custom Mesh UV Problem 1 Answer
procedural texture uv error 0 Answers
Mirror vertices procedurally 2 Answers