View Single Post
  #3  
Old 04-20-2014, 10:53 PM
Majestic12 Majestic12 is offline
Member
 
Join Date: Apr 2014
Posts: 10
Hello Farshizzo,

Thank you for the example.

Regarding loading a map onto a texture, is that only possible with TexQuads? I tried to do it with a quad I made in a Layer(QUADS) and could not wrap my texture onto it (it became white), but it worked fine with TexQuad.

Here is what I tried:

Code:
viz.startLayer(viz.QUADS) 
viz.vertex(0,0,0) 
viz.vertex(2048,0,0)
viz.vertex(2048,0,2048)
viz.vertex(0,0,2048)
mapQuad = viz.endLayer()

texture = viz.addTexture('1.png')
mapQuad.texture = texture
You see the coordinates I have are not specified in the Vizard coordinate system(0-1) but in the resolution of the actual image. For example, the map is 2048x2048 and one of the points is 1620,1. I wanted to try making a quad with that size, putting it in the 0-2048 Vizard coordinate system, wrapping the map texture onto it and then simply displaying points and lines on the map.

Do you know if that is possible? Are TexQuads customizable in that manner?

Thank you,
M12
Reply With Quote