Re: [osg-users] Setting the reference location for LOD calcs for a camera
Hi, I found what I was looking for, and it might even provide the easier solutin you are looking for. I change the reference frame from ABSOLUTE_RF to ABSOLUTE_RF_INHERIT_VIEWPOINT. Stepping through the code it appears that in this mode, the viewpoint is inherited from the parent camera. So, as long as your RTT camera is a a child of your main camera you should get the beaviour you want. From the testing I have done so far it appears to work as I have described. If anyone can confirm this is the intention of the setting that would be great. Cheers, Brad From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Christiansen, Brad Sent: Friday, 8 July 2011 10:01 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Setting the reference location for LOD calcs for a camera Hi, Thanks for the info. It looks like I will have to do something similar. The function I was thinking of was for the line intersector, which allows you to set the reference eye point. Cheers, Brad From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Smelik, R.M. (Ruben) Sent: Thursday, 7 July 2011 3:54 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Setting the reference location for LOD calcs for a camera Hi Brad, We have done this with a custom CullVisitor that stores the eye position of the main camera and overrides the getDistanceToViewPoint to use that eye position for all LOD distance calculations. If there is an easier solution, I'd love to hear it :-) Kind regards, Ruben From: osg-users-boun...@lists.openscenegraph.org [osg-users-boun...@lists.openscenegraph.org] on behalf of Christiansen, Brad [brad.christian...@thalesgroup.com.au] Sent: Thursday, July 07, 2011 8:08 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Setting the reference location for LOD calcs for a camera Hi, I am producing some depth textures for shadowing using a couple of RTT cameras. When producing these depth maps I want to use the same LOD levels (from a VPB based PagedLOD database) that are rendered by the 'main' camera. I am sure I have done this before and there was a simple method to do so (something like camera-setReferenceEyePoint()). Can anyone point me to the correct approach for doing this? Cheers, Brad - DISCLAIMER: This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. - This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/emaildisclaimer - DISCLAIMER: This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. - -
Re: [osg-users] Setting the reference location for LOD calcs for a camera
Hi Brad, We have done this with a custom CullVisitor that stores the eye position of the main camera and overrides the getDistanceToViewPoint to use that eye position for all LOD distance calculations. If there is an easier solution, I'd love to hear it :-) Kind regards, Ruben From: osg-users-boun...@lists.openscenegraph.org [osg-users-boun...@lists.openscenegraph.org] on behalf of Christiansen, Brad [brad.christian...@thalesgroup.com.au] Sent: Thursday, July 07, 2011 8:08 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Setting the reference location for LOD calcs for a camera Hi, I am producing some depth textures for shadowing using a couple of RTT cameras. When producing these depth maps I want to use the same LOD levels (from a VPB based PagedLOD database) that are rendered by the 'main' camera. I am sure I have done this before and there was a simple method to do so (something like camera-setReferenceEyePoint()). Can anyone point me to the correct approach for doing this? Cheers, Brad - DISCLAIMER: This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. - This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/emaildisclaimer ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Setting the reference location for LOD calcs for a camera
Hi, Thanks for the info. It looks like I will have to do something similar. The function I was thinking of was for the line intersector, which allows you to set the reference eye point. Cheers, Brad From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Smelik, R.M. (Ruben) Sent: Thursday, 7 July 2011 3:54 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Setting the reference location for LOD calcs for a camera Hi Brad, We have done this with a custom CullVisitor that stores the eye position of the main camera and overrides the getDistanceToViewPoint to use that eye position for all LOD distance calculations. If there is an easier solution, I'd love to hear it :-) Kind regards, Ruben From: osg-users-boun...@lists.openscenegraph.org [osg-users-boun...@lists.openscenegraph.org] on behalf of Christiansen, Brad [brad.christian...@thalesgroup.com.au] Sent: Thursday, July 07, 2011 8:08 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Setting the reference location for LOD calcs for a camera Hi, I am producing some depth textures for shadowing using a couple of RTT cameras. When producing these depth maps I want to use the same LOD levels (from a VPB based PagedLOD database) that are rendered by the 'main' camera. I am sure I have done this before and there was a simple method to do so (something like camera-setReferenceEyePoint()). Can anyone point me to the correct approach for doing this? Cheers, Brad - DISCLAIMER: This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. - This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/emaildisclaimer - DISCLAIMER: This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. - ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org