A basic question, I think
-
- Gnoblar
- Posts: 2
- Joined: Sat Feb 09, 2013 7:50 pm
A basic question, I think
Hello everyone, I would just like to know what bitmasks are, in layman terms, since I tried elsewhere and I still don't understand. Thanks
-
- OGRE Team Member
- Posts: 4304
- Joined: Mon Feb 04, 2008 2:02 pm
- Location: Germany
- x 136
Re: A basic question, I think
A bit mask basically is just a bit or byte string (e.g. 0xFFAABBDD) used to mask a certain object. That mask can later be used to compare against another mask to check whether a certain action should be executed.
For example Ogre uses mask to determine visible objects for a viewport. So you tell the viewport to only render objects that have a certain mask (an unsigned int in Ogre's case) set that matches the mask set for the viewport. Good example and explanation in this thread: http://www.ogre3d.org/forums/viewtopic. ... 87#p387087
For example Ogre uses mask to determine visible objects for a viewport. So you tell the viewport to only render objects that have a certain mask (an unsigned int in Ogre's case) set that matches the mask set for the viewport. Good example and explanation in this thread: http://www.ogre3d.org/forums/viewtopic. ... 87#p387087
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
-
- Gnoblar
- Posts: 2
- Joined: Sat Feb 09, 2013 7:50 pm
Re: A basic question, I think
Thank you very much that helped me a lot. Thanks