Hi,
while developing a user interface with sliders and labels I encountered the following problem:
1. Sometimes Slider and labels are not that good visible if the background of the scene is about the same color.
So I tried to play with draworder and a Texquad (as a background image for the user-interface) which worked for the labels but not for the sliders
Code:
labelGraph = viz.add(viz.TEXT3D,'velocity vs. time',viz.SCREEN)
labelGraph.font('times.ttf')
labelGraph.scale(0.4,0.4)
labelGraph.translate(0,0.9)
labelGraph.visible(viz.ON)
labelGraph.draworder(100)
labelGraph.disable(viz.DEPTH_TEST)
tex1 = viz.add('../resources/joNew/grainy.jpg')
tex2 = viz.add('image2.jpg')
quad = viz.add(viz.TEXQUAD,viz.SCREEN)
quad.translate(0.1,0.9)
quad.scale(5,18)
#label.alignment(viz.TEXT_CENTER_CENTER)
#label.translate(0.5,0.5)
quad.texture(tex1)
quad.draworder(0)
quad.disable(viz.DEPTH_TEST)
quad.visible(viz.ON)
Any ideas?
2. Is it possible to program menu-bars and stuff like that inside vizard?
I guess you told me in an earlier post that it is not possible to use textboxes etc..
Johannes