The proper newsgroups is: comp.lang.java. 3d
| Java 3DTM Interest Group
|
| A discussion list, java3d-interest,
| has been set up for people interested
| in the Java 3D APIs.
|
| We encourage you to use this forum to
| discuss issues pertaining to the Java 3D API
| specification and to Java-based 3D graphics.
|
| Subscribing to java3d-interest
|
| * To subscribe to the java3d-interest list, send email with
|
| subscribe java3d-interest YOUR NAME
|
http://java.sun.com/products/java-me...est_group.html
Hoagie wrote:
The pain! I've looked over this a hundred times and I don't
understand it! I'm new to Java3D, so hopefully someone can help me in
this quick (most likely trivial error).
I am drawing a QuadArray plane w/ the "stripes.gi f" texture (from the
tutorial) applied to it. I've drawn the plane to be 2 inches (-1,-1
to 1,1) and 1 inch (0,0 to 1,1). After creating the Shape3D object, I
add it to the branch group then add that to the Simple Universe.
The above works great!
Then I add the follow code just after adding the BG to the simpleU:
TransformGroup viewPlatform =
u.getViewingPla tform().getView PlatformTransfo rm();
Transform3D viewT3D = new Transform3D();
viewT3D.setTran slation(new Vector3f(-0.5f, -0.5f, -6.0f));
//viewT3D.rotX(-0.35f);
viewT3D.invert( );
viewPlatform.se tTransform(view T3D);
As is, the above works fine -- it shifts everything "deeper" into the
screen. But, if I uncomment the 'rotX' line all I get is black! No
stripes, no nothing. :(
My understanding of the "ViewPlatformTr ansform" is a Transform3D that
affects everything in the universe.
How can I set both the Translation and rotX (and other translations
when the time comes) on the platform tranform?
Thanks for any help!
Try smaller rotations, you are probably shifting
the view so far that the only thing in your world
has moved outside of your viewing area.
Learning Java3d by using it with VRML, a simple
clear text graphics language with a Scenegraph
hierarchy similar to Java3d's makes learning and
experimenting with Java3d a little easier.
Java3d Demos on line with Source code ( Sun's Demos )
-----------------------------------------------------
http://www.cs.nps.navy.mil/people/fa...va3d/examples/ http://groups.google.com/groups?&gro...chester.rr.com
Interactive Web Animation with Java3d & VRML
------------------------------------------------
http://www.frontiernet.net/~imaging/..._and_vrml.html
-- Paul, Java Developer & Web Animator
--------------------------------------
Imgaging the Imagined: Modeling with Math & a Keyboard