Archived

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

d000hg

repeating landscapes

Recommended Posts

Still can''t figure out how I''d make my terain repeat when you got to the edge. I guess a simple version could be done, but how do I persuade the camera system to choose to draw something which is patently not in view cause it''s on the other side of the map? Also, how to make a quadtree deal with this? As a final thought, if you zoomed out so you could see all four edges of the map, wouldn''t it start tiling the entire map?
Read about my game, project #1 NEW: see my progress from last week - join the mailing list to get this and other updates every week!
John 3:16

Share this post


Link to post
Share on other sites
if its like mine, i would set the translation matrix to the edge and draw it again. then when you reached the edge, it would take you and put you on the opposite side, and try to make it not look like you ''snapped'' anywhere.

Share this post


Link to post
Share on other sites
Don''t know yet! You could just look at the heights of the vertices - easy tofind vertices nearest any point with a regular heightmap. Or you''ll probably want to use a ray triangle intersection test. Search the forums or google or wherever to know about it.



Read about my game, project #1

NEW: see my progress from last week - join the mailing list to get this and other updates every week!



John 3:16

Share this post


Link to post
Share on other sites