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 

Shadows in osgviewerQT ?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Julian Scheid
Guest





PostPosted: Thu Oct 30, 2008 11:26 pm    Post subject:
Shadows in osgviewerQT ?
Reply with quote

Hi,

OK so I figured out that my problems are due to using AdapterWidget - I understand that shadows etc. should work fine with QOSGWidget.

Unfortunately QOSGWidget doesn't work here: the widgets remains white and Qt prints warnings about recursive repaint.

I've checked out the latest OSG trunk and tried with that but get the same result (actually it segfaults due to a bogus ifdef in the QOSGWidget source code - I'll send over a patch shortly - but after fixing that I get the same result.)

I've started tracking down the problem, so far the only thing that I figured out is that GetWindowPort always seems to return 0 for the QOSGWidget's native peer - is that expected?

I'm using Qt 4.4.3 on an Intel Mac with OS X 10.5. The Carbon code paths are used, not X11. Are there any known problems with QOSGWidget with Qt 4.4, OS X 10.5 or with the Carbon peers?

Thanks in advance,

Julian


On Thu, Oct 30, 2008 at 3:30 AM, Julian Scheid < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

I'm trying to embed osg in a Qt4 application. I've had some troubles with FSAA/multisampling but managed to work around it by configuring the QGLWidget for FSAA instead of osg.

However, I'm now trying to get shadows to work based on the osgshadow code, and it seems that no matter which shadowing technique I try it brings my machine to a grinding halt - the whole screen starts to flicker wildly, circles and balls reminiscent of Katamari Damacy are drawn into the scene, and when continuous update (via timer) is enabled I have no recourse but to restart my machine. (This is one of the new Intel Macbooks running OS X 10.5)

I gather that when embedded in Qt, the GraphicsWindowCarbon code isn't used and osg just uses the existing GL context. Does that mean that I would have to manually setup Qt's GL context and somehow synchronize it with osg's shadow magic?

If all that is meant to be supported in the Qt viewer, is there any chance you could add an example for this situation?

Thanks in advance,

-Julian



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 How to cast shadows from different li... hbaqueiro General [forum] 0 Tue Jan 15, 2019 1:05 pm View latest post
No new posts How to cast shadows from different li... hbaqueiro General [forum] 0 Tue Jan 15, 2019 1:01 pm View latest post
No new posts How to cast shadows from different li... hbaqueiro General [forum] 0 Tue Jan 15, 2019 12:55 pm View latest post
No new posts How to cast shadows from different li... hbaqueiro General [forum] 0 Tue Jan 15, 2019 12:53 pm View latest post
No new posts How to cast shadows from different li... hbaqueiro General [forum] 0 Tue Jan 15, 2019 12:45 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