Gamestudio Links
Zorro Links
Newest Posts
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
ZorroGPT
by TipmyPip. 08/22/26 08:44
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (alibaba, AndrewAMD), 4,089 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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