View Single Post
  #4  
Old 03-11-2016, 12:35 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can use texture quads placed in the world and update their positions when selections are made. Use viz.pick to help with selections. To fix the quads to the view, set their reference frame to viz.RF_VIEW:

Code:
import viz
viz.go()

viz.addChild('dojo.osgb')

positions = [0.3,0,1],[0,0,1.5],[-0.4,0,2]
lake = viz.addTexture('image2.jpg')

for position in positions:
	quad = viz.addTexQuad(pos=position,scale=[0.3]*3)
	quad.texture(lake)
	quad.setReferenceFrame(viz.RF_VIEW)
	quad.disable(viz.DEPTH_TEST)

Last edited by Jeff; 03-11-2016 at 12:42 AM.
Reply With Quote