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 

OSG with QGLWidget and Anti Aliasing


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
dominic.stalder@bluewi...
Guest





PostPosted: Tue Nov 10, 2009 2:54 pm    Post subject:
OSG with QGLWidget and Anti Aliasing
Reply with quote

Hi there

I am absolutly new to the OSG stuff (and it's the first time I attend in
a mailing list) and trying to get my OSG work in a Qt environment. I
made my own OSG/Qt class, which inherits from QGLWidget and
osgViewer::Viewer. Most of the OSG stuff works, but I can't enable the
anti aliasing or the multi sampling.

I tried the following two configurations:

1.
ref_ptr< DisplaySettings > displaySettings = new DisplaySettings;
displaySettings->setNumMultiSamples(16);
modelView->setDisplaySettings( displaySettings.get() );

2.
osg::DisplaySettings::instance()->setNumMultiSamples(Cool;

But this didn't work. Does anybody had the same problems or have some
ideas to solve this problem. I attached my class and header files.

If I'm doing something wrong concerning the "mailing list rules", just
let me know.

Thanks a lot and regards
Dominic



------------------
Post generated by Mail2Forum
Back to top
Ice-D
User


Joined: 10 Nov 2009
Posts: 61

PostPosted: Wed Nov 11, 2009 10:23 am    Post subject:
OSG with QGLWidget and Anti Aliasing
Reply with quote

Sorry, searched on the wrong framework. I could solve the problem in Qt
itself:

QGLFormat fmt;
QGLFormat::setDefaultFormat(fmt);
fmt.setSamples(4);
fmt.setSampleBuffers(true);

qglwidget->setFormat(fmt);


Quote:
Hi there

I am absolutly new to the OSG stuff (and it's the first time I attend in
a mailing list) and trying to get my OSG work in a Qt environment. I
made my own OSG/Qt class, which inherits from QGLWidget and
osgViewer::Viewer. Most of the OSG stuff works, but I can't enable the
anti aliasing or the multi sampling.

I tried the following two configurations:

1.
ref_ptr< DisplaySettings > displaySettings = new DisplaySettings;
displaySettings->setNumMultiSamples(16);
modelView->setDisplaySettings( displaySettings.get() );

2.
osg::DisplaySettings::instance()->setNumMultiSamples(Cool;

But this didn't work. Does anybody had the same problems or have some
ideas to solve this problem. I attached my class and header files.

If I'm doing something wrong concerning the "mailing list rules", just
let me know.

Thanks a lot and regards
Dominic

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





------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
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 GLSL 1.3 support for vertex-attrib al... robertosfield Submission 0 Fri Dec 23, 2016 5:08 pm View latest post
No new posts GLSL 1.3 support for vertex-attrib al... anishuz Submission 4 Fri Jul 01, 2016 2:15 pm View latest post
No new posts fatal error: QGLWidget: No such file ... Tom General 4 Tue Nov 03, 2015 11:24 am View latest post
No new posts fatal error: QGLWidget: No such file ... Tom General 2 Tue Nov 03, 2015 8:49 am View latest post
No new posts Noise on polygons like aliasing after... Andrea74 General 0 Tue Oct 06, 2015 2: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