WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Visible and alpha commands (https://forum.worldviz.com/showthread.php?t=1192)

mjabon 08-26-2007 09:45 PM

Visible and alpha commands
 
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.


All times are GMT -7. The time now is 06:17 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC