View Single Post
  #9  
Old 04-30-2013, 10:33 PM
cgsong58 cgsong58 is offline
Member
 
Join Date: Apr 2013
Posts: 7
Fail to load 'art/balloon.ive' files.

Quote:
Originally Posted by Jeff View Post
Although the model has a .ivex extension, load the model without the x in the script:
Code:
balloon = viz.add( 'art/balloon.ive' )
Jeff,

I have run two WorldViz 4.0 (32bit version) on two PC with the same Windows 7. I have tested the same demo programs in page 19 in Vizard Teacher in a Book with two PCs.
But one of PC failed to load 'art/balloon.ivx' file but the other has no problem in loading files. Please let me know why this happen.

The code is as follows:

import viz
viz.go()

#Add an empty array for the balloons.
balloons = []

#Use a loop to add 3 balloons to the world.
for i in [-1,0,1]:
#Add a model.
balloon = viz.add( 'art/balloon.IVE' )
#Set the position of the balloon.
balloon.setPosition( i, 1.8, 3 )
#Append the balloon to our array.
balloons.append( balloon )

#Change each balloon's color.
balloons[ 0 ].color( viz.GREEN )
balloons[ 1 ].color( viz.RED )
balloons[ 2 ].color( viz.BLUE )

... I have cut at this point

I have the following error messages:

************************************************** ****************************
** Loading p18.py
************************************************** ****************************
Loading File: art/balloon.IVE
** ERROR: Failed to load model: 'art/balloon.IVE'
Loading File: art/balloon.IVE
** ERROR: Failed to load model: 'art/balloon.IVE'
Loading File: art/balloon.IVE
** ERROR: Failed to load model: 'art/balloon.IVE'
** Load Time: 0.21 seconds
Reply With Quote