boolean attributes vs int attributes

   3038   3   1
User Avatar
Member
280 posts
Joined: Dec. 2015
Offline
Hi,
Does anyone know the reason why there isn't a boolean attribute type in Houdini?
I know you can make one with a simple integer value but the reason behind boolean attributes themselves is for the small footprint. And in houdini we find ourselves often working on the millions of points so any reduction of data helps right?
And I know you can define a boolean with a simple relation with an integer, float or even vector. I was thinking in performance. While a integer value is a 32 bit attribute with a huge range traditionally a boolean attribute is just 1 or 0, very efficient when dealing with huge amount of data.

Maybe a 1 or 0 int is the same footprint as a boolean attribute?
https://www.imdb.com/name/nm8408875/ [www.imdb.com]
User Avatar
Member
323 posts
Joined: Jan. 2015
Online
Hi Nicolas,
you can create a 8bit integer attribute for a boolean see:
http://www.sidefx.com/docs/houdini15.0/nodes/sop/attribcast [www.sidefx.com]

regards

Olaf
User Avatar
Member
280 posts
Joined: Dec. 2015
Offline
Olaf Finkbeiner
Hi Nicolas,
you can create a 8bit integer attribute for a boolean see:
http://www.sidefx.com/docs/houdini15.0/nodes/sop/attribcast [www.sidefx.com]

regards

Olaf
Thank you very much!
https://www.imdb.com/name/nm8408875/ [www.imdb.com]
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
Groups are boolean.
  • Quick Links