Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 17,843 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
does gamestudio support :DEPTH? #285071
08/16/09 21:31
08/16/09 21:31
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline OP
Serious User
Scorpion  Offline OP
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
hello guys,
I was working on my parallax shader and wanted to change the output depth, so that there is no abrupt clipping if 2 models overlap.

When I finally run the script for a first try, it told me, that COLOR1 must be a 4 component vector = it thinks my wonderful DEPTH output is a second color =/

Do I have to assert some things to make it work? Or can I run to the Future Forum and make a new request?

The important stuff in the code:

Code:
struct PS_OUT{
    float4 color :COLOR0;
    float  depth :DEPTH0;
};

PS_OUT parallaxPS(VS_OUT IN){
    PS_OUT OUT;
    [...]
    OUT.depth = abc;
    OUT.color = xyz;
    return OUT;
}



Re: does gamestudio support :DEPTH? [Re: Scorpion] #285335
08/18/09 06:52
08/18/09 06:52
Joined: Mar 2006
Posts: 2,252
Hummel Offline
Expert
Hummel  Offline
Expert

Joined: Mar 2006
Posts: 2,252
I did not know that something should be possible, but would be a great feature wink

Re: does gamestudio support :DEPTH? [Re: Hummel] #285431
08/18/09 14:00
08/18/09 14:00
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline OP
Serious User
Scorpion  Offline OP
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
Afaik it is possible with dx/hlsl and read about it a few times.
Here is a topic about it at gamedev.
Maybe I have to tweak some engine parameters for it or make a pact with the devil?

Re: does gamestudio support :DEPTH? [Re: Scorpion] #285666
08/19/09 15:30
08/19/09 15:30
Joined: Mar 2006
Posts: 2,252
Hummel Offline
Expert
Hummel  Offline
Expert

Joined: Mar 2006
Posts: 2,252
a "Ask the Developers" post could also work wink


Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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