it is possible to apply a texture on a surface that is not put on the surface? So that the texture is looking plain on the screen but only in the surface.
texCoord.xy=oPos.xy; while oPos contains the mul(position,matWorldViewProj);
untested, but i think thats what it was like
www.earthcontrol.de quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Apply a texture untransformed on a surface
[Re: ello]
#55427 09/16/0516:4909/16/0516:49
I don´t want the texture on the left, i want a plain texture in the shape of the face.
I try to make a "volumic fog" mixed from the normal fog and a fog texture plain on the blocks with a an alpha from the bottom to the top, so higher it is, it get´s more alpha. It´s just a test, maybe it looks terrible.
You should be able to figure it out with that, just adjust your variable names for the inputs and outputs, as well as the texture read. This requires PS2.0, you can change it so it divides the coordinates by the w component in the VS to bring it down to 1.0, but that will cause artifacts on the edges of the screen. I'm working on a workaround for that right now... I'll let you know if I figure a way out.