Terrain

Simon,
[img:2rtq6wby]http://www.particle-x.com[/img:2rtq6wby]
<!– m –><a class="postlink" href="http://www.particle-x.com">http://www.particle-x.com</a>&lt;!– m –>
is asking for user name and password………. :-/

What now?

Les

Just a pic of a terrain I made. I made everything myself except the heightmap used to generate it. andnbsp;;D

To make the texture, I wrote a program in c++ that takes 4 textures (In this case dirt, grass, rock, and snow) and a heightmap, and generates a texture for a terrain. This is my first andquot;successfullandquot; generation, although the program is still VERY buggy, and i havent yet implemented blending (I.E. the dirt smoothly fades into the grass) but its getting there. Hopefully I’ll release it when im done.

Just thought i’d share my latest work <!– s;) –><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink" /><!– s;) –>

later…

Simon

Thanks guys.

Les:
Yes, you supply the 4 bitmaps for the textures, so it can be anything you want.
There is an early version of the program here:
[img:1slnbms2]http&#58;//www&#46;particle-x&#46;com/terrain%20gen/tgen&#46;zip[/img:1slnbms2]
<!– m –><a class="postlink" href="http://www.particle-x.com/terrain%20gen/tgen.zip">http://www.particle-x.com/terrain%20gen/tgen.zip</a>&lt;!– m –>

Look at the readme to see how it works.
Note that right now it only supports 24 bit Bitmaps, so you’ll probably get errors if you dont use them.

I also have an updated Screenshot now that I got the blending to work:

[img]http://www.particle-x.com/terrain%20gen/render.jpg’]

If you find any bugs in the program, let me know. Also I’d be interested in what people use it for, so please post screens <!– s;) –><img src="{SMILIES_PATH}/icon_e_wink.gif" alt="" title="Wink" /><!– s;) –>.
Next version hopefully I’ll have a UI.

Have fun,

Simon

Simon,
That is excellent!! andnbsp;;D

I would definitely be interested in getting a copy of the program when youre finished with it.

Will the program allow the use of colors other than what you show here, so that we could generate different types of textures for terrain?

Les

That is cool! Just curious, if you wouldn’t mind sharing. . .to generate the texture, do you just lay out a kind of grid of tiny squares or regions and sample the heightmap at each grid square, and then color each tiny grid square depending on height? Or do you use actual textures you have prepared (in some paint program) and blend them together?

EDIT: oops andnbsp;:-[ andnbsp;Nevermind, I just caught the andquot;4 textures (dirt, grass, rock, snow)andquot; phrase. andnbsp;Sorry andnbsp;::)

Testing it right now.

Hmm thats really wierd. If it doesnt go away soon I’ll contact my host.

c ya

Simon

You must be logged in to reply in this thread.

7 posts