View Single Post
  #7  
Old 06-04-2015, 07:24 AM
gerardo697 gerardo697 is offline
Member
 
Join Date: May 2015
Posts: 10
I was able to get the Bird view to change based on the z-value.

UpperRightWindow = viz.addWindow(pos = (0.8,1.0), size = (0.2,0.25))
UpperRightWindow.visible(0, viz.SCREEN)
BirdView = viz.addView()

UpperRightWindow.setView(BirdView)

def UpdateBirdView():
x,z,y = viz.MainView.getPosition()
if (z >= 0 and z < ceiling):
BirdView.setPosition([x,ceiling,y])
elif ( z >= ceiling and z < ceiling2):
BirdView.setPosition([x,ceiling2,y])
else:
BirdView.setPosition([x,ceiling3,y])
BirdView.setEuler([0,90,0])
UpperRightWindow.fov(120)
vizact.ontimer(0,UpdateBirdView)

The problem I have encountered is that I only see a small part of the building since the x and y values correspond to the center of the building. What can I do in order to show the entire floor of the building?
Reply With Quote