WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-05-2013, 10:17 AM
mshukun mshukun is offline
Member
 
Join Date: Jan 2013
Posts: 32
Cube Map Coordinates

Might anyone know what coordinate system is applied in the cube map? The code below was kindly provided to me using this forum, but I need to know the actual coordinate system used in the cube map in order to perform further downstream processes. For instance, if a spherical coordinate system is used in the cube map, how can I find radius of the sphere? On the other hand, if a cube coordinate system is used, how can I ascertain the height, width and depth of the cube map? (Thanks in advance for any assistance you can provide in this regard, which is greatly appreciated.)

Code:
import viz
import vizmat
import vizshape

viz.go()

env = viz.addEnvironmentMap('Farm2A.jpg')
sky = viz.addCustomNode('skydome.dlc')
sky.texture(env)

viz.link( viz.Mouse , viz.addTexQuad(viz.SCREEN,texture=viz.add('crosshair.png')) )
viz.mouse.setVisible(viz.OFF)

def placeMarker():
line = viz.MainWindow.screenToWorld(viz.mouse.getPosition())
pos = vizmat.MoveAlongVector(line.begin,line.dir,40)
shape = vizshape.addCircle()
shape.color(viz.GREEN)
shape.billboard()
shape.setPosition(pos)
print shape.getPosition()
#place a marker when the left mouse is pressed
vizact.onmousedown(viz.MOUSEBUTTON_RIGHT,placeMarker)

import vizcam
vizcam.PanoramaNavigate()
Image: Spherical coordinate vs Cube coordinate
http://screencast.com/t/hSkab1MNKk
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -7. The time now is 06:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC