WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Strange Speak animation and VRML rendering (https://forum.worldviz.com/showthread.php?t=1052)

zoltantoth 04-19-2007 10:03 AM

Strange Speak animation and VRML rendering
 
Hello,

I have been working with the Vizard 3 RC1 in the last couple of days and I run into some problems I can't solve.

1. If I try to get the agent to speak, her lips are displaying a strange animation, like this:

http://www.webstat.hu/xmagus/speak.gif

2. When I import the following VRML file, which is rotating a picture, one quarter of the picture gets brighter, and if I resize it in the wrl file, I can only see this bright part at all:

http://www.webstat.hu/xmagus/frac.gif

I tried it with Viard v2, but it does the same. I am working on a MacBook, which uses Intel GMA 950 graphics processor. Other OpenGL applications are working out fine.

Could you help me to solve this problem?

Best regards,
Zoltan Toth
Vrije Universiteit, Amsterdam

The VRML file:
Code:

#VRML V2.0 utf8

DEF forog Transform {
        translation 5 0 -20
        rotation 0 0 1 0
        children [
                Shape {
                        appearance Appearance {
                                texture ImageTexture { url "f2.jpg"}
                        }
                       
                        geometry Box {
                                size 40 40 1
                        }
                }
        ]
}

DEF forgato OrientationInterpolator {key [0 0.25 0.5 0.75]
                                    keyValue [
                                                  0 0 1 0,
                                              0 0 1 1.57,
                                              0 0 1 3.14,
                                              0 0 1 4.71
                                              ]
                                    }

DEF idozito TimeSensor {cycleInterval 10
                        loop TRUE
                      }

ROUTE idozito.fraction_changed TO forgato.set_fraction
ROUTE forgato.value_changed TO forog.set_rotation

Where f2.gif is a ~2000px x 2000px picture

And my script is:
Code:

import viz

def mykey(key):
        speak = vizact.speak('c:\\Temp\\talk.wav',1.0,'mouth_open')
        av.add(speak)
               
viz.callback(viz.KEYBOARD_EVENT,mykey)

viz.go()
viz.clearcolor(0,0,0);

#for the second picture:
frac1 = viz.add("rotfractal1.wrl");
#

av = viz.add('female.cfg', pos=(0,0.15,7), euler=(180,0,0) )
av.face('biohead_talk.vzf')


farshizzo 04-19-2007 10:20 AM

Hi,

1) This looks like a scaling issue. When generating the speech action, scale down the morphing by using a smaller number as the second parameter:
Code:

speak = vizact.speak('c:\\Temp\\talk.wav',0.001,'mouth_open')
2) I tried the VRML file with my own texture and it worked fine. Could the brightness you see be part of the texture you are using?

zoltantoth 04-19-2007 10:24 AM

Scaling
 
Thank you, the speak works perfect now. I will check out the second problem again, and if it won't work out, I will try to provide you a very concrete example. The brightness of the texture is okay, and if I scale it with ~2.5 it works fine.

Thank you again
Zoltan Toth


All times are GMT -7. The time now is 02:24 AM.

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