SC4 Devotion Forum Archives

Other City-Building Games => Other games => [Archived] CityMania - Open Source Sim City => Topic started by: croxis on May 25, 2010, 10:31:03 AM

Title: Terrain Engine
Post by: croxis on May 25, 2010, 10:31:03 AM
These are the same exact texture files.

Old:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fcitymania.org%2Fgallery%2Fvar%2Fthumbs%2FTerrain-Engine-tests%2Fcmpre.jpg%3Fm%3D1274807007&hash=65d5cf4b0f7dfbb5b520e432528240eb0c6f0c95) (http://citymania.org/gallery/var/resizes/Terrain-Engine-tests/cmpre.jpg?m=1274807007)

With Mipmapping:
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fcitymania.org%2Fgallery%2Fvar%2Fthumbs%2FTerrain-Engine-tests%2Fcmmipmap.png%3Fm%3D1274805695&hash=9470d74831a5b1ea85f46bd7d4e541049bfbf9ef) (http://citymania.org/gallery/var/resizes/Terrain-Engine-tests/cmmipmap.png?m=1274805695)


So far the mipmapping not only improves the quality of the image, but the fps shot up 2.8x. I have one more improvement I wish to do that is a bit more code intensive, but should help performance as well.

Edit: Looks like the optimization I was aiming for isn't going to happen at this ti,e. Regardless, I am very happy with this improvement.
Title: Re: Terrain Engine
Post by: JoeST on May 25, 2010, 11:07:46 AM
Sweeet, glad you got some speed up :D
Title: Re: Terrain Engine
Post by: Nique on May 25, 2010, 03:28:22 PM
Nice work Croxis
Title: Re: Terrain Engine
Post by: Orange_o_ on May 25, 2010, 03:31:29 PM
You make really an incredible work &apls
Title: Re: Terrain Engine
Post by: tomkeus on May 25, 2010, 03:39:35 PM
croxis: add a directional light. It will look even nicer.
Title: Re: Terrain Engine
Post by: croxis on May 26, 2010, 07:24:04 AM
There is one, it is just pointing straight down :D
Title: Re: Terrain Engine
Post by: tomkeus on May 26, 2010, 07:26:21 AM
Put it at around 45 degrees relative to the horizontal plane, and also add one weaker ambient light to lighten the shadow areas a bit. That's the setup I use. It looks good.