Terrain Data

Started by
12 comments, last by Todd Casey 23 years, 5 months ago
quote:
Do you also pre-calculate texture coords per vertex?


Well, I having a hard time deciding on how to handle textures.

Right now, I''m doing simple texturing: tiling the same texture
over the terrain. And the textures are mapped directly onto
on a quad poly, whatever its vertices are, no matter how big it
is. And, as you might guess, areas where the heightmap values
vary alot, like peaks, the quads are stretched, and so are the
textures. This causes distortion, and I don''t like it very much.

What I am currently looking into is procedural texturing. No
more tiles. Instead, the whole terrain will be uniquely textured.
I could probably create one huge textured bitmap on startup,
and then cerate a function that says give me the texture pixel
for this x,y,z spot on the terrain. I think some games do it
this way.
Advertisement
has anyone got a link for articles on Procedural Texturing?
If you are interrested - I've just released the full source-code of my little landscape demo. You can download it from my site: baskuenen.cfxweb.net

I also included 3 textures (256x256x24bit TGA).
I used this landscape in my 3D game engine, that you can also download from this site.



Edited by - baskuenen on November 6, 2000 9:51:48 PM
Baskuenen,
Thanks for the code man - been waiting to see it ever since you first showed that screenshot on the forum - its a really impressive looking demo - I''m really interested in how you made it run so fast. Also - did you make the textures - they''re amazing.

Chris

This topic is closed to new replies.

Advertisement