Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

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?

Posted
You will want to modify the alpha component of your material color. Also set the correct alpha blending render states if you don't already.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...