Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Different type of transparency? #112458
02/17/07 08:57
02/17/07 08:57
Joined: Aug 2006
Posts: 128
Papua New Guinea
I
Impaler Offline OP
Member
Impaler  Offline OP
Member
I

Joined: Aug 2006
Posts: 128
Papua New Guinea
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?


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).
Re: Different type of transparency? [Re: Impaler] #112459
02/17/07 17:25
02/17/07 17:25
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
flare or overlay flags will do it.

my.flare = on;
my.overlay = on;


xXxGuitar511
- Programmer
Re: Different type of transparency? [Re: xXxGuitar511] #112460
02/18/07 10:46
02/18/07 10:46
Joined: Aug 2006
Posts: 128
Papua New Guinea
I
Impaler Offline OP
Member
Impaler  Offline OP
Member
I

Joined: Aug 2006
Posts: 128
Papua New Guinea
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!


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).
Re: Different type of transparency? [Re: Impaler] #112461
02/18/07 11:20
02/18/07 11:20
Joined: Dec 2005
Posts: 414
Munich, Germany
R
Robotronic Offline
Senior Member
Robotronic  Offline
Senior Member
R

Joined: Dec 2005
Posts: 414
Munich, Germany
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.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1