Thread: building a maze
View Single Post
  #3  
Old 06-04-2008, 10:05 AM
GoldenSun GoldenSun is offline
Member
 
Join Date: Feb 2008
Posts: 8
Thanks for the suggestion.

I used the clones for all 30 wall pieces as you suggested and I believe it helped alot. I also try to add about 15 more small 3d objects and/or images inside. I found out that when I select the tracking option from the prompt to use the intersense it sometimes crashes before everything starts. Has anyone else experienced it?

the follwing is sample code for a wall and a pic. What is the best way to set each wall pieces in accurate position with one another?

wall = viz.add('box.WRL')
wall.translate(-2.000, 1.500, +0.450)
wall.setScale(4.600, 3.000, 0.100)
wall.texture( walltexture )
-------------------------
pic1 = viz.add(viz.TEXQUAD)
pic1.translate(-0.1, 0, 2.2)
pic1.setEuler(90, 0.0, 0.0)
pic1.scale(0.3, 0.5, 0.4)
pictexture = viz.addTexture( 'logo_fl.jpg' )
pic1.texture(pictexture)
Reply With Quote