2d Map with Lines between points, help!
Hello everybody!
I'm a beginner in Vizard and I'm currently trying to create a visualization using a map. Basically what I have is a 2d map and a set of points(from the map) I want to draw lines inbetween. The issue is that my points that I use for the lines are based on the texture coordinates of the map itself so that when I try to create vertices using these points they show up at the typical X, Y, Z coordinate system of Vizard instead of "on" the map. My vision for this is to have the map and then see the lines in front of the map. Currently I have the map and then the lines elsewhere in the world. Does anybody have any pointers / solutions for this? How would I solve this matter the best way? Is it possible? M12 |
You can use on-the-fly objects to create the points and lines then add them to a texture quad that is displaying the map. Here is an example:
Code:
import viz |
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) Do you know if that is possible? Are TexQuads customizable in that manner? Thank you, M12 |
Hello again,
I've tried the following too: Code:
viz.startLayer(viz.QUADS) |
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 |
All times are GMT -7. The time now is 09:20 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC