![]() |
|
#1
|
|||
|
|||
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 Do you know if that is possible? Are TexQuads customizable in that manner? Thank you, M12 |
#2
|
|||
|
|||
Hello again,
I've tried the following too: 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() mapQuad.zoffset(1,1) mapQuad.texture(viz.add('1.png')) |
#3
|
|||
|
|||
Hey again,
Sorry for so many replies in a row. I realized that I had forgotten my texcoords in front of my vertices, I fixed it and now I can see the map image. Thanks! M12 |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create an arc between two points | hotshotiguana | Vizard | 5 | 03-22-2012 11:07 AM |
black lines with render to texture | Darkmax | Vizard | 5 | 03-07-2011 11:23 AM |
Why I need two points for viz.startlayer(viz.POINTS) | jincheker | Vizard | 1 | 01-28-2011 08:46 AM |
Draw Line between Points | Chrissy2009 | Vizard | 2 | 05-13-2009 04:42 AM |
Track Eye Gaze with Lines | enkeli | Vizard | 1 | 05-02-2006 02:06 PM |