views with different shaders

Posted By: mocosgames

views with different shaders - 10/19/07 21:07

Is there a way to have multiple views that each render a different shader at the same time?
Posted By: zSteam

Re: views with different shaders - 10/19/07 21:10

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= ...
Posted By: mocosgames

Re: views with different shaders - 10/19/07 21:24

When I try that it has an error. Does it not work with A6 commercial?
Posted By: ello

Re: views with different shaders - 10/19/07 21:29

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
Posted By: mocosgames

Re: views with different shaders - 10/19/07 22:48

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.
© 2024 lite-C Forums