Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (ozgur, howardR, AndrewAMD, exile, Ayumi), 725 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
alpha mapped entity sorting #62578
01/21/06 19:11
01/21/06 19:11
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline OP
Expert
EX Citer  Offline OP
Expert

Joined: May 2002
Posts: 2,541
Berlin
Hello,

For shaders like enviroment mapping and normal mapping my Models have an alpha map in their skin.

The problem is "entity.transparent = off;" doesn´t fix the sorting problem anymore. Does anyone knows a command to fix that problem?

Re: alpha mapped entity sorting [Re: EX Citer] #62579
01/22/06 02:44
01/22/06 02:44
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
make sure you also have entity.flare=off as well ...

Then if it still doesnt work, you must set some renderstates in your shader techniques...here's what you need:

zenable=true;
zwriteenable=true;
alphablendenable=false;


Sphere Engine--the premier A6 graphics plugin.
Re: alpha mapped entity sorting [Re: Matt_Aufderheide] #62580
01/22/06 08:11
01/22/06 08:11
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline OP
Expert
EX Citer  Offline OP
Expert

Joined: May 2002
Posts: 2,541
Berlin
Yes, flare and transparent doesn´t work anymore (even together).

Thank you, I will try that. Maybe another workaround could be an extern greyscale map instead of the alpha channel(?)


:L
Re: alpha mapped entity sorting [Re: EX Citer] #62581
01/22/06 13:24
01/22/06 13:24
Joined: Mar 2002
Posts: 221
USA
zefor Offline
Member
zefor  Offline
Member

Joined: Mar 2002
Posts: 221
USA
my.transparent = off;
my.flare = off;

works for me.

Re: alpha mapped entity sorting [Re: EX Citer] #62582
01/22/06 16:21
01/22/06 16:21
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
Quote:

Yes, flare and transparent doesn´t work anymore (even together).

Thank you, I will try that. Maybe another workaround could be an extern greyscale map instead of the alpha channel(?)




flare and transparent will work, only if the renderstates are correct.

Just set the renderstates correctly and there will be no problem.. there is no reason you cant use an alpha channel.

If this doesnt work for some reason, you must be setting the transpoarent flag back on somehow.


Sphere Engine--the premier A6 graphics plugin.
Re: alpha mapped entity sorting [Re: Matt_Aufderheide] #62583
01/27/06 15:57
01/27/06 15:57
Joined: May 2002
Posts: 2,541
Berlin
EX Citer Offline OP
Expert
EX Citer  Offline OP
Expert

Joined: May 2002
Posts: 2,541
Berlin
I used the lines you gave me and it worked.

Thanks!


:L

Moderated by  Blink, Hummel, Superku 

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