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 

PBuffer causing error when profiling on Linux


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
jsmitq
Newbie


Joined: 08 Jun 2017
Posts: 1

PostPosted: Thu Jun 08, 2017 4:24 pm    Post subject:
PBuffer causing error when profiling on Linux
Reply with quote

Hi,

I am trying to profile my Linux application using the NVIDIA Linux Graphics Debugger, but I get an error when I perform a frame capture that the 'glXCreatePbuffer' command is not supported. This command is located in osgViewer/PixelBufferX11.cpp.

From my research it seems that PBuffers have been deprecated in OpenGL and that FBOs should be used instead. This is probably why the debugger doesn't support it.

My question is: Can OSG be configured to use FBOs for the X11 viewer? If not, does anyone have a suggestion on how to modify PixelBufferX11.cpp to use FBOs?

I'm using OSG 3.4.0 and CentOS 7.

Thank you!
Jeremy
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11237

PostPosted: Sun Jun 11, 2017 12:23 pm    Post subject:
PBuffer causing error when profiling on Linux
Reply with quote

Hi Jeremy,

FBO's aren't a direct replacement for PixelBuffer objects so you can't
just miminc a osg::PixelBufferX11 by using a FBO.

FBO's are GL object objects, while PixelBuffer's are graphics
contexts. To create a FBO you need a graphics context. A PixelBuffer
is a graphics context that has it's own frame buffer that isn't
assigned to the display like a GraphicsWindow graphics context.

In the past OpenGL didn't have the ability to render to anything other
than graphics context's frame buffer so to PixelBuffer were the
standard way to doing multi pass rendering. With the advent of
FrameBufferObject OpenGL now had an ability to render to a frame
buffer other than the one assigned to the graphics context for the
purpose of display on the screen, as the FBO is OpenGL object within a
graphics context it's more efficient than using two graphics context
to do render to texture so is very much the preferred way of doing
multipass techniques like Render to Texture used in shadowing,
lighting etc.

These days the need for PixelBuffer is much diminished as FBO's work
really well for most applications, however, there are times with
PixelBuffer's are still useful - if you want to render completely
offscreen with any on screen window then a PixelBuffer is a perfect
tool as is still the appropriate tool for the job.

Robert.



On 8 June 2017 at 17:24, Jeremy Smith <> wrote:
Quote:
Hi,

I am trying to profile my Linux application using the NVIDIA Linux Graphics Debugger, but I get an error when I perform a frame capture that the 'glXCreatePbuffer' command is not supported. This command is located in osgViewer/PixelBufferX11.cpp.

From my research it seems that PBuffers have been deprecated in OpenGL and that FBOs should be used instead. This is probably why the debugger doesn't support it.

My question is: Can OSG be configured to use FBOs for the X11 viewer? If not, does anyone have a suggestion on how to modify PixelBufferX11.cpp to use FBOs?

I'm using OSG 3.4.0 and CentOS 7.

Thank you!
Jeremy

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71026#71026








------------------
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 Warning: Error in reading to jpg images romulogcerqueira General 4 Sat Nov 04, 2017 10:37 pm View latest post
No new posts Compile error with Visual Studio 2017 draccagni General 2 Sat Aug 19, 2017 1:52 pm View latest post
No new posts memory issue about x-windows in Linux Alberto Luaces General 1 Tue Aug 01, 2017 4:38 pm View latest post
No new posts PHPBB ERROR: A Closer Look, and Why Steal General 0 Mon Jul 10, 2017 11:03 am View latest post
No new posts Error with InputStream reading osgb f... Riccardo Corsi General 28 Thu Jun 08, 2017 11:20 am 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