Java3D: Transform3D.rotX() causing blackness!

From: Hoagie (hoagie_at_spamsucks.com)
Date: 10/13/03


Date: Mon, 13 Oct 2003 20:20:29 GMT

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.gif" 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.getViewingPlatform().getViewPlatformTransform();
Transform3D viewT3D = new Transform3D();
viewT3D.setTranslation(new Vector3f(-0.5f, -0.5f, -6.0f));
//viewT3D.rotX(-0.35f);
viewT3D.invert();
viewPlatform.setTransform(viewT3D);

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 "ViewPlatformTransform" 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!



Relevant Pages

  • Java3D: Transform3D.rotX() causing blackness!
    ... add it to the branch group then add that to the Simple Universe. ... TransformGroup viewPlatform = ... if I uncomment the 'rotX' line all I get is black! ... How can I set both the Translation and rotX (and other translations ...
    (comp.lang.java)
  • Java3D: Transform3D.rotX() causing blackness!
    ... add it to the branch group then add that to the Simple Universe. ... TransformGroup viewPlatform = ... if I uncomment the 'rotX' line all I get is black! ... How can I set both the Translation and rotX (and other translations ...
    (comp.lang.java.help)
  • Re: Obamas Faith in the Golden Rule
    ... The Essential Rumi - (translation by Coleman Barks) ... African Myths and Tales - Susan Feldmann The Epic of Qayaq - Lela Kiana ... All these would come about in a previous universe if it was ... devolving gods would experience tricks of their own creative power, ...
    (talk.origins)
  • Re: The Seed
    ... 36 known elementary particles. ... original universe and was laid out in a structure in the beginning and ... This is my translation of what King Solomon wrote thousands of years ... small amounts of solid elements would be produced by ...
    (talk.origins)
  • The Expansion of the Universe
    ... The expansion of the Universe is the most imposing discovery of modern ... 'We are expanding it' is the translation of the plural present participle ... Some translators who were unable to grasp the meaning of the latter provide ...
    (soc.culture.australian)