Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Grant, AndrewAMD, Volkovstudio, 1 invisible), 4,671 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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