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 

Get RenderBinDetails


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





PostPosted: Wed May 24, 2017 9:49 am    Post subject:
Get RenderBinDetails
Reply with quote

Hello,


in order to sort my nodes by depth, I use the following code to a node's stateset

nodeStateSet->setRenderBinDetails(order, "DepthSortedBin");


where "order" is an int. Now, how do I get that value when I'm iterating over my nodes?

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10982

PostPosted: Wed May 24, 2017 10:47 am    Post subject:
Get RenderBinDetails
Reply with quote

Hi Bruno,

Quote:
From the include/osg/StateSet header:

/** Set the render bin details.*/
void setRenderBinDetails(int binNum,const std::string&
binName,RenderBinMode mode=USE_RENDERBIN_DETAILS);

...

/** Set the render bin number.*/
inline void setBinNumber(int num) { _binNum=num; }

/** Get the render bin number.*/
inline int getBinNumber() const { return _binNum; }

Robert.

On 24 May 2017 at 10:44, Bruno Oliveira <> wrote:
Quote:
Hello,

in order to sort my nodes by depth, I use the following code to a node's
stateset

nodeStateSet->setRenderBinDetails(order, "DepthSortedBin");

where "order" is an int. Now, how do I get that value when I'm iterating
over my nodes?





------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Bruno Oliveira
Guest





PostPosted: Mon May 29, 2017 12:43 pm    Post subject:
Get RenderBinDetails
Reply with quote

Thank you. Didn't realize the bin number was the same of bin details.


2017-05-24 11:43 GMT+01:00 Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>:
Quote:
Hi Bruno,

Quote:
From the include/osg/StateSet header:

        /** Set the render bin details.*/
        void setRenderBinDetails(int binNum,const std::string&
binName,RenderBinMode mode=USE_RENDERBIN_DETAILS);

...

        /** Set the render bin number.*/
        inline void setBinNumber(int num) { _binNum=num; }

        /** Get the render bin number.*/
        inline int getBinNumber() const { return _binNum; }

Robert.

On 24 May 2017 at 10:44, Bruno Oliveira < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hello,

in order to sort my nodes by depth, I use the following code to a node's
stateset

nodeStateSet->setRenderBinDetails(order, "DepthSortedBin");

where "order" is an int. Now, how do I get that value when I'm iterating
over my nodes?



Quote:
_______________________________________________
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

_______________________________________________
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



Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP