Different type of transparency?

Posted By: Impaler

Different type of transparency? - 02/17/07 08:57

Hi,
I updated 3dgs from Version 6.1 to 6.5 a while ago, and in 6.1, a way for making parts of models transparent was to make the texture black in those places and set the transparent flag to on with the alpha at 100. Now, if I do that, the whole model looks transparent. How can I get some parts transparent while others opaque?
Posted By: xXxGuitar511

Re: Different type of transparency? - 02/17/07 17:25

flare or overlay flags will do it.

my.flare = on;
my.overlay = on;
Posted By: Impaler

Re: Different type of transparency? - 02/18/07 10:46

That makes a gradient of transparency, yes, but I need only the parts between the leaves of a tree to be transparent, and the leaves are no completely white or black!
Posted By: Robotronic

Re: Different type of transparency? - 02/18/07 11:20

The old overlay effect (where black was treated as transparent) didnīt look very nice on leaves and round shapes. I donīt even know, if it works on models.

This is maybe a better way:

Make the trunk with the branches as a model with a regular skin.

For the leaves: make a separate mesh (a plane will do) and use a separate TGA or DDS texture with a mask in the alpha channel, where the actual leaves are white (opaque), and the surrrounding area is black. For the transition use a small gradient (3 pixels or something like this).
Apply this .tga pic to the plane and copy and place the plane, wherever you want leaves on your tree.
I would now use two separate models (trunk only and the mesh with the leaves). The leaves model can now get the Improved Overlay material, that can be found in the Wiki. With this material you can avoid Z-Sorting errors and the blurred transitions at the borders of the leaves are replaced by hard (but rounded) edges.
I always used this method with double sided faces (for the leaves), but I donīt know if this is necessary.
© 2024 lite-C Forums