Hi,

my suggestion would be to look at the showAll() method implemented in
the SMM. You could use it as template for your own
flyToObject(OSGNodeRecPtr objectNode) method. Just don't use the root
of the scene to calculate (like done in showAll()) but the objectNode
containing the part you want to fly to. Maybe worth a quick try.

Cheers,
Christoph

2010/5/7 Haeyong Chung <[email protected]>:
> Thank you as always for great answers.
> I am using SSM . I guess depending on the number of objects to show, OpenSG
> change the camera position to cover the entire objects in a scene. I need to
> zoom in a scene when the OpenSG application starts. How can I zoom in or
> change a camera position to move close to some objects. Of course, if you
> click a right mouse button, we can zoom in and out. But I need to do this
> without mouse controls.
> Thank you again.
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>

------------------------------------------------------------------------------

_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to