![]() |
|
#1
|
|||
|
|||
we tried doing something like this to set the scale, but that just multiplied it by the size of the image, not the size of the screen. The position does seen to be a function of the screen size, however:
Code:
mapPos = [0.1,0.1,0] mapScale = [8,8,8] map = viz.addTexQuad(viz.SCREEN, align = viz.TEXT_LEFT_TOP, pos=mapPos, scale =mapScale) |
#2
|
|||
|
|||
The following code will scale the quad to 20% of the window size:
Code:
p = 0.2 quad.setScale([12.8*p,10.24*p,1]) |
#3
|
|||
|
|||
that worked great. one more question about texQuad stuff...if we want to have two texQuads layered, how can we get one of them to appear on top of the other one?
|
#4
|
|||
|
|||
Just add a second quad, and it will appear over the existing one. You can use the node.drawOrder() command to manually control the order in which the quads are rendered.
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
View an image on the Fakespace HMD | roman_suvorov | Vizard | 16 | 05-23-2008 07:51 AM |
position of html-file on screen | active_world | Vizard | 1 | 05-16-2008 07:24 PM |
GUI Image? | codexter | Vizard | 2 | 04-19-2007 01:45 PM |
Only part of tiled image | vizmaster | Vizard | 5 | 09-11-2006 12:11 PM |
accessing screen buffer | hotspur1 | Vizard | 3 | 08-22-2003 03:31 PM |