WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-27-2016, 06:49 AM
Dustin Dustin is offline
Member
 
Join Date: Oct 2016
Posts: 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 )
Attached Files
File Type: zip roomMaze2.zip (6.4 KB, 874 views)
Reply With Quote
  #2  
Old 10-28-2016, 01:39 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
Reply


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

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


All times are GMT -7. The time now is 12:07 PM.


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