Hi,
    I presume you've seen the JMF+3D example on Sun's site. An excellent example with source for rendering any JMF stuff as a Java3D texture by overriding the VideoRenderer.

Well worth a look even if you're not going to use it. You'll need to install a JMF implementation (Win or Sun) off the Sun site and away you go. Watch you favourite movies on any shape you care to design!

http://java.sun.com/products/java-media/jmf/2.1.1/solutions/DemoJMFJ3D.html

-John-

SW Keum wrote:

 Hello. I'm trying to make a video image textured on 3D object using Java3D and JMF.my program works as follows, first, renderer plug-in handles video stream and returns BufferedImage to main program, then, main program will use it as a texture on 3D object. The problem is, Renderer or VideoRenderer class does not return BufferedImage object. they return awt.Component object as you know. so i return the data as Component, and process it in the main program as follows--------------------------------------   Component  vc=p1.getVisualComponent();     BufferedImage bimg = new BufferedImage(SS, SS, btype);
      bimg = (BufferedImage) vc.createImage(vc.getBounds().width,vc.getBounds().height);

    ImageComponent2D imgcmp = new ImageComponent2D(itype, bimg, byRef, true);
    Texture2D tex1 = new Texture2D(Texture2D.BASE_LEVEL, ttype, SS, SS);
    tex1.setImage(0, imgcmp);
    return tex1;
------------------------------------------but it doesn't work. my object is not textured. I've tested with different texture, and i can see the textured object, but not with this one. how can i do that?- additional questions :)1. any JMF tutorial on internet? i cannot find any. 2. Is there any way to return BufferedImage object?3. I'm getting 2D image from renderer like this.. first, renderer returns component object, and i get graphic using createImage() method. is it right?Thanks in adv. 

begin:vcard
n:Davies;John
tel;cell:+44 (0) 7770 697272
tel;fax:+44 (0) 7092 167832
tel;work:+44 (0) 20 7744 6220
x-mozilla-html:TRUE
url:http://www.c24solutions.com
org:Century 24 Solutions
version:2.1
email;internet:[EMAIL PROTECTED]
title:Technical Director
adr;quoted-printable:;;Suite 10, Three Tuns House=0D=0A109 Borough High Street=0D=0ALondon SE1 1NL;London;;;UK
fn:John Davies
end:vcard

Reply via email to