alpha mapped entity sorting

Posted By: EX Citer

alpha mapped entity sorting - 01/21/06 19:11

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?
Posted By: Matt_Aufderheide

Re: alpha mapped entity sorting - 01/22/06 02:44

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;
Posted By: EX Citer

Re: alpha mapped entity sorting - 01/22/06 08:11

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(?)
Posted By: zefor

Re: alpha mapped entity sorting - 01/22/06 13:24

my.transparent = off;
my.flare = off;

works for me.
Posted By: Matt_Aufderheide

Re: alpha mapped entity sorting - 01/22/06 16:21

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.
Posted By: EX Citer

Re: alpha mapped entity sorting - 01/27/06 15:57

I used the lines you gave me and it worked.

Thanks!
© 2024 lite-C Forums