![]() |
|
#1
|
|||
|
|||
Perhaps you can add a cube that is sized to match where the marks are placed. Then you can get which face of the cube and position of the cube using viz.pick. You could then perform some calculations to normalize the pick location to match texture coordinates. In the following example the cube is not visible because the viewpoint is inside it and back faces are not rendered by default:
Code:
import viz import vizshape import vizact viz.go() env = viz.addEnvironmentMap('sky.jpg') sky = viz.addCustomNode('skydome.dlc') sky.texture(env) vizshape.addGrid() cube = vizshape.addCube(size=80,splitFaces=True) def getPickInfo(): info = viz.pick(info=True) print 'name',info.name print 'point',info.point vizact.onmousedown(viz.MOUSEBUTTON_LEFT,getPickInfo) |
#2
|
|||
|
|||
Thank you for your help! I have tested provided code and was able to generate place markers on flat cube images!! I was trying to figure out how to do it for a month so it was a huge help!!
Thank you so much!! |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Texture Coordinates in a Cube Map | mshukun | Vizard | 2 | 05-10-2013 12:31 PM |
360 panorama image cube using as darts target and record the xy coordinates | mshukun | Vizard | 2 | 03-14-2013 06:17 AM |
How do coordinates in IS900 thransform into coordinates in vizard's world | jacky | Vizard | 1 | 08-11-2011 10:44 AM |
viz.vertex coordinates | lilio | Vizard | 6 | 05-16-2009 04:36 PM |
Inertia Cube | bstankie | Vizard | 1 | 03-24-2003 11:00 AM |