Jun 13, 2012 at 5:19am
I would like to learn how to do 2 things.
1. I would like to be able to make 3D transforms to a number of jit.gl.gridshape objects (generated in JS) using jit.anim.node as a parent to all of them. So that I can rotate all of the gridshapes together. How do I bind jit.anim.node to a number of generated gridshapes in JS?
Essentially, I want to know how to do what’s being done in the Max help examples but in JS.
Jun 13, 2012 at 7:58pm
hello. thanks for the questions.
you can then pass messages from the anim.drive (or any kind of message) to this parent anim.node.
– Pasted Max Patch, click to expand. –
Copy all of the following text.Then, in Max, select New From Clipboard.
Jun 13, 2012 at 8:38pm
This looks great, thanks!!!
Jun 20, 2012 at 3:04am
Thanks for your help.
I’m working my way toward getting that all working.
I’ve run into a problem where my shader/texture is glitching out when I actually attach all of by generated jit.anim.nodes to a parent jit.anim.node. (like in your example).
Please try unzipping the attached file and run the patcher.
When you type, you should see text in the window. You will notice that the last letter of the text will pop up whenever you type (glitchy). This only happens the first time each gridshape is drawn. If you backspace and retype, it won’t happen again until you get to the new characters.
Open up render_screen.js and comment out lines 85 and 94 and save.
Now you will see that things are working fine, but of course the jit.anim.nodes have been disabled (by breaking the script). Basically, what I want is to be able to use the jit.anim.nodes in the way you described if you patch and the way it is kind of working here, except without the glitch. I’ve tried a number of things, but I don’t know why I’m getting this glitch.
Can someone shed some light on this?
Jun 20, 2012 at 8:16pm
the problem, i think, is that you are using non-automatic mode rendering.
is there any way you can instead of using non-automatic, use the ob3d @enable attribute to turn rendering on and off?
i’m not entirely sure that would fix the problem, but that’s the first thing i would suggest you try.
You must be logged in to reply to this topic.