|
#1
|
|||
|
|||
lat long mapped video
We have a couple of point grey ladybug cameras that record spherical video.
The video they take is normally saved as a lat-long/cylindrical panoramic mapped video. We want to use this in an augmented reality setup: is there a good way to use this video as a panorama "skybox" in vizard, instead of the cube-map method? |
#2
|
|||
|
|||
(Prior to the post, I had textured a large sphere with the video, and it worked fine; it would be better, though, if the "sphere" were at an infinite distance)
|
#3
|
|||
|
|||
I downloaded a sample video from the Point Grey Ladybug website and used the following script to view the video:
Code:
import viz import math viz.go() #Add panorama video video = viz.add('video.avi',play=1,loop=1) #Radius depends on aspect ratio of video w,h,_ = video.getSize() HEIGHT = 5.0 RADIUS = (w * HEIGHT) / (float(h) * 2.0 * math.pi) #Add panorama cylinder panorama = viz.add('pano_cylinder.ive',scale=(RADIUS,HEIGHT,RADIUS)) panorama.texture(video) #Make sure panorama appears at infinite distance panorama.disable(viz.DEPTH_TEST) panorama.drawOrder(-100) #Keep panorama centered around main view viz.link(viz.MainView,panorama,mask=viz.LINK_POS) #Setup a panorama camera navigation import vizcam vizcam.PanoramaNavigate() |
#4
|
|||
|
|||
Thanks: that worked great!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Video Texturing | cheezus69 | Vizard | 2 | 04-14-2008 04:26 AM |
Video Texture Not Working on Some Objects | paulgoldberg | Vizard | 1 | 04-17-2006 01:41 PM |
How to synchronize play/pause of 2 video streams in stereo | Gilliard | Vizard | 1 | 09-01-2005 09:58 AM |
video | jebber | Vizard | 1 | 09-28-2004 06:20 PM |
Video Card Review | bstankie | Vizard | 4 | 04-09-2003 12:01 AM |