I just want to get the list of viewpoints to put in a drop down list so I can choose 
from the list and set the corresponding viewing transform.  I probably want the 
Viewpoint node, but started with the TransformGroup call
getViewGroups as I found it first.  I am happy to get a handle on which ever one 
provides the viewpoint names and transforms.

I am currently doing something like

Viewpoint[] views = null;
views = VrmlSceneObj.getViewpoints();
int len = VrmlSceneObj.getViewpoints().length;

view gives an out of bound index exception when accessing index 0, ie views[0] or 
views.get(0)
and the 'len' variable = 0 after this call.

Hopefully this isn't just my lack of java expertise.

We will be arriving Sunday and will try to catch up with you at one of the events.

-brett

Giles wrote:

> brett wrote:
>
> >Yes, I think it is the original loader that I have retrieved.  The main thing I
> >am trying to do is retrieve the viewpoints from the vrml file.  Would anybody
> >be so kind as to provide an example.  I am using VrmlSceneObj.getViewGroups()
> >and VrmlSceneObj.getViewpoints() which both return something, but I can't
> >figure out how to get the information and they both report to be 0 length.
> >
> >
> Are you trying to get the java3d viewgroups or the VRML viewpoints.  I
> think we handle viewpoint different from the original code.  What are
> you trying todo with these viewpoints?
>
> >I also looked through the m4 codebase, but wasn't able to find an example of
> >retrieving the viewpoints.  Also, I would like to get the initial code drop
> >from cvs, but only know how to get the latest.  Is the initial code have a
> >particular tag I could reference?  All help is appreciated as I am much more
> >familiar with 3d graphics than java.
> >
> >
> I don't know the commands off hand, but try looking at the cvs reference
> at www.cvshome.com/docs/manual/cvs.html
>
> >Giles, will you be at Siggraph?
> >
> >
> >
> Yes I'll be at Siggraph.  I'll definately be at the X3D class on Sunday, the Web3D 
>consortium meeting on Monday , whenever the Web3D roundupish thing will be and the 
>Java3D bof if it doesn't conflict with the roundupish thing.
> --
> Alan Hudson
> President: Yumetech, Inc.                      http://www.yumetech.com/
> Web3D Open Source Chair        http://www.web3d.org/TaskGroups/source/
>
> ===========================================================================
> 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".

Reply via email to