View Single Post
  #2  
Old 11-17-2017, 04:41 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,467
To force the texture quad over the info panel, set the quad's draw order to a higher number. Here's an example:

Code:
'''
Press 1 to set quad above
Press 2 to set quad below
'''

import viz
import vizinfo
import vizact

viz.go()

quad = viz.addTexQuad(parent=viz.ORTHO, scale=[100]*3)
quad.texture(viz.addTexture('lake3.jpg'))
quad.alignment(viz.ALIGN_CENTER_CENTER) 
viz.link(viz.CenterCenter, quad) 

info = vizinfo.InfoPanel(title='This is a vizinfo panel', align=viz.ALIGN_CENTER_CENTER,icon=False)

def setQuadAbove():
	quad.drawOrder(10)
	
def setQuadBelow():
	quad.drawOrder(-10)
	
vizact.onkeydown('1',setQuadAbove)
vizact.onkeydown('2',setQuadBelow)
Reply With Quote