WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   360 video rendering onto background (https://forum.worldviz.com/showthread.php?t=5708)

jessemin 05-03-2016 10:56 PM

360 video rendering onto background
 
Hi, I am trying to display 360 video (mp4 file) onto the background using Vizard. Any advice will be truly appreciated!
Thanks!

Jeff 05-05-2016 01:10 AM

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()


mikaelr 06-20-2016 03:29 PM

360 video not playing
 
Hi,

I tried to get a 360 video to play using the script provided, but all I see is a grey background. Are there some potential things I could take into consideration?

Thank you!

Jeff 06-21-2016 01:22 AM

You may not have global codecs for the video type you are playing. Some applications like Windows Media Player have built-in codecs while Vizard relies on global codecs.


All times are GMT -7. The time now is 03:09 PM.

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