Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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