View Single Post
  #2  
Old 05-05-2016, 01:10 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can apply the video to a sphere with normals pointing inwards. Here's an example:

Code:
import viz
import vizshape
viz.go()

video = viz.addVideo('sphericalVideo.mp4')
sphere = vizshape.addSphere(flipFaces=True)
sphere.texture(video)
 
#Play and loop the video
video.play() 
video.loop() 

#Make sure sphere appears at infinite distance
#This allows other objects to be rendered in front
sphere.disable(viz.DEPTH_TEST)
sphere.drawOrder(-100)

#Keep sphere centered around main view
viz.link(viz.MainView,sphere,mask=viz.LINK_POS)

#Setup a panorama camera navigation
import vizcam
vizcam.PanoramaNavigate()
Reply With Quote