coin icon indicating copy to clipboard operation
coin copied to clipboard

SoTrackballManip does not work

Open VolkerEnderlein opened this issue 11 years ago • 3 comments

Original report by Anonymous.


The SoTrackballManip manipulator does not work. The console has this:

Coin read error: Unknown reference "TRACKBALL_INACTIVE_MATERIAL" Occurred at line 23 in Coin error in SoInteractionKit::readDefaultParts(): Dragger default parts not available. Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballRotator not found Coin warning in SoBaseKit::setPart(): Attempted to set part rotator'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballRotatorActive not found Coin warning in SoBaseKit::setPart(): Attempted to set part rotatorActive'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballXRotator not found Coin warning in SoBaseKit::setPart(): Attempted to set part XRotator'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballXRotatorActive not found Coin warning in SoBaseKit::setPart(): Attempted to set part XRotatorActive'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballYRotator not found Coin warning in SoBaseKit::setPart(): Attempted to set part YRotator'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballYRotatorActive not found Coin warning in SoBaseKit::setPart(): Attempted to set part YRotatorActive'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballZRotator not found Coin warning in SoBaseKit::setPart(): Attempted to set part ZRotator'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballZRotatorActive not found Coin warning in SoBaseKit::setPart(): Attempted to set part ZRotatorActive'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserAxis not found Coin warning in SoBaseKit::setPart(): Attempted to set part userAxis'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserAxisActive not found Coin warning in SoBaseKit::setPart(): Attempted to set part userAxisActive'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserRotator not found Coin warning in SoBaseKit::setPart(): Attempted to set part userRotator'' to wrong type. Expected Separator'', got Text2'' Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserRotatorActive not found Coin warning in SoBaseKit::setPart(): Attempted to set part userRotatorActive'' to wrong type. Expected Separator'', got Text2''

Code that replicates this problem can be found at the doc for SoTrackballManip: http://doc.coin3d.org/Coin/classSoTrackballManip.html#_details

I am using OS X 10.8, Xcode 4.5, and Coin 4.x.

VolkerEnderlein avatar Nov 04 '12 20:11 VolkerEnderlein

Original comment by Kevin Ward (Bitbucket: antiomiae, GitHub: antiomiae).


I am the submitter for the above bug. The debug output got messed up. Here it is formatted properly:

Coin read error: Unknown reference "TRACKBALL_INACTIVE_MATERIAL"
	Occurred at line  23 in <memory>
Coin error in SoInteractionKit::readDefaultParts(): Dragger default parts not available.
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballRotator not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "rotator" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballRotatorActive not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "rotatorActive" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballXRotator not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "XRotator" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballXRotatorActive not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "XRotatorActive" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballYRotator not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "YRotator" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballYRotatorActive not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "YRotatorActive" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballZRotator not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "ZRotator" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballZRotatorActive not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "ZRotatorActive" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserAxis not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "userAxis" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserAxisActive not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "userAxisActive" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserRotator not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "userRotator" to wrong type. Expected "Separator", got "Text2"
Coin info in SoInteractionKit::setAnyPartAsDefault(): nodename trackballUserRotatorActive not found
Coin warning in SoBaseKit::setPart(): Attempted to set part "userRotatorActive" to wrong type. Expected "Separator", got "Text2"

The problem is identical for the current 3.1.3 release.

VolkerEnderlein avatar Nov 04 '12 21:11 VolkerEnderlein

Original comment by Gerhard R (Bitbucket: gerhardr, GitHub: gerhardr).


Hi,

This seems to be a general problem with the DEF/USE functionality. It looks broken :/

A work around is to set the following environment variable before running your program.

COIN_SOINPUT_SEARCH_GLOBAL_DICT=1

This allows Coin3D to use the global name dictionary to resolve a USE reference. However, this may have unwanted side effects because global names are not unique.

cheers, Gerhard

VolkerEnderlein avatar Nov 14 '12 07:11 VolkerEnderlein

Original comment by Roy Walmsley (Bitbucket: walroy, GitHub: walroy).


Hi,

This may be associated with issue #28 which I have fixed and resolved. I have the Trackball manipulator working OK. Please try to implement the above fix and see if the problem is resolved.

VolkerEnderlein avatar May 27 '14 15:05 VolkerEnderlein