You should not use the TG under the viewing subgraph to add 3D content. You
need to create a content subgraph with a BG node at its root and a TG (root
TG) below it. Then each of your 3D objects should be a subgraph that
consists of:
BG
|
TG (optional but a must if you want to manipulate
objects individually)
|
Shape3D (or its derivatives)
Now add it as a child of the root TG.
Hope this helps.
-Veasna
-----Original Message-----
From: Paraskevas Orfanides [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Viewing and Objects......help!!
If the only problem is that you can only add branchgroups, then why don't
you just create a branchgroup, say bg, add your transform group with the
object to bg, and then add bg to the viewplatform's transform?
It works for adding new objects to a live/compiled branchgroup, it will
probably work here, too.
Paraskevas
--- Sackmunky <[EMAIL PROTECTED]> wrote:
> Ok, I am using a SimpleUniverse.
> I want to get the viewPlatform = vp = universe.getViewingPlatform();
> I wnat to get the Transform = ViewTransform =
> vp.getViewPlatformTransform();
>
> Now I want to add the Geometry to it, but I cant cause only BranchGroups
> can
> be added.
> I also tried setting the PlatformGeometry of the viewingPlatform and
> nothing
> happens.
>
> Should I go ahead and use VirtualUniverse.........blah.
>
> Zak
> ----- Original Message -----
> From: "Justin Couch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 19, 2001 9:18 AM
> Subject: Re: [JAVA3D] Viewing and Objects......help!!
>
>
> > > Sackmunky wrote:
> >
> > > Can I place a box in the scene, (kinda like a layer), that no matter
> > > where I look, It will stay in the same place?
> >
> > This technique is usually termed a HUD - Head Up Display.
> >
> > The easiest, though probably not the prettiest way, to do this is to
> > keep the geometry in the same branch of the scenegraph as your
> > ViewPlatform. Say you have something like:
> >
> > Universe
> > |
> > Locale
> > |--------------+
> > BG BG
> > | |
> > Your world TG
> > |-----------------+
> > ViewPlatform Box &
> > Other "static"
> > geometry
> > --
> > Justin Couch http://www.vlc.com.au/~justin/
> > Freelance Java Consultant http://www.yumetech.com/
> > Author, Java 3D FAQ Maintainer http://www.j3d.org/
> > -------------------------------------------------------------------
> > "Humanism is dead. Animals think, feel; so do machines now.
> > Neither man nor woman is the measure of all things. Every organism
> > processes data according to its domain, its environment; you, with
> > all your brains, would be useless in a mouse's universe..."
> > - Greg Bear, Slant
> > -------------------------------------------------------------------
> >
> >
>
===========================================================================
> > 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".
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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".
Re: [JAVA3D] Viewing and Objects......help!!
HENG,VEASNA (HP-Corvallis,ex1) Thu, 19 Apr 2001 09:42:06 -0700
- [JAVA3D] Viewing and Objects......help!! Sackmunky
- Re: [JAVA3D] Viewing and Objects......... Dipl. Ing. Paul Szawlowski
- Re: [JAVA3D] Viewing and Objects......... Justin Couch
- Re: [JAVA3D] Viewing and Objects..... Sackmunky
- Re: [JAVA3D] Viewing and Objec... Paraskevas Orfanides
- Re: [JAVA3D] Viewing and Objec... Kakollu Satyanarayana
- Re: [JAVA3D] Viewing and Objects......... J. Lee Dixon
- HENG,VEASNA (HP-Corvallis,ex1)
