Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (steyr, alibaba), 534 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sprite sorting & Overlay problem... #320109
04/19/10 18:37
04/19/10 18:37
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
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...?

Last edited by Espér; 04/19/10 18:40.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Sprite sorting & Overlay problem... [Re: Espér] #320112
04/19/10 19:01
04/19/10 19:01
Joined: Apr 2010
Posts: 52
Hamburg, Germany
JXT Offline
Junior Member
JXT  Offline
Junior Member

Joined: Apr 2010
Posts: 52
Hamburg, Germany
Dein 2. Problem kapier ich nicht ^^

Aber zum ersten: versuchs mal mit d3d_alpharef wink

Re: Sprite sorting & Overlay problem... [Re: JXT] #320117
04/19/10 19:09
04/19/10 19:09
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
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.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Sprite sorting & Overlay problem... [Re: Espér] #320119
04/19/10 19:14
04/19/10 19:14
Joined: Apr 2010
Posts: 52
Hamburg, Germany
JXT Offline
Junior Member
JXT  Offline
Junior Member

Joined: Apr 2010
Posts: 52
Hamburg, Germany
Tried to use "layer"?

And what's the alpha-value of the first rows? 100?

Re: Sprite sorting & Overlay problem... [Re: JXT] #320120
04/19/10 19:19
04/19/10 19:19
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
the corn isn´t created via script. it´s model based ( via skin ).. So.. there´s no layer XD

Last edited by Espér; 04/19/10 19:36.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Sprite sorting & Overlay problem... [Re: Espér] #320130
04/19/10 20:19
04/19/10 20:19
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
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


Formerly known as JulzMighty.
I made KarBOOM!
Re: Sprite sorting & Overlay problem... [Re: JibbSmart] #320133
04/19/10 20:26
04/19/10 20:26
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline OP
Expert
Espér  Offline OP
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
hmm.. ok.. is there a shader like Julz said out there?


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Sprite sorting & Overlay problem... [Re: Espér] #320156
04/19/10 23:45
04/19/10 23:45
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
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.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Sprite sorting & Overlay problem... [Re: Nowherebrain] #320352
04/21/10 06:53
04/21/10 06:53
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482


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