Keep texture in foreground using addTexquad command
1 Attachment(s)
Dear all,
As shown in my attached jpeg file I want texture map to come in front of infoBox (i.e. in the foreground) but it is coming in the background. How do i can solve it? I am attaching my source code for the same. Please help in it. Source Code: apple_i= viz.add( 'D:\PhD\Study-I_Part_I\Textures\Apple.jpg') mapPos = [0.5,0.4,1.5] mapScale = [1.5,1.5,1.5] apple_i= viz.add( 'D:\PhD\Study-I_Part_I\Textures\Apple.jpg') map = viz.addTexQuad(viz.SCREEN, align = viz.TEXT_LEFT_CENTER, pos=mapPos, scale =mapScale) map.texture(apple_i) infoBox = vizinfo.InfoPanel('What object i am interested in?',fontSize=12,window=viz.MainWindow,margin= (15.0,15.0),icon=False,align=viz.ALIGN_CENTER) infoBox.setTitle( 'Question 1' ) Ball= infoBox.addLabelItem('', viz.addRadioButton('color')) infoBox.addSeparator(padding=(100,100)) Apple = infoBox.addLabelItem('', viz.addRadioButton('color')) submitButton=infoBox.addItem(viz.addButtonLabel('S ubmit'),align=viz.ALIGN_CENTER) yield viztask.waitButtonUp(submitButton) |
To force the texture quad over the info panel, set the quad's draw order to a higher number. Here's an example:
Code:
''' |
Thanks a lot Jeff! It is working
|
All times are GMT -7. The time now is 06:54 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC