- Home /
The question is answered, right answer was accepted
Help with generating dynamic mesh
Hi.
I am generating the chunk mesh for a Minecraft style engine, where I create 4 vertices for each side. This is somewhat wasteful as it will give 24 vertices for one cube (6 sides * 4 vertices).
I have tried a couple of times and always end up with something being wrong, either sides missing or normal pointing in the wrong direction and uw being really strange.
Could someone either point me to a good tutorial or somewhere where I can see how it's done. Possibly post some code that shows how it's done.
Best regards Rasmus
Never $$anonymous$$d, just found something that looks good. Don't know why I didn't find it before.
http://wiki.unity3d.com/index.php/ProceduralPrimitives#C.23_-_Box
Follow this Question
Related Questions
Simple plane generation 1 Answer
Multiple MeshFilters for a GameObject 0 Answers
Updating Dynamic Mesh's Collider is Too Slow 1 Answer
Procedurally Generated Cube Mesh 3 Answers
Can you generate a mesh at runtime? 3 Answers