supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Add Splatting #488

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria

Should be reasonably easy with a shader

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/488

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Partially done in SVN. Atm we are limited by irrlicht's maximum number of textures (4) which limits us to 3 splatting textures or 2 splatting textures + 1 lightmap

TODO: 1) get irrlicht folks to increase texture count or work around it 2) add support for lightmaps 3) (maybe) add support for normal maps 4) allow orienting textures. For instance a road texture should be mapped to go along the curve of the road, but the grass next to the road will be mapped more flatly. The simplest approach to fix that, which is to have one UV mapping for each splatting texture, is not possible because irrlicht supports only 2 UV mapping layers

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria 5) when using splatting, there is not lambert shading (i.e. no shadows on faces away from the sun)

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Item 5 started in r10435. What's left to do is to use the real position of the sun

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Using sun direction done in r10438.

What's left : TODO: 1) get irrlicht folks to increase texture count or work around it 2) add support for lightmaps 3) (maybe) add support for normal maps 4) allow orienting textures. For instance a road texture should be mapped to go along the curve of the road, but the grass next to the road will be mapped more flatly. The simplest approach to fix that, which is to have one UV mapping for each splatting texture, is not possible because irrlicht supports only 2 UV mapping layers

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria 1) done by integrating our own irrlicht.

2) should be reasonably easy but is not required for 0.8. 3) is still a maybe 4) may need to wait for irrlicht 2.0 :)

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Current state is good enough, we can open separate tickets for other issues if needs be