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?
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
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_
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
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(
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
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
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
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
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
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
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
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
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
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.
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
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.*;
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
18 matches
Mail list logo