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
1 registered members (TipmyPip), 18,606 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
Entites is invisible with shader if i use view = camera #406897
09/01/12 09:29
09/01/12 09:29
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
Why my entites is invisible if i use shade-c or some else shader code. This is my entity:

ENTITY* fader_ent = {
type = "fader.mdl";
layer = 90;
alpha = 0;
pan = 90;
flags = TRANSLUCENT;
flags2 = SHOW;
view = camera;
x = 250; y = 0; z = 0;
}

When i disable shaders everything work fine, i guess the problem is somewhere in the view stage, but i do not know how to solve this problem?

Re: Entites is invisible with shader if i use view = camera [Re: LawnmowerMan] #406900
09/01/12 10:27
09/01/12 10:27
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
alpha = 0;

the ent is completely transparent when setting its alpha to 0...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Entites is invisible with shader if i use view = camera [Re: Espér] #406901
09/01/12 11:01
09/01/12 11:01
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
Hi Esper, i know that, i have a part of code who increases and decreases alpha value when i need this, but when i use shader only then this not working.

Re: Entites is invisible with shader if i use view = camera [Re: LawnmowerMan] #406904
09/01/12 14:29
09/01/12 14:29
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
there were already a lot of posts about this 'problem'

like this one

To solve it simply use normal entitys in stead of view entitys or do what Superku suggested in the thread I linked above.


POTATO-MAN saves the day! - Random
Re: Entites is invisible with shader if i use view = camera [Re: Kartoffel] #406911
09/01/12 17:03
09/01/12 17:03
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline OP
Junior Member
LawnmowerMan  Offline OP
Junior Member
L

Joined: Jun 2010
Posts: 71
This not sounds good for me beacuse i need to keep view entitys, and about second solution to assign the view entities's client_id attributes to the last view in the view-stage-chain... did someone can give me some example how make this in shade-c?

Re: Entites is invisible with shader if i use view = camera [Re: LawnmowerMan] #406912
09/01/12 17:22
09/01/12 17:22
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Quote:
about second solution to assign the view entities's client_id attributes to the last view in the view-stage-chain... did someone can give me some example how make this in shade-c?
well... I never did this because I never used view entitys. (I actually don't even know when they could be useful)

And I don't know anything about how the shaders in shade-c are linked together so I can't help you out with this.

I'm sorry smirk


POTATO-MAN saves the day! - Random
Re: Entites is invisible with shader if i use view = camera [Re: Kartoffel] #406950
09/03/12 00:44
09/03/12 00:44
Joined: Jul 2004
Posts: 785
Serbia
Iglarion Offline
User
Iglarion  Offline
User

Joined: Jul 2004
Posts: 785
Serbia
Kartoffel is right, like Superku said use a client_id to set a view stage for your view entites when you use postprocessing. I do not use Shade-C but that it should not be difficult to make. Here's an example:

Code:
your_entity1.client_id = last_view;
your_entity2.client_id = last_view;
your_entity3.client_id = last_view;
.....

Just be sure you're using the last view in chain stages.


IGRAVISION Page - www.igravision.com
RPG project - The Battle For Forgol 92.75%

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