Re: [JAVA3D] put a Texture ones on an object???

2002-10-24 Thread Martin Frey
Thanks a lot I will try this. I have read that i can "explode" my objects to similar objects and then put the textures on them. But is Java3D drawing the object without some disappeared lines between the exploded objects? If this is false i will try this. Does someone know that?     Greetz Ma

Re: [JAVA3D] Is this a bug in Java3D?

2002-10-24 Thread "Schäfer, Peter"
> -Original Message- > From: Nikolai V. Chr. [mailto:nikolai@;IFAD.DK] > Sent: Dienstag, 22. Oktober 2002 15:10 > To: [EMAIL PROTECTED] > Subject: [JAVA3D] Is this a bug in Java3D? > > > I have a scenegraph. Somewhere in it I have a transformgroup which is > live. Is has a child which is a

[JAVA3D] Canvas3D in JInternalFrames

2002-10-24 Thread Martin Frey
Hiho I need to have more windows with a canvas3d. And so i try to solve the problems we have with canvas3d in internal frames. My idea of it is to make a print to a BufferedImage every time i deselect an internal frame. Then i do canvas3D.setVisible(false) and image.setVisible(true). Did thi

[JAVA3D] Problem with Rotation Interpolator.

2002-10-24 Thread Srikanth.Prekki
Hi, Iam using RotationInterpolator for spinning a object with alpha value -1 (so that it spins continiously). The spinning is controlled by a spin check box. The problem is if , i check the spin check box, the initial position of object changes (rotates by some angle) and starts spinning , inst

[JAVA3D] Problem: view.setScreenScale()

2002-10-24 Thread Furukawa Hiroki
Hi, all. When I call view.setScreenScale(), I often got two kind of exeption as follows. It seems to be easy to cause when a heavy calculation like restructuring of geometry is being carried out. I'm very much in trouble. Please tell me the way of avoiding these exception. java.lang.NullPoint

Re: [JAVA3D] Problems with objects movement

2002-10-24 Thread Andreas Moessner
Hi Fernando, I think what you need is a different TransformGroup for each object. Try to have a look at "PickTest.java" example. It resides in your JDK directory in the demo/java3d folder. hth andreas Fernando Cesar Balbino wrote: Hello, friends. I'd like to ask you some help about the cod

[JAVA3D] two questions about picking

2002-10-24 Thread A. Murat Tanyer
Hi all,   I have two small questions about picking:   1) I created my own classes for picking. The below lines create a ray and select object/s from the scene:     //BranchGroup objRoot   PickRay ray = createPickRay(canvas, x, y);   SceneGraphPath[] path = objRoot.pickAll(ray);    private P

Re: [JAVA3D] Is this a bug in Java3D?

2002-10-24 Thread Nikolai V. Chr.
Schäfer, Peter wrote: I have a scenegraph. Somewhere in it I have a transformgroup which is live. Is has a child which is a branchgroup and is NOT live (did a isLive() and a getParent().isLive() to check). I was under the impression that anything added to a live node will become live itself.

Re: [JAVA3D] Problems with objects movement

2002-10-24 Thread fercesar
Thanks, Andreas! []'s Fernando > -- Mensagem original --- > > De : Discussion list for Java 3D API > Para: [EMAIL PROTECTED] > Cc : > Data: Thu, 24 Oct 2002 10:16:25 +0200 > Assunto : Re: [JAVA3D] Problems with objects movement > > Hi Fernando, > > I think what

Re: [JAVA3D] Strange Effect with Transparency and modify Scenegraph

2002-10-24 Thread Roy Duffy
This makes sense, but I don't think my problem has anything to do with how the geometry is sorted. My problem is that the text is not fully transparent when under the OrderedGroup. It sometimes occludes the text behind it as you can see in the example I posted in the other email. I would think e

Re: [JAVA3D] Swing component on Canvas3D

2002-10-24 Thread Alejandro Allievi
Hi Alex, Try the attached code and see if that is what you are looking for. The code is within init(), but you could improve it by creating a self-contained JPanel as a subclass of JPanel that will add the text or events or both, then add it to a part of the layout of the Container (in this case

[JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Elisabeth Thorsen
Hi, The setCullFace() method of PolygonAttributes has no effect on a LineArray although coordinates and normals are set. If I use a QuadArray with the same coordinates and normals as for the LineArray then setCullFace works fine. (I use PolygonAttributes.CULL_BACK) Does anyone know why it has no

Re: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Jason Taylor
LineArray isn't polygons? Can use LineAttributes to effect it, but that doesn't have CULL setting. Need to check the Spec for PolygonAttributes, LineArray and Shape3d. There might be a magic option somewhere or it could be one of these cases where you have to overlay a couple of objects to

Re: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Joachim Diepstraten
Hi Well a line can have an infinite number of normals that's why -- Explore SRT with the help of Java3D (http://wwwvis.informatik.uni-stuttgart.de/relativity/minkowski) (http://www.antiflash.net/java3d/relativity (mirror) ==

Re: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Elisabeth Thorsen
Hi, I know that a line can have an infinite number of normals but as long as I set a spesific normal I thought that java would disregard the others. (I would like that only one side of the line should be visible. When I rotate the line it should become invisible). Elisabeth. -Original Mess

[JAVA3D] AW: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Florin Herinean
>From the docs: "The PolygonAttributes object defines attributes for rendering polygon primitives. Polygon primitives include triangles, triangle strips, triangle fans, and quads." Lines are not included in the list. BTW, a line doesn't have "sides", does it ? Cheers, Florin -Ursprüngliche

Re: [JAVA3D] AW: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Joachim Diepstraten
Hi > BTW, a line doesn't have "sides", does it ? No it can't because it has an inifinite number of normals which I already said before EOF, J.D. -- Explore SRT with the help of Java3D (http://wwwvis.informatik.uni-stuttgart.de/relativity/minkowski) (http://www.antiflash.net/java3d/relativity (

Re: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Matt Bates
Hello fellow java3d programmers. Elisabeth, If you could use a TriangleArray rather than a LineArray the following works: PolygonAttributes pa = new PolygonAttributes(); pa.setPolygonMode(pa.POLYGON_LINE); pa.setCullFace(pa.CULL_BACK); objectAppearance.setPolygonA

Re: [JAVA3D] setCullFace has no effect on a LineArray - why?

2002-10-24 Thread Artur Biesiadowski
Elisabeth Thorsen wrote: Hi, The setCullFace() method of PolygonAttributes has no effect on a LineArray although coordinates and normals are set. If I use a QuadArray with the same coordinates and normals as for the LineArray then setCullFace works fine. (I use PolygonAttributes.CULL_BACK) Cul

Re: [JAVA3D] Strange Effect with Transparency and modify Scenegraph

2002-10-24 Thread Raj N. Vaidya
>On Thu, 24 Oct 2002 08:37:16 -0400, Roy Duffy <[EMAIL PROTECTED]> wrote: >This makes sense, but I don't think my problem has anything to do with how the >geometry is sorted. My problem is that the text is not fully transparent when under >the OrderedGroup. It sometimes occludes the text behind

Re: [JAVA3D] Strange Effect with Transparency and modify Scenegraph

2002-10-24 Thread Raj N. Vaidya
Hi Roy, Looked at your code. Removed the OrderedGroup doing this: // ordGroup.addChild(textRoot); // objRoot.addChild(ordGroup); objRoot.addChild(textRoot); The effect now appears to be correct. This probably has something to do with the way the depth buffer is set in either th

Re: [JAVA3D] picking many objects

2002-10-24 Thread Jason Taylor
The first question has been discussed here recently, check the archives to see if there's some answers. For the second, check the class of the node and cast it back to it's original, then just do the get/set appearance commands. Make sure you set the write capabilities of the appearance *BEFORE

[JAVA3D] picking many objects

2002-10-24 Thread A. Murat Tanyer
Dear members, I created my class from which I can pick objects by single mouse clicks. 1) Now how can I improve my code so that I could select many objects with the windows created by mouse. Like I click a point on the canvas, open a window and select the objects inside this window. Is this possi

[JAVA3D] TriangleStripArray looks transparent?

2002-10-24 Thread Mingtian Ni
Hi, I created a couple of TriangleStripArray objects and added them into the java3d scene graph. The rendering is ok. But whatever appearance I tried, they looked transparent! I don't want them transparent. Somebody can tell me how to handle this. Appreciate your help. Mingtian Ni The code I used

[JAVA3D] animating VRML: Sun's Loaders vs. 'new' Xj3D Loaders: Use what works BEST.

2002-10-24 Thread P. Flavin
For animating VRML ... the old Sun VRML Loaders often WORK ... on files where the 'new' Xj3d VRML Loaders fail ... people should know know the facts and use what's best for their appliction. +--- Xj3D VRML Loaders Status --- |__