WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Cannot properly load dae file with Rendering (https://forum.worldviz.com/showthread.php?t=5876)

Dustin 10-27-2016 06:49 AM

Cannot properly load dae file with Rendering
 
1 Attachment(s)
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 )

Jeff 10-28-2016 01:39 PM

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)

Are there textures for the walls and floor or did you change the material some other way? I'm not sure what material changes in blender carry over to the collada file. You might try loading the model in another viewer that supports collada and see if it also happens there.


All times are GMT -7. The time now is 12:41 AM.

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