Andrew Adrian wrote:

> So, I can't have the object in the scene graph if I want to draw it in
> immediate mode?  Which brings to mind another question... Does immediate
> mode rendering use the scene graph at all?  If not, how does it know
> where to draw the object on the screen?  Will it just draw all the
> objects on top of each other at the origin?  I'm a bit more confused now
> than when I started, but such is the learning process....
>

Immediate mode does not use the scene graph to render.
You must explicitly set the current transform for the object you want to draw.
You must also do culling, that is NOT draw objects that are not scene.
Basically, immediate mode is just a way to draw to the screen.  What's really
nice about Java3D's immediate mode is that Shape3D's know how to draw themselves
(not really accurate, it's the Geometry types that know how to draw themselves,
but if feels like Shape3Ds :-)).

Hope that helps.


>
> Thanks for the help.
>
> Andy
>
> On Fri, Apr 21, 2000 at 02:51:47PM +0000, Stephan Kolaroff wrote:
> > If I'm not wrong, .draw(Shape3D s) is in fact
> > .setAppearance(s.getAppearance). So, I thing you are using its Appearance
> > somewhere, somehow, for example in scene graph. Recheck code and Good luck!
> >
> >
> > >From: Andrew Adrian <[EMAIL PROTECTED]>
> > >Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: [JAVA3D] What the heck does this mean????
> > >Date: Fri, 21 Apr 2000 08:05:49 -0500
> > >
> > >I'm getting an odd error when trying to use immediate-mode rendering.
> > >
> > >"javax.media.j3d.IllegalSharingException: Appearance: Scene Graph
> > >appearance may not be in immediate mode"
> > >
> > >This comes up on a GraphicsContext3D.draw(Shape3D);  The Shape3D it's
> > >trying to draw is one that I wrote.  Basically I have a class that
> > >extends Primitive, that based on a constructor argument creates either a
> > >Pyramid or a ClosedBox.  I wrote both the Pyramid and ClosedBox classes
> > >to extend Shape3D, making it really easy (I thought) to do immediate-mode
> > >rendering.
> > >
> > >
> > >Can anyone give me a clue on how to fix this, and perhaps why I'm getting
> > >it in the first place?
> > >
> > >Thanks in advance.
> > >
> > >Andy
> > >
> > >===========================================================================
> > >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".
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> > ===========================================================================
> > 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".

--
__________________________________________________________

Shawn Kendall               Full Sail Real World Education
Course Director             3300 University BLVD
Real Time 3D for Gaming     Winter Park FL 32792
[EMAIL PROTECTED]       http://www.fullsail.com
__________________________________________________________

===========================================================================
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".

Reply via email to