How gl.pass applied to single object and how it works in VR (gl3) ??
Firstly, I was so appreciated that I found Robert post the gl3 version of VR kit. I put the link below for anyone want to have fun.
https://cycling74.com/forums/graham-wakefield-vr-package-works-for-oculus-quest-2#reply-618abe4e1cee6665d884e72b
So I made a VR patch which contains some cubes (created with gl.multiple)and a point Floor . Then I tried to applied the Bloom-hq FX only on the cubes.
In normal condition (not in VR)I used to apply the gl.pass fx on single object by giving different gl.node name, then i use a jit.gl.pix to combine the textures together.
Like the following patch. I'm not sure if it is correct way .
When it comes to the VR package. I found that I cannot do it anymore.
There are things different.
1. I have to use gl.pass to output texture to the p_capture_ scene. Otherwise I can't see any FX through my VR OCULUS QUEST 2 ,even the gl.videoplane shows the FX exists.
2.The patch below shows how a bloom-hq fx is applied to all object. But, it's still far from adding FX to cubes only.
3. I tried to capture the cubes and Points seperately and use gl.pix to blend them together, but the VR tracking will be lost and has some view error.
(The VR patch is below)
So I'm really curious to know how FX could be applied to single object correctly and how things work in VR environment。
Thanks for any help i could get!
I'm using max 8.5.1 and glcore with Oculus quest 2.
For the record, we solved this on Discord.
The solution was to use the alpha value to decide which objects would be affected by the passes.
Hi Federico,
Could you post a link to the Discord solution?
thanks Ian
Hi Antialias,
there you go
Thanks Federico-- in Max 8.5.1 I'm getting 'vr- no such object'...
ok-- got it ....
Thanks for sharing this patch.
I'm having very poor performances here (patch running @1 fps on a RTX 2080 !) , and some error messages
jit.gl.pass: invalid message dim
jit.gl.pass: invalid message adapt
that's because vr is supposed to be connected to a jit.gl.node, and in this patch it is connected to a gl.pass...
I also get
jit.gl.gridshape: jit_gl_geometry_draw_buffers: GL Error: Invalid operation
jit.gl.gridshape: jit_gl_geometry_draw_buffers: GL Error: Invalid operation
jit.gl.gridshape: jit_gl_geometry_draw_buffers: GL Error: Invalid operation
from jit.gl.gridshape in p tracking.
can you run this patch without error with glcore in Max 8.5.1 ?
yes, the patch runs with 8.5.1 without error on my laptop(mac intel)
the p tracking is delivered in the VR package without any modify.