Sprite sorting & Overlay problem...

Posted By: Espér

Sprite sorting & Overlay problem... - 04/19/10 18:37

hi there..

I don´t know where to put this correctly.. so.. i´m sry if this is the worng place..

Ok.. Questions:

1. if my skin has a black background color ( 24Bit no alpha ), and i set the OVERLAY flag to the model. How can i get away that black outlines around the sprites?

2. When i use a 32Bit TGA with Alpha Channel instead of that black background, the Sprites are all shown overlayed ( as if they are all at the same position ). i cann look through the first 5 rows.. the rows behind are cutted..etc..
Any way to fix that, so the front row is shown in front of every sprite behind...?
Posted By: JXT

Re: Sprite sorting & Overlay problem... - 04/19/10 19:01

Dein 2. Problem kapier ich nicht ^^

Aber zum ersten: versuchs mal mit d3d_alpharef wink
Posted By: Espér

Re: Sprite sorting & Overlay problem... - 04/19/10 19:09

problem 2 is shown best here:


The front row of the cornfield is the greatest part invisible, and i can look through nearly every line ( that makes it look accurate...
Normally, the frontrow should stay in front of all rows and hide them.. but it doesn´t.
Posted By: JXT

Re: Sprite sorting & Overlay problem... - 04/19/10 19:14

Tried to use "layer"?

And what's the alpha-value of the first rows? 100?
Posted By: Espér

Re: Sprite sorting & Overlay problem... - 04/19/10 19:19

the corn isn´t created via script. it´s model based ( via skin ).. So.. there´s no layer XD
Posted By: JibbSmart

Re: Sprite sorting & Overlay problem... - 04/19/10 20:19

Individual polygons of a model are not sorted, so it won't work unless you're using a shader that writes to the ZBuffer.

Jibb
Posted By: Espér

Re: Sprite sorting & Overlay problem... - 04/19/10 20:26

hmm.. ok.. is there a shader like Julz said out there?
Posted By: Nowherebrain

Re: Sprite sorting & Overlay problem... - 04/19/10 23:45

yes it must have Zwrite enabled, and you can set d3d_autransparency = 1; to use 24 bit textures with alpha....refer to the manual for in depth instuctions.
Posted By: bart_the_13th

Re: Sprite sorting & Overlay problem... - 04/21/10 06:53

Here:
http://www.opserver.de/wiki/index.php/ImprovedOverlay
© 2023 lite-C Forums