Calvulate Shadow Map UV Coordinates for Spotlight

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

Calvulate Shadow Map UV Coordinates for Spotlight

Post by white_waluigi »

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?
User avatar
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

Post by tod »

Look into Ogre shaders....
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

Re: Calvulate Shadow Map UV Coordinates for Spotlight

Post by white_waluigi »

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.
User avatar
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

Post by tod »

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.
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

Re: Calvulate Shadow Map UV Coordinates for Spotlight

Post by white_waluigi »

Thx, I'll have a look at that.
Post Reply