Archived

This topic is now archived and is closed to further replies.

Psybr

Terrain gone wrong

Recommended Posts

link: http://www10.brinkster.com/psykr/scrn.JPG I have this really basic CLOD terrain renderer, but right now I''m struggling to get it to draw even a triangle. it looks like a wall because i can''t get the height map thing down, and I''m looking at it from the top down. As far as I can tell, I initialize all my data, so it should be a flat plane, but for some reason, since VC++ fills all uninitialized data with 0xcc or something, running it in debug mode gives those long lines. Anyway, I just wanted to rant about how annoying this is.

Share this post


Link to post
Share on other sites
just so you know, you shouldn''t need to make an ''x'' in each terrain quad, you only need one edge. that is, unless you have a vertex in the middle which can result in smoother terrain, but harder to map to an X by Y heightmap.

check out memset if you don''t want to initialize memory, but don''t want 0xCC.

Share this post


Link to post
Share on other sites