I'm currently in the process of creating my own depth shadow mapping so I can use alpha textures.
Now I have the problem that the UV-Coordinates for the Depth texture are completly wrong.
How do I calculate them either within Ogre or a Shader?
Does know how I can caluculate the texture-UV so I get the same UV that I would if I used Ogre3ds default shadow textures?
Calvulate Shadow Map UV Coordinates for Spotlight
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
- tod
- Troll
- Posts: 1394
- Joined: Wed Aug 02, 2006 9:41 am
- Location: Bucharest
- x 94
- Contact:
Re: Calvulate Shadow Map UV Coordinates for Spotlight
Look into Ogre shaders....
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
Re: Calvulate Shadow Map UV Coordinates for Spotlight
Can you give ma link?
Or are you suggesting that I should just change the Shadow materal-shader?
Becaus I already tried that, but didn't find anything about alpha textures.
Or are you suggesting that I should just change the Shadow materal-shader?
Becaus I already tried that, but didn't find anything about alpha textures.
- tod
- Troll
- Posts: 1394
- Joined: Wed Aug 02, 2006 9:41 am
- Location: Bucharest
- x 94
- Contact:
Re: Calvulate Shadow Map UV Coordinates for Spotlight
You mean transparent parts not having a shadow? Some advice here.
Basically you add the diffuse texture to the shadow caster material and reject pixels what have a certain alpha.
Basically you add the diffuse texture to the shadow caster material and reject pixels what have a certain alpha.
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
Re: Calvulate Shadow Map UV Coordinates for Spotlight
Thx, I'll have a look at that.