Page 1 of 1

Sky renderer

Posted: Wed Apr 07, 2010 5:50 pm
by zuzuf
Since r2557 the sky renderer has been replaced. Now it renders a sky box (it computes the 6 required textures at loading time from a spherical one) which is both faster (because it requires much fewer triangles) and nicer (because there is no polar artifacts and because rendering a cube is easily done without errors which is not the case with a sphere).

Since there is less geometry in a sky box than in a sky dome, it should be able to run on an Intel chip without slowing down the game too much :)

Re: Sky renderer

Posted: Wed Apr 07, 2010 7:01 pm
by yoshi314
ok, time for a dumb question - how do we rotate the camera to actually see it?

Re: Sky renderer

Posted: Wed Apr 07, 2010 7:46 pm
by zuzuf
Left click on the camera mode icon (bottom left of the screen), then hold middle button to rotate the camera.

Re: Sky renderer

Posted: Thu Apr 08, 2010 6:55 am
by Balthazar
Or look on the water - there is a reflection of sky :P

Re: Sky renderer

Posted: Thu Apr 08, 2010 1:56 pm
by xpoy
:P up babax.

can't wait to see the sky.

Re: Sky renderer

Posted: Thu Apr 08, 2010 3:21 pm
by Balthazar
So now we have to use spherical sky textures, that are converted to cubic ones during TA3D initialising process?

Re: Sky renderer

Posted: Thu Apr 08, 2010 5:27 pm
by zuzuf
That's right. You use either half sphere (upper part only) or full sphere maps (it replaces uniform color background) which are projected on a cube which is rendered instead of the old sky dome :)

Re: Sky renderer

Posted: Fri Apr 09, 2010 3:08 pm
by xpoy
HIGN ! HIGN! SEXY CAT!