Forums > Jitter

opengl rendered image projected over pictures

August 14, 2006 | 4:07 pm

i need to know how to render a 3d image over a series of images. ive tried crossfading but that doesnt seem to work. i dont know much about jitter but any help would be appreciated. tell me if i need to explain more and ill gladly do so. thanks in advance.


August 14, 2006 | 5:24 pm

use a jit.gl.gridshape plane, or a jit.gl.videoplane for the background.
Load your images into jit.gl.texture and use the texture on the plane.
Position your plane behind the other gl objects, and control the drawing
order by setting all objects to @automatic 0. Draw the plane first and then
your other objects. If you want to blend things with the background make
sure you have @blend_enable 1 set on all objects in front of the image.
If you need to dynamically change the images, you can create different
instances of jit.gl.texture for every image and switch the texture name to
the background plane.

hth, -thijs

On 8/14/06, harlan wrote:
>
>
> i need to know how to render a 3d image over a series of images. ive tried
> crossfading but that doesnt seem to work. i dont know much about jitter but
> any help would be appreciated. tell me if i need to explain more and ill
> gladly do so. thanks in advance.
>
>


August 14, 2006 | 5:40 pm

Could you be more specific? Do you have a patch? by 3D image you you
mean 3D geometry or 3D geometry converted to an image?

wes

On 8/14/06, harlan wrote:
>
> i need to know how to render a 3d image over a series of images. ive tried crossfading but that doesnt seem to work. i dont know much about jitter but any help would be appreciated. tell me if i need to explain more and ill gladly do so. thanks in advance.
>


August 14, 2006 | 5:44 pm

If you have Jitter 1.6, you can also use the new @layer attribute to
specify rendering order.

wes

On 8/14/06, Thijs Koerselman

wrote:
> use a jit.gl.gridshape plane, or a jit.gl.videoplane for the background.
> Load your images into jit.gl.texture and use the texture on the plane.
> Position your plane behind the other gl objects, and control the drawing
> order by setting all objects to @automatic 0. Draw the plane first and then
> your other objects. If you want to blend things with the background make
> sure you have @blend_enable 1 set on all objects in front of the image.
> If you need to dynamically change the images, you can create different
> instances of jit.gl.texture for every image and switch the texture name to
> the background plane.
>
> hth, -thijs
>
>
>
>
> On 8/14/06, harlan wrote:
> >
> > i need to know how to render a 3d image over a series of images. ive tried
> crossfading but that doesnt seem to work. i dont know much about jitter but
> any help would be appreciated. tell me if i need to explain more and ill
> gladly do so. thanks in advance.
> >
> >
>
>
>
>
>


Viewing 4 posts - 1 through 4 (of 4 total)