SC4 Devotion Forum Archives

Other City-Building Games => Other games => [Archived] CityMania - Open Source Sim City => Topic started by: croxis on December 02, 2009, 09:41:19 AM

Title: Heightmap/Texture test
Post by: croxis on December 02, 2009, 09:41:19 AM
I've been prototyping the terrain engine code to figure out how to get it to work. The terrain system was easy (yay prebuilt classes!) however figuring out how to texture the bloody thing has been difficult. I finally got a base texture (which does not look good, just warning you). Next step will be attempting to splat the other textures on. My prototype will have the base texture, beach, rock, and snow.

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg81.imageshack.us%2Fimg81%2F7695%2Fheightmaptest.png&hash=54f6d914e226a1a7dd174d157f65c18a7aa8f60b)
Title: Re: Heightmap/Texture test
Post by: tomkeus on December 02, 2009, 12:06:53 PM
I think we will have to ditch geomipmaping and go for paged terrain with reusable index buffers. It will save a lot of performance.

But before that we will have to discuss which game engine to use. Otherwise this is completely pointless.
Title: Re: Heightmap/Texture test
Post by: croxis on December 09, 2009, 01:31:02 PM
Been learning a bit on shaders. I think I might of made some progress.

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F7380%2Fterraindone.th.png&hash=2d0d7a3c4c32acfbb98441649f3c6db8b763b8e6) (http://img38.imageshack.us/i/terraindone.png/)

Now, let's get this game made!
Title: Re: Heightmap/Texture test
Post by: Nique on December 24, 2009, 06:16:41 PM
Great croxis!! great!!  &apls

How is it going by now? (oh dont forget about the jagged egde fix (http://sc4devotion.com/forums/index.php?topic=6920.msg229420#msg229420))
Title: Re: Heightmap/Texture test
Post by: nerdly_dood on December 24, 2009, 07:00:46 PM
That last one looks really realistic! Great job! Just add a different sky and it'd be great.
Title: Re: Heightmap/Texture test
Post by: JoeST on December 25, 2009, 12:02:18 PM
yes thankyou very much Croxis :)

Joe
Title: Re: Heightmap/Texture test
Post by: Djohaal on December 29, 2009, 11:16:20 AM
For the sky, I think we could use a real sky model implementation, instead of pimpy gradients. It'll depend on which engine we are going to use though. If it supported HDR rendering, a real sky would be cake.
Title: Re: Heightmap/Texture test
Post by: croxis on December 29, 2009, 02:54:32 PM
Right now there is no sky, that is just the default grey background in the 3d engine. I can change it to purple though :P

The next trick is going to try and represent the tiles to buy the city limits.