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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
views with different shaders #162232
10/19/07 21:07
10/19/07 21:07
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
Is there a way to have multiple views that each render a different shader at the same time?

Re: views with different shaders [Re: mocosgames] #162233
10/19/07 21:10
10/19/07 21:10
Joined: Mar 2007
Posts: 99
Germany
zSteam Offline
Junior Member
zSteam  Offline
Junior Member

Joined: Mar 2007
Posts: 99
Germany
hi

yes!

- make 4 views e.g. 4x 256x256px .. each has a own name like view1, view2,....
- than write in a function =>
view1.material= ...
view2.material= ...
view3.material= ...
view4.material= ...


=> www.alrik-online.de
A7 Commercial
Re: views with different shaders [Re: zSteam] #162234
10/19/07 21:24
10/19/07 21:24
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
When I try that it has an error. Does it not work with A6 commercial?

Re: views with different shaders [Re: mocosgames] #162235
10/19/07 21:29
10/19/07 21:29
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
nope, its a beta feature

check the manual
Quote:


render_view
The currently rendering view in a material event. By evaluating this pointer, certain effects can be changed depending on the view.




however, this isnt nearly as comfortable as view.material


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: views with different shaders [Re: ello] #162236
10/19/07 22:48
10/19/07 22:48
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
I cant get it it to work correctly this way. I think it needs to check render_view in the material event since it has to be different for each view, but I can't find a way to change the material in a material event.


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