Jitter window background image and moving .obj pivots
I am hoping to be able to have a locked image as a background behind a couple .obj files i have loaded into a scene. I would be able to do this by just creating a video or image plane behind my obj's but the problem is that when I animate the objects individually they won't move together right so I have to use the camera's position to make it look like it's the objects moving. Since i am doing that though, the plan with my image moves when i want it to be completely locked in place maintaining it's image.
I am also having a lot of trouble finding a way to be able to relocate my .obj's pivot point. I want to do some basic animation stuff but it's impossible without being able to adjust their pivot positions. I see that you can do this with jit.gl.sketch but that doesn't help me since I am loading my own models. Can I load an .obj file into a jit.gl.sketch? Is there any other way to adjust an objects pivot position?
What I want in the end is to be able to have my 3d objects moving on top of my desktop with no windows. I am removing the border and then snapping a shot of the area (before the rect dest is giving to the jit.window or else the image is of it self). Everything is happening with the right timing and I have the image of the location dumped into a matrix, then the main display window moves in place and loads the models. I just can't load the image behind to seal the deal and have it look like my 3d models are interacting over the desktop.
I have messed with alphablends, and xfade but these aren't what I need which is just a way to overlay my models, alpha masked over the image....i am trying to check out the jit.gl.slab shadders after seeing someone mentioning co.alphablend.jxs
for masked blending but since it's my first shadders stuff it's slow moving.
sorry for the length, thanks for any help
jon
check out jit.gl.sketch drawobject command:
man.....you made quick work of that..
thank you very much
Jon
so no i have my patch doing most of what I want but a couple small issues still remain....
Now that i have a couple separate objects loaded, with adjusted pivots, I want to be able to apply a texture over both as a group, not the same texture repeated. (I can see the same stuff shrunk down into the other. If it were 3d studio max I would just use a UV Wrapper on the group and then adjust the whole texture...is that possible it all?
The other things is now i have my objects floating over a snapshot of the desktop but just that. I am trying to let it realtime update the background image but when I try and set the timing (I use the "s thebang" bang to try and update the scene think that it should follow the erase command or else it will be snapping a shot of the models I put in the scene which then leaves trails). I am timing it now so that it takes the snapshot then moves the jit.window to that location placing the image behind. When i use the "s thebang" bang it does this trippy blurry fade where the models and image behind trail and blur just sitting there until they settle all tweaked out. I am hoping to be able to have the models (the jit.window set to @floating 1) be on top of everything but still update the scene info behind in real time. It's almost as if I need to hide the window, snap shot the background, then open it again..but that would be mental to be opening and closing windows.
Thanks again for the help, it is close to just what i want
jon