The tutorial
PART THREE
to do transparency we will need to set the object so that the black around the outside is not drawn.
set object transparency 2,2
the first '2' is the object number and the second one is the flag.
now we must make the plain semi-transparent.
set alpha mapping on 2,45
this makes the object semi-transparent. the '2' is the object number and the 45 is the transparency amount, this can be anywhere from 1(fully transparent) to 100(fully opaque).
so that is the transparency sorted - the image i provided looks better with a near-black background.
for this effect to work best you need it to always face the camera.
this can be done with the point object command.
here is an example i made of how this can be used.
(the cube texture is included in this post)
load image "texture.bmp",1
load image "texturecube.bmp",3
load object "cube.x",1
texture object 1,3
autocam off
color backdrop 1
make object plain 2,450,450
set object cull 2,0
texture object 2,1
set object transparency 2,2
set alpha mapping on 2,55
do
point object 2,camera position x(),camera position y(),camera position z()
rotate object 1,object angle z(1)+1,object angle y(1),object angle z(1)+0.5
loop
thanks to deathead for the sig!
Projects: alien abductor-5%