View Single Post
  #4  
Old 05-09-2013, 09:10 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to create your own model with the proper UV coordinates.

The sample image you provided looks like it can be applied to a standard cylinder. Try the following code:
Code:
import viz
import vizshape

viz.go()
viz.fov(60)

panorama = viz.add('panorama.jpg')
cyl = vizshape.addCylinder(radius=100,height=200,slices=100,flipFaces=True,top=False,bottom=False)
cyl.texture(panorama)
viz.link(viz.MainView,cyl,mask=viz.LINK_POS)
Reply With Quote