WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   User-Interface (https://forum.worldviz.com/showthread.php?t=285)

farshizzo 03-02-2005 01:30 PM

There is no command to get the visibility of an object. You can keep track of it manually by setting a variable everytime you change the visiblity of an object.
Code:

object.visible(0)
object.isVisible = 0
.
.
.
if object.isVisible:
        print 'object is visible'


Johannes 03-04-2005 02:48 PM

thank you, that is what I tried to say somehow complicated with countervariable... :)

How do I match the normal rgb-color scheme with the vizard colors?

As I read in the help-file vizard uses something like

.color(
[r,g,b]
subchild = '' )

and ball.color(1,0,0) #Turn the ball red

But as I "know" it is normally 255,0,0 for red...
So how could I translate a color 0,61,136 to vizard-colors?

I tried: pointGraphColor=(0,61/255,136/255) but it did not work...


Johannes

farshizzo 03-04-2005 03:14 PM

Since you are dividing an integer with another integer, the result will be an interger. You need to use floating point numbers instead:
Code:

pointGraphColor=(0,61/255.0,136/255.0)

Johannes 03-07-2005 06:05 AM

Thank you,
Johannes

Johannes 06-03-2005 03:18 PM

A while ago we discussed:

Quote:

3) The 3ds and wrl formats don't support reflection textures. You will have to manually apply the texture to the object within your script. You could also export your object to the .osg format, which supports reflection textures. The exporter is called OSGExp. The following page shows where you can download it:http://www.worldviz.com/products/vizard/tools.html

I did the workaround looking at the minicooper example
innerCoil=coil.getchild('innerCoil')
texGold=viz.add('../resources/joNew/Lakerem2.jpg')
innerCoil.texture(texGold,'',1)
innerCoil.appearance(viz.TEXGEN,'',1)

Looks fine on the screen but when I look at it with the HMD I only see the golden reflecting innercoil as black?!

If this will solve itself when I use the open scene Graph exporter for 3DS do not worry much if it is too much work to descripe that...

Johannes

farshizzo 06-03-2005 03:27 PM

Hi,

Are you using the same computer when viewing on screen and through the HMD?

Johannes 06-03-2005 03:29 PM

Yes

farshizzo 06-03-2005 04:47 PM

Wow, that is really weird. So if you turn on stereo and just view it on screen the texture is black also?

Johannes 06-06-2005 06:19 AM

Hi,
no when I'm using stereo on the normal screen it is fine (golden and reflecting), only in the HMD it appears black.

So I guess it has to do with the quality of the HMD?!

Johannes

mspusch 06-06-2005 07:40 AM

hi,

A) HMD settings
the HMD (you use the Virtual Research V8 from what I know) needs 480 by 640 resolution and 60Hz.

B) GRAPHICS DRIVER
If this is the case, then I would suspect that output on one eye different than the other eye might have something to do with your graphics card / driver. please make sure you use the latest driver for your graphics hardware and (in case you use nVidia hardware) that you use horizontal span mode, NOT dualview.
See also

http://www.worldviz.com/support/hardware_faqs.html

for more details on this driver issue.

C) if nothing helps and one eye continues to look different from the other, run the HMD in mono mode (i.e. only provide input for the left eye) and see if one eye still shows funcky stuff. if yes, there is a problem with your HMD and you need to get in touch with Virtual research.

Please let us know if any of above helps.

betancourtb82 06-05-2006 03:34 PM

Text Entry
 
I'm trying to figure out a way to write a scenario where a word (scrambled) would be placed on screen and the user would have to type out the word (unscrambled). Is there anyway to have the user be able to type in some text in vizard?

Thanks

halley 06-06-2006 07:42 AM

betancourt, looks like you wanted to start a new thread with that question.

In brief, I would just have a global string variable hold the letters typed so far; whenever you get a keyboard event that's a letter, add it to the string, and whenever you get a keyboard event that's a backspace, remove the last character from the string. If you want to discuss this or other options, consider starting a new thread so it's not confused with this thread's topic.


All times are GMT -7. The time now is 10:55 PM.

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