#1
|
|||
|
|||
Cannot properly load dae file with Rendering
I am trying to load a .dae file which I created in Blender into Vizard. I am having trouble loading the file and placing the avatar inside the maze. I would like the position of the view to be at the end of the maze, which should be at the coordinates I am using. However, my viewpoint seems to get stuck below the maze and I am able to move through/under parts of the walls but others not. Why is this happening?
The maze also has rendered walls and floors, but when I load it into vizard everything is white - how can I get this to work? Are there any tutorials that cover these points that I am missing? Somehow I could not find relevant information in them... I have attached my maze file inside a .zip and below is the code I am trying to use: import viz viz.setMultiSample(4) viz.fov(60) viz.go() viz.add('VizardExperiments/mazes/RoomMaze2.dae', viz.WORLD, viz.VizScene(0)) viz.MainView.setPosition([-15, 0, 1]) viz.MainView.collision( viz.ON ) |
#2
|
|||
|
|||
Try the following code to place the user in the maze and lower the eyeheight so they are not above the height of the walls:
Code:
import viz viz.setMultiSample(4) viz.fov(60) viz.go() ground = viz.add('ground.osgb') maze = viz.add('RoomMaze2.dae') maze.zoffset() viz.MainView.collision( viz.ON ) viz.MainView.setPosition([-13,0.5,0.5]) viz.MainView.setEuler([90,0,0]) viz.eyeheight(0.5) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
load jpg/bmp image file into wirtual world | johnallen | Vizard | 1 | 12-16-2014 04:57 PM |
ERROR: Failed to load .ive file | turgutm | Vizard | 1 | 09-16-2010 05:16 AM |
Failed to load wav file | BrynJ | Vizard | 1 | 04-24-2008 09:35 AM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |
File Path 4 Object Load | softscan2 | Vizard | 1 | 09-23-2005 08:59 AM |