WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 12-18-2008, 04:54 PM
Brett Lindberg Brett Lindberg is offline
Member
 
Join Date: Jul 2008
Posts: 18
Question 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?
Reply With Quote
  #2  
Old 12-19-2008, 09:21 AM
Brett Lindberg Brett Lindberg is offline
Member
 
Join Date: Jul 2008
Posts: 18
(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)
Reply With Quote
  #3  
Old 12-19-2008, 11:08 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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()
I've attached pano_cylinder.ive file to this post. It is simply a cylinder that faces inward. Let me know if this works for you.
Attached Files
File Type: zip pano_cylinder.zip (944 Bytes, 2258 views)
Reply With Quote
  #4  
Old 02-25-2009, 08:41 PM
Brett Lindberg Brett Lindberg is offline
Member
 
Join Date: Jul 2008
Posts: 18
Thanks: that worked great!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 05:42 PM.


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