WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-02-2008, 04:46 PM
GoldenSun GoldenSun is offline
Member
 
Join Date: Feb 2008
Posts: 8
building a maze

Hi,

I'm building a maze. I'm using an existing wall 3d modal and duplicated it for each walls. These walls are put together into a specific maze design by using translate, rotate and scaling. As I try to add more ojects and animation/interactions into the maze the program crashes.

Does anyone know why? are there limits on the object file sizes placed in the virtual world? Also, is there a better way to build the maze within Vizard that's more efficient and accurate?

Thanks for the help.
Reply With Quote
  #2  
Old 06-02-2008, 08:14 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
How man objects are we talking about here? Vizard does not limit the number of objects you can add. You are only limited by the amount of memory your computer has. Unless you are adding thousands of objects with lots of polygons/textures I don't think memory will be an issue. Can you post a sample script that causes the crash?

Also, do you load the wall object from file each time, or do you load it once and clone it? Cloning objects is the most efficient way to deal with multiples of the same object.
Reply With Quote
  #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
  #4  
Old 06-04-2008, 10:27 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Yes, we've experienced this crash quite often. If you tell Intersense to automatically detect a device, sometimes they connect to the wrong device and it causes a crash. The solution is to specify the intersense port by using the PORT_INTERSENSE variable. See the documentation for more details.

I don't understand what you mean by setting the pieces in accurate position. The pieces will be placed where you tell them to be placed with the translate command.
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 08:21 AM.


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