Set ALL capabilities - setCapability()

View: New views
4 Messages — Rating Filter:   Alert me  

Set ALL capabilities - setCapability()

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am only doing this for debug not for release.
I am aware of the optimization thing.

Is there someway to set all cabalilites to active?

Somthing like setCapability(j3d.core.ALL)
 
I am aware that they can be ORed.
What is the magic number for that?

Thanks
[Message sent by forum member 'polski' (polzki@...)]

http://forums.java.net/jive/thread.jspa?messageID=369533

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Parent Message unknown Re: Set ALL capabilities - setCapability()

by ILCchannel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If your still looking for a technique to set all capability bits for each class, send me an email.  I have done this by extending each class with an additional setCapability method. (ilcchannelilcchannel@...)
 
 
Is there someway to set all cabalilites to active?

Re: Set ALL capabilities - setCapability()

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

only one capability or capabilityIsFrequent bit may be set or cleared per method invocation (see SceneGraphObject javadoc). These bits (integers) cannot be 'ORed' together, because they are numbered consecutively.

For each concerned class the capability bits can be considered as an unique bit position within a long number (64 bit). That's the way Java 3D stores them internally, but these 'longs' are not public.

The open source utility class [b]CapAndFrqBits[/b] allows to retrieve these 'longs' as well as to set and clear 'ORed'-bits in a convenient way. Specific 'longs' can be generated with the program [b]CapBitSelector[/b]. The [b]magic number[/b] to set or clear all bits for an arbritary scene graph object is '281474976710651L' or '2**48 - 1 - 2**2' (bit positions 0 - 47, position 2 isn't used).

CapBitSelector and CapAndFrqBits : http://www.interactivemesh.org/freeware/capbitselector.html

August
[Message sent by forum member 'interactivemesh' (A.Lammersdorf@...)]

http://forums.java.net/jive/thread.jspa?messageID=369668

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Set ALL capabilities - setCapability()

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you August.
[Message sent by forum member 'polski' (polzki@...)]

http://forums.java.net/jive/thread.jspa?messageID=369684

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...