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 

Missing features with GL Core profile


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


Joined: 16 Apr 2019
Posts: 1

PostPosted: Tue Apr 16, 2019 11:23 am    Post subject:
Missing features with GL Core profile
Reply with quote

Hi,

I use OpenSceneGraph and I want to use some features of OpenGL 3.3 and the Core profile. I compiled OpenSceneGraph with the option -DOPENGL_PROFILE=GL3. I got the features I wanted, however, some features of OSG do not work anymore, as lighting with osg::Light, osg::LineWidth, osg::LineStipple on so on.

I know OSG is mainly built uppon GL2 features, and that Fixed Function Pipeline is not available in core profile, but I expected for "basic" features as light or lines to work.

It the support of those features in Core profile is planned? Or do I have to implement shaders myself? Or are there any existing implementation?


Thank you for your time,
Hugo
Back to top
View user's profile Send private message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 519
Location: France

PostPosted: Wed Apr 17, 2019 1:59 pm    Post subject:
Re: Missing features with GL Core profile
Reply with quote

core gl 3 has deprecated lot of stuff (including fixed pipeline lighting and material) . Some basic fixed features have been emulated because there are kinda required to render (fixed pipeline matrices), but lighting didn't.
You can contribute on that (follow State::useModelViewAndProjectionUniforms to see how deprecated matrices have been emulated)

PS:glLineWidth requires GL_LINE_SMOOTH to be enable...
cheers

Hugal31 wrote:
Hi,

I use OpenSceneGraph and I want to use some features of OpenGL 3.3 and the Core profile. I compiled OpenSceneGraph with the option -DOPENGL_PROFILE=GL3. I got the features I wanted, however, some features of OSG do not work anymore, as lighting with osg::Light, osg::LineWidth, osg::LineStipple on so on.

I know OSG is mainly built uppon GL2 features, and that Fixed Function Pipeline is not available in core profile, but I expected for "basic" features as light or lines to work.

It the support of those features in Core profile is planned? Or do I have to implement shaders myself? Or are there any existing implementation?


Thank you for your time,
Hugo

_________________
Twirling twirling twirling toward freedom
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 -> 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 Missing 'png' image reader sdef General [3rdparty] 2 Mon Nov 12, 2018 5:51 am View latest post
No new posts MacOSX/Core Profile: Attribute aliasi... remoe General 5 Tue Jul 31, 2018 8:27 am View latest post
No new posts Core Profile: glEnable/glDisable GL_P... Damian Dixon General 10 Sun Jul 29, 2018 1:24 pm View latest post
No new posts missing color for simple model with G... aroth General 1 Fri Jul 27, 2018 1:55 pm View latest post
No new posts Missing OpenThreads PDB when building... guyv Build system [build] 0 Thu Jul 12, 2018 12:39 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