View Full Version : Getting vertexes on grid with Displace
XepptizZ 10-09-2005, 10:16 AM When using the displace modifier as a terrainheightmap, how could one make sure every vertex has a location without decimals? Or even with 16 steps? Meaning taht the coordinates of every vertex has atleast a value of a multiplication of 16 i.e 0, 16, 32, 48, 64
The reason I'm asking this is taht the game I intend to use the terrain for likes "clean" built terrain to render, no things like y:2.0112 x:0.12458 z:1337.051.
I find thanking in advance bogus.
|
|
A fairly simple script could parse all the verts in a piece of terrain and then move each vert to the closest 16 interval. You would also need to make sure that your exporter is exporting the integer value and not a float if you don't want any decimal values, not even 16.000.
XepptizZ
10-10-2005, 09:43 PM
A fairly simple script could parse all the verts in a piece of terrain and then move each vert to the closest 16 interval. You would also need to make sure that your exporter is exporting the integer value and not a float if you don't want any decimal values, not even 16.000.
Bla, now I need to learn scripting too.
Oh and thnx for the solid and no-nonsense answer.
CGTalk Moderation
10-10-2005, 09:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.