WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-19-2007, 11:03 AM
zoltantoth zoltantoth is offline
Member
 
Join Date: Apr 2007
Posts: 5
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:



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:



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')
Reply With Quote
  #2  
Old 04-19-2007, 11:20 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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?
Reply With Quote
  #3  
Old 04-19-2007, 11:24 AM
zoltantoth zoltantoth is offline
Member
 
Join Date: Apr 2007
Posts: 5
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
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:06 PM.


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