WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
3d models in vizard 5 pralka Vizard 3 06-22-2015 03:52 PM
Light Baking in 3DS Max causing models to render with seams and transparent faces dproeder Vizard 1 09-17-2013 06:45 PM
Higher Quality Models apanza Vizard 1 01-23-2012 11:21 AM
visibility of a menu clowenth Vizard 1 08-05-2010 06:36 PM
Loading OSG models and orientation Joran Vizard 4 06-18-2009 05:43 AM


All times are GMT -7. The time now is 01:59 AM.


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