Re: [JAVA3D] setTransform has "no effect" if its BranchGroup isn'tdetachedfrom its parent

2002-10-16 Thread Elisabeth Thorsen
Hi John, setLabel() is called before the "test" BranchGroup is added to its parent (before the "test" BranchGroup is live). When updateLabel() is called, the branchGroup has been added to its parent and is live. Is setTransform supposed to work differently if the branchgroup is live or not?

Re: [JAVA3D] Can I Deform a Shape3D ????

2002-10-16 Thread Brad Christiansen
Hi, I am not quite sure what your question is but I did notice this: > I override this method to change the values in floatVerts > and set the new geometry to the Shape3D. I am not sure if this is what you are doing, but it sounds like you are calling setGeometry() or similar on your shape3D o

[JAVA3D] How to deform a Shape3D with a smooth animation??

2002-10-16 Thread Jefferson Samuel
Hi All! How to deform Shape3D with smooth animation?? I created my Shape3D like this: QuadArray qa2 = new QuadArray(4, QuadArray.COORDINATES | QuadArray.COLOR_3 | QuadArray.BY_REFERENCE); qa2.setCoordRefFloat(floatVerts); qa2.setColorRefFloat(floatClrs); qa2.setCapability(GeometryArray.ALLOW_

Re: [JAVA3D] Can I Deform a Shape3D ????

2002-10-16 Thread Jefferson Samuel
Hi All! Thank u Brad & Jack for ur valuable advise. How to deform Shape3D with smooth animation?? I created my Shape3D like this: QuadArray qa2 = new QuadArray(4, QuadArray.COORDINATES | QuadArray.COLOR_3 | QuadArray.BY_REFERENCE); qa2.setCoordRefFloat(floatVerts); qa2.setColorRefFloat(floatC

[JAVA3D] NullPointerException from J3dThread

2002-10-16 Thread Furukawa Hiroki
Now I get following Exception. I use j3d1.2.1_03. java.lang.NullPointerException at javax.media.j3d.NodeRetained.getCurrentLocalToVworldNodeRetained.java:413) at javax.media.j3d.RenderBin.updateViewPlatform(RenderBin.java:1901) at javax.media.j3d.RenderBin.processMessages(

Re: [JAVA3D] Terrain on 30% of the canvas height

2002-10-16 Thread Enrique Dumas
Hello ! Well I had the same problem few weeks ago. Mark Hood from sun has posted a WONDERFULL sample to show how to move the origin x0,y0,z0 where you want. I attached the code, hope that it can help you. So I think that you want to do the same thing than me : see more terrain on the canvas, for s

Re: [JAVA3D] Pick multiple objects by drawing a window on the screen

2002-10-16 Thread White Morph
Any one has any idea? Thanks---white >Hi All, > >I found several posts for this question, but no one has an answer. I tried >to do it myself. Right now, I wrote a class to draw a rubber-wand like window on the >graphics model, so I can get the 4 screen coordinates for the >window, combined them

[JAVA3D] Terrain on 30% of the canvas height

2002-10-16 Thread Dirk L. van Krimpen
  Hi all,   Does anybody know how to move the origin x0,y0,z0 down on the Canvas3D? I know, there are several ways to move up or down the viewers eye point using ViewPlatform or Avatar. However, if doing so the viewer still looks in the direction of the canvas center (slightly up, or down). W

Re: [JAVA3D] What happened to ElevationGrid?

2002-10-16 Thread Justin Couch
Huang Su wrote: > It is not supported anymore? I could not find it in the Java3D 1.3 API documents. Java3D has never supported any high-level constructs like ElevationGrid. I think you've got your code sources confused. -- Justin Couch http://www.vlc.com.au/~justin/ Jav

[JAVA3D] Several canvases with different appearance

2002-10-16 Thread Carlos D Correa
Hi, I need two (and eventually more) canvases with different views of the same universe. I've already done that with several ViewPlatforms and Views. But... I need that one of them renders the scene in wireframe, and the other with gouraud shading. How can I do that? I tried using AlternateAppear

Re: [JAVA3D] Bug in PickIntersection Class? bug 4516752

2002-10-16 Thread R CM
i can't reproduce the bug with the examples/PickTest/IntersectTest i can only reproduce the bug with more complex geometry : GeometryInfo.POLYGON_ARRAY + triangulator + recomputeIndice the tesselation made by the triangulator generate some flat triangles ("sliver triangles")and very small triang

Re: [JAVA3D] setTransform has "no effect" if its BranchGroup isn'tdetachedfrom its parent

2002-10-16 Thread John Wright
Elisabeth, Most likely you are seeing the difference between the branchgroup being "live" vs not live. From the code you sent it does appear that you set the capabilities to allow the transform to be written but it's not clear exactly when this occurs (i.e. is the "test" branchgroup attached to

[JAVA3D] Java 3D Stereo with Asus V8420 deluxe

2002-10-16 Thread Robson Augusto Siscoutto
Hi, I am using Win2000, Java3D1.3, java 1.4 e a graphic card ASUS V8420 Geforce4 Ti4200 128MB with ASUS 3D glasses. I am executing the code with the following command line: java -Dj3d.stereo=PREFERRED -Dj3d.fullscreen=PREFERRED HelloUniverse The stereo visualization execute correctly, but in s

[JAVA3D] setTransform has "no effect" if its BranchGroup isn't detached from its parent

2002-10-16 Thread Elisabeth Thorsen
Hi, I would like to change the position of a (Raster) label (by changing Transform3D, see method updateLabel() below), but setTransform makes the old label vanish and there is no label at the new position. However, if I detach the Branchgroup, change the transform exactly the same way as before

[JAVA3D] What happened to ElevationGrid?

2002-10-16 Thread Huang Su
It is not supported anymore? I could not find it in the Java3D 1.3 API documents. When I search the whole java.sun.com web site. I only got a piece of sample code http://java.sun.com/products/java-media/3D/collateral/class_notes/slides/ExHenge.htm, but no document. Thanks for any information.

Re: [JAVA3D] ColorCube problem

2002-10-16 Thread Mr H. Morgan
Hi Renaud, I have tried making the changes you describe, and I get no problems. The compiler found the ColorCube class fine, and the only difference with the second change was a larger ColorCube. My system information is - SunOS calcium 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-1000 jav

[JAVA3D] ColorCube problem

2002-10-16 Thread R CM
Hi all, I've recently update to j3d1.3 and jdk1.4.1 and a amazing problem occur with the ColorCube class you can test the Bug with the SimpleUniverseLess.java recently post by Kelvin Chung replace the line : import com.sun.j3d.utils.geometry.ColorCube; by : import com.sun.j3d.utils.geometry.*;

[JAVA3D] shading and multitexture

2002-10-16 Thread Noah Knowles
Hi, I have a question about achieving desired lighting/shading effects while using multitextures in a science visualization. My scene's sole Shape3D is a surface based on elevation data for California, and has an Appearance with Material mat = new Material( new Color3f(0.0f,0.0f,0.0f), new Color3