I have a car mesh with 2 surfaces. One surface is the car, the other the shadow (just a quad, 4 vertex's etc..)
At the moment a black, alpha=.25 brush is applied to the shadow surface which is a bit naff!! What I'm trying to do is create a texture which has the detail of the car and paint the surface with it. I'm creating the texture with the inbuilt comand :-
shadow_texture=CreateTexture(64,64)
I'm sure someone has come across this before but what I need is for a color other than black to be transparent when printing the shadow onto my track and for only the black to be visible. I also want it so that the black is alpha'd so it's not so dark.
I know that when you create a texture this way it automatically has alpha=1 and you have to do something like this ** to make black transparent but I want to only see the black parts on screen.
**
For x = 0 To TextureHeight:For y = 0 To TextureWidth
WritePixel x,y,0:Next:Next
Can anyone help??
At the moment a black, alpha=.25 brush is applied to the shadow surface which is a bit naff!! What I'm trying to do is create a texture which has the detail of the car and paint the surface with it. I'm creating the texture with the inbuilt comand :-
shadow_texture=CreateTexture(64,64)
I'm sure someone has come across this before but what I need is for a color other than black to be transparent when printing the shadow onto my track and for only the black to be visible. I also want it so that the black is alpha'd so it's not so dark.
I know that when you create a texture this way it automatically has alpha=1 and you have to do something like this ** to make black transparent but I want to only see the black parts on screen.
**
For x = 0 To TextureHeight:For y = 0 To TextureWidth
WritePixel x,y,0:Next:Next
Can anyone help??