|
I will try to help again and I hope to succeed this
time.
First, test the cube class you created in a
simple universe. Create a simpleuniverse object and then add to it the branch
group . this branch group which contains the cube. The cube is a Shap3d object
which contains geometry and appearance.I suppose you were
successful creating the geometry.
Check the object ,is it away from the viewing
volume. If it is, try to translate the object to the origin (0,0,0).
Maybe the object is too big such that when
viewed, the viewer will inside the object and of course will see
nothing.
you can scale down the object or
you can try to move the view with
this:
OrbitBehavior orbit = new
OrbitBehavior( canvas3D, OrbitBehavior.REVERSE_ALL);
orbit.setSchedulingBounds(bounds);
viewingPlatform.setViewPlatformBehavior(orbit);
you can move the view with the mouse's three
buttons.
tell me the result
Bassam
----- Original Message -----
Sent: Monday, February 16, 2004 12:52
PM
Subject: Re: [JAVA3D] colorcube
thanks bassam, i created a cube method using a quadarray, but when i add it
to the scene graph it doesn't show, i just get the black backgound. any
suggestions
Bolaji
>From: Bassam <[EMAIL PROTECTED]>>Reply-To: Discussion
list for Java 3D API <[EMAIL PROTECTED]>>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] colorcube >Date: Sun, 15 Feb 2004 15:08:21 +0200
> >You can, I think, manipulate the properties of the cube before it is
rendered , by making the cube class more object oriented. >For example,
make the colorcube class of type shape3d . implement methods that can change
colors or dimentions (public void setColor() or setDimention()) >Don't
forget to pass arguments to the methods. > >finally , you can use this
method form any class and then attach cube to a branchgroup. >Hope that
helps >Bassam > > > I wonder if anyone can help me... > > I
am using java3d for the first time and i am trying to manipulate the colorcube
class so i have control of the color, dimensions etc.. externally, and then
just attach it to the java3d scene graph to display..... > > If that
made any sense to anyone at all, and you have a solution feel free to hit me
with whatever u got!! > > thanks > > Bolaji > > > >
>
>------------------------------------------------------------------------------
> Find out more about the new range of Premium Web services from MSN. Click
here for more information.
=========================================================================== To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body of
the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help". >
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body >of the message "signoff JAVA3D-INTEREST". For general help, send
email to >[EMAIL PROTECTED] and include in the body of the message
"help".
Find out more about the new range of Premium Web services from MSN. Click here for more
information.
=========================================================================== To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body of
the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message
"help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
|