PDA

View Full Version : quadtree terrain

incus
11-17-2002, 11:22 AM
I am trying to create a quadtree based terrain for a "data driven" game.
I understand how to create the quadtree but am a little fuzzy on the terrain. Here is a sample of the terrain where 0's are a valid portion of the race track and 1's are out of bounds.
11111111111111111111111111111111111111111111111111 11111111111111
11111111111111151111111111111111811111111111111161 11111111111111
11111111111111111111111111111111111111111111111111 11111111115111
11116111111111111111111111111111111111111111111111 11111111111111
11111111111111111111111111161111111111151111111111 11111111111111
11111111171111111111111111111111111111111111111111 71111111111111
51111111111111111111511111111111111111111111111111 11111111111111
11111111111111111111111111111111111111111111111111 11111111111111
11111111611111111111111111111111111111111111111111 11111116111111
11111111111111111111111100000000200000000011111111 11111111111111
11111111111111111110000000000000200000000000001111 11111111111111
11111111111111110000000000000000200000000000000011 11111111111111
11111511111111100000000000000000200000000000000000 11111511111111
11111111111110000000000001111111111110000000000000 01111111111111
11111111111000000000001111115111111111111000000000 00011111111111
11611111100000000000111116111111111111111111000000 00001111111111
11111111000300000011111111111111111161111111111000 00000111116111
11111111000000011111111111111811111111111111111110 00300111111111
11111110000000111111111111111111111111111151111111 00000011111111
11111110000001111111611111111111111111111111111111 10000011111111
11111100000011111111111111111511111111111111111111 11000011111111
15111100000111111111111111111111111117111111116111 11000011115111

one idea was to simpily make a heightfield terrain off of this data and set the y coords to 0. any ideas?
-incus

[This message has been edited by incus (edited 11-17-2002).]

jwatte
11-17-2002, 01:08 PM
What, exactly, is it that you have trouble with?

V-man
11-17-2002, 07:54 PM
You're gone be using a paint program or something to create your track? Use a modeling package or create a simple one yourself.

Anyway, if you know how to convert that thing to a heightfield and texture it right ...

V-man