PDA

View Full Version : Visible and alpha commands


mjabon
08-26-2007, 09:45 PM
Hello. I am wondering what the tradeoffs are in using .visible(0) and .alpha(0) on objects for controlling visibility.

I am working a lot with the haptic pen and I notice the interesting thing is that when you make something visible(0) the haptic pen loses it - it becomes disabled it seems. But making it alpha(0) does not. Why does visible have this odd effect on the haptic pen?

Also, what effect does it have on the haptic pen if you call hd.add(object) multiple times for the same object? If the object was already added does the call just have no effect, or will it mess up the pen?

Thanks!
Maria

farshizzo
08-27-2007, 09:21 AM
Are you making the object visible before or after you call hd.add?

Calling hd.add multiple times on the same object is not supported. You should only call it once per object.