Transparancy in Meshs

rifter1818

Well-known member
Joined
Sep 11, 2003
Messages
255
Location
A cold dark place
i want to render a series of meshs, makeing each one less transparrant to give a blur effect.... How do i set the optamacy (or alpha) value for the whole mesh?
Code:
n = ((2 * distance) + width) / width
for i = 1 to n
translateworld(interpolatepoints(p1,p2,1/i))  gets a poing 1/nth allong the way from point 1 to point 2
mesh.transparancy = (cbyte(255 / n)) the part i need to know how to do
mesh.render
next i
Any ideas?
 
You will want to modify the alpha component of your material color. Also set the correct alpha blending render states if you dont already.
 
Back
Top