![]() |
|
#1
|
|||
|
|||
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) |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Texture Coordinate Generation (TexGen) using Shader | goro | Vizard | 1 | 05-31-2013 01:44 AM |
How to render a texture of the transparent object and then blur it | whj | Vizard | 1 | 09-25-2012 03:15 PM |
Avatar texture swaping | sleiN13 | Vizard | 5 | 06-24-2011 12:48 AM |
How to apply shader and render texture to an object | whj | Vizard | 0 | 04-23-2010 12:23 PM |
Randomly and Continuously Change Avatar's Face Texture | Karla | Vizard | 4 | 08-22-2008 12:14 PM |