View Single Post
  #5  
Old 08-23-2016, 06:06 PM
rich0550 rich0550 is offline
Member
 
Join Date: Aug 2016
Posts: 6
Thanks Jeff,

I got that much going. The scene I am working on is here. The scene is a house with a pool that has a mechanical top that goes up and down.

https://vimeo.com/130244140


We want to use WorldViz to show interactively how it works. Push a button see it cycle through the up and down positions. Also would be great to be able to walk on it, and be lowered by it. And be able to turn off the scene and watch the inner workings of the pistons and such.

I imported the OSGB of the pool (animated) and an OSGB of the house. The VR camera position looks wrong. The scale is wrong. Also I need to add the lighting back and most textures are not there. Can you advise me on getting some of the basics of this script going. Like having the scale correct and the VR cam able to move around starting in the correct point.

The max scene is in centimeters do i need to export osgb to centimeters or just set conversion to none?

how about getting the VR in the correct position in the scene or able to move about the scene. going down in the pool area and walking on the deck?

The lighting and textures I think I can follow the tutorial for that.

how about stopping the animated OSGB of the pool. or starting it how is that done? Sorry allot of questions this is about what I need to get this going.

I was able to get a good visconnect script (using vizconnect) to drop it in the file that was configured for the vive including hands. thanks. I backed off for now on that , and put back in this basic connections to the headset for starters.

Script below.

import viz
import vizfx
import vizconnect

import steamvr
hmd = steamvr.HMD()
viz.link(hmd.getSensor(), viz.MainView)

viz.setMultiSample(4)
viz.fov(60)
viz.go()

#Add environment model
day = viz.addChild('sky_day.osgb')

#Add Pool
pool = viz.addChild('Pool-none.OSGB')
pool.setScale([0,0,0])
pool.setPosition([0,0,0])

#Add house
house = viz.addChild('house.osgb')
house.setScale([0,0,0])
house.setPosition([0,0,0])

Last edited by rich0550; 08-23-2016 at 06:10 PM.
Reply With Quote