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 

set cullface mode in osg file


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


Joined: 02 Mar 2016
Posts: 60

PostPosted: Fri Mar 02, 2018 10:07 am    Post subject:
set cullface mode in osg file
Reply with quote

Hi,

What is the correct syntax to enable only front or backface culling in an osg file?

Similar to StateSet { ... GL_CULL_FACE ON ... }

_________________
OSG Version: 3.4.1
OS: OpenSuse Leap 42.1
Back to top
View user's profile Send private message
Voerman, L.
Guest





PostPosted: Fri Mar 02, 2018 12:03 pm    Post subject:
set cullface mode in osg file
Reply with quote

Hi Sebastian,


Geode {...            Geometry { ...                             StateSet { ...                                           GL_CULL_FACE ON                                             Material { .... }
                                            CullFace {
                                                mode BACK

                                            }




For no culling use  GL_CULL_FACE OVERRIDE|OFF
To cull front faces use mode FRONT.
To cull all faces use mode FRONT_AND_BACK
Regards, Laurens.


On Fri, Mar 2, 2018 at 11:07 AM, Sebastian Schmidt < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

What is the correct syntax to enable front or backface culling in an osg file?

For example:

Geode {...
            Geometry { ...
                             StateSet { ...
                                            GL_CULL_FACE ON
                                            ...                             Material {

------------------------
OSG Version: 3.4.1
OS: OpenSuse Leap 42.1

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





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
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 osgEarth often crashes in multi-displ... xdfanfan General 0 Mon Nov 26, 2018 8:07 am View latest post
No new posts Change color of node read from dxf file dhhabyc General 10 Sat Nov 17, 2018 12:58 pm View latest post
No new posts How to actually play animation in osg... Warren93 General 3 Tue Oct 23, 2018 1:23 pm View latest post
No new posts Idea to implement a kind of 'rubber m... christoph General 16 Tue Sep 11, 2018 11:51 am View latest post
No new posts Load an obj file and mapping a given ... aaa3d General 3 Mon Aug 06, 2018 2:27 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