OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Fix picture freeze for certain camera perspectives.


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU]
View previous topic :: View next topic  
Author Message
airion
User


Joined: 11 Aug 2010
Posts: 31

PostPosted: Fri Sep 30, 2011 11:19 am    Post subject:
Fix picture freeze for certain camera perspectives.
Reply with quote

Hi,

I had the problem in my application, that the picture was frozen for certain camera perspectives. This is caused due to the near far auto computation, that also takes the geometry of the osgPPU::Unit's into concern.

For the faulty case, updateCalculatedNearFar(..) in CullVisitor::apply(Geode& node) has returned false, because the osgPPU::Unit geode was considered completely behind the near plane.

Please find attached fix for osgPPU::Unit that prevents it's geode from be taken into account for near far computation.

Regards,
--Alex


...


Thank you!

Cheers,
Alexander
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Fri Sep 30, 2011 11:46 am    Post subject:
Fix picture freeze for certain camera perspectives.
Reply with quote

Hi Alexander,

Quote:
Please find attached fix for osgPPU::Unit that prevents it's geode from be taken into account for near far computation.

Nice to see you fixed this at the source, I had just overridden the
Processor class and disabled near/far computation for the whole Unit
subgraph, but fixing it at the source is much better.

Good work!

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
vezza (Luca Vezzadini)
User


Joined: 23 Apr 2010
Posts: 44

PostPosted: Fri Sep 30, 2011 4:23 pm    Post subject:
Reply with quote

Hi,
Cool to see this fixed. Did you post this on the osgPPU trunk? I don't seem to see any recent change there...

By the way, what version of OSG are you using to compile it? I just tried osgPPU 0.4.2 with OSG 3.0 and there seem to be a few changes to make to make it compile.

Luca
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Fri Sep 30, 2011 4:38 pm    Post subject:
Fix picture freeze for certain camera perspectives.
Reply with quote

Hi Luca,

Quote:
Cool to see this fixed. Did you post this on the osgPPU trunk? I don't seem to see any recent change there...

I think Alexander just posted a modified file, the changes haven't been
integrated into osgPPU yet.

Quote:
By the way, what version of OSG are you using to compile it? I just tried osgPPU 0.4.2 with OSG 3.0 and there seem to be a few changes to make to make it compile.

Personally I've compiled osgPPU trunk against OSG trunk just yesterday,
and didn't hit any problems.

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
vezza (Luca Vezzadini)
User


Joined: 23 Apr 2010
Posts: 44

PostPosted: Mon Oct 03, 2011 10:13 am    Post subject:
Reply with quote

You're right, I've just tried a clean checkout from the trunk with OSG 3.0.1 and everything compiles files, including Alexander's fix.
Thanks,
Luca
Back to top
View user's profile Send private message
art (Art Tevs)
Site Admin


Joined: 20 Dec 2008
Posts: 414
Location: Saarbrücken, Germany

PostPosted: Tue Oct 04, 2011 8:44 am    Post subject:
Reply with quote

Hi Alexander,

thank you for the patch. I will check it out in the next days and wil patch osgPPU sources accordingly.

Cheers,
Art
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPPU [osgPPU] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts When gets the view matrix of a camera... wernerM General 1 Sat Nov 18, 2017 4:08 pm View latest post
No new posts Camera collision with terrain ht11 General [3rdparty] 0 Fri Oct 13, 2017 7:34 am View latest post
No new posts How to set field of view of second sl... kefaline General [forum] 2 Wed Oct 04, 2017 1:29 pm View latest post
No new posts Rotating Slave Camera Views Jim Perkins General 1 Tue Sep 26, 2017 7:57 pm View latest post
No new posts Is Camera should be a MatrixTransform? mp3butcher General 0 Mon Sep 18, 2017 4:42 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP