I'll try both solution. Probably in my case I can change the modelview matrix,
then the Andrea's suggestion can be fine for the moment.

Thanks. 
Daniele

Scrive Dirk Reiners <[EMAIL PROTECTED]>:

> 
>       Hi Andreas,
> 
> On Mon, 2004-10-18 at 12:30, Andreas Zieringer wrote:
> > Hi Daniele,
> > 
> > there is an example in OpenSG/Tutorials/18opengl_slave.cpp
> > 
> > The following should do the trick.
> > 
> > Andreas
> > 
> > mgr = new SimpleSceneManager;
> > 
> > mgr->setWindow(pwin );
> > mgr->setRoot  (scene);
> > 
> > ViewportPtr vp = pwin->getPort(0);
> > MatrixCameraPtr newcam = MatrixCamera::create();
> > beginEditCP(vp);
> >     vp->setCamera(newcam); // replace the cam
> > endEditCP(vp);
> 
> I'm not sure if that's really what he wants, as it replaces not only the
> projection but also the modelview matrix. Right now I don't see a way to
> only replace the Projection matrix. You can enhance it using a
> MatrixCameraDecorator, but you can't replace it. To do that you'd have
> to write your own Camera.
> 
> It might make sense to add that to the Matrix Camera (optionally getting
> the Modelview the usual way from a beacon). Probably not right now
> though, with 1.4 knocking on the door.
> 
>       Dirk
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to