Simple GL objects in the same context window..please help me undertsand it

Apr 12, 2011 at 10:58pm

Simple GL objects in the same context window..please help me undertsand it

Hello Jitter masters,
I am new to Jitter but eager to learn and starting to work on an exciting project with openGL objects.
Can any of you show me or direct me to a (Simple) patch that illustrates how to get a few GL objects onto one window with individual control of each of them and none of the flashing and binding I’m getting when the objects have the same context name??
..It would really make my day and solve my frustration.

I sort of got an answer and a direction to the cool “Rabbit” patch but it was a bit too complicated to understand everything there.

Thanks !!

#56281
Apr 13, 2011 at 2:31am

Enjoy.

– Pasted Max Patch, click to expand. –
#201951
Apr 13, 2011 at 2:44am

Throw a texture in there while we’re at it. ;)

Don’t forget to save and reopen the patch or the loadbangs won’t fire.

– Pasted Max Patch, click to expand. –
#201952
Apr 13, 2011 at 9:25am

Now I know why they call you cap10. Thanks a lot!
This explains exactly what I needed( and you used my photo for the texture :).

Let me ask you another quick question if I may..
For a performance I would like to have the ability to move each GL object but without seeing the round blue green and red axis lines that appear when you click on an object. is it possible to get rid of those?
Thanks!

UV

#201953
Apr 13, 2011 at 10:10am

And another quick thing..
How would you apply a different image to each GL object?

#201954
Apr 13, 2011 at 10:47am

@uvray i already answered that in ur other post: use textures with different names. And also read the jit.gl.texture object helpfile.

to get rid of red and blue lines, you can send jit.gl.handle “visible 0″ to turn them off… I dont mean to be condescending but its also in the jit.gl.handle helpfile!

#201955
Apr 13, 2011 at 10:50am

OK I managed to load two different textures to each object. Now it’s time to
make music with it.

– Pasted Max Patch, click to expand. –
#201956
Apr 13, 2011 at 10:52am

Yes Justin, thanks for your answers, I managed now. sorry for posting twice on this subject, I just had to figure it out somehow quickly.
Cheeers
UV

#201957

You must be logged in to reply to this topic.