WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-09-2013, 10:08 AM
mshukun mshukun is offline
Member
 
Join Date: Jan 2013
Posts: 32
Texture Coordinates in a Cube Map

I am trying to ascertain texture coordinates for each created vertex in a cube map (i.e. a 360 degree panorama). I have tested "getTexCoord" in the cube map, resulting in all vertices' texture coordinates to be [0.0, 0.0, 0.0]. I thought texture coordinates of the vertex [0,0,0] to be [0.5,0.5, ?] (I don't know 'r' in this case). Is the "getTexCoor" function not meant for cube maps as well? If so, is there way to get texture coordinates or array index number for each vertex of cube face?

I truly appreciate any help that you might be able to provide. Thanks so much in advance.

Code:
import viz

viz.go()

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

viz.startLayer(viz.POINTS)
viz.vertexColor(viz.GREEN)
viz.pointSize(15)

viz.vertex(0,0,0)
viz.vertex(-4.2, -16.5, 98.2)
viz.vertex(-13.8, 3.6, 99.0)
points = viz.endLayer()

print points.getTexCoord(0)
print points.getTexCoord(1)
print points.getTexCoord(2)

import vizcam
vizcam.PanoramaNavigate()
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
360 panorama image cube using as darts target and record the xy coordinates mshukun Vizard 2 03-14-2013 06:17 AM
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
Haptic touch texture coordinates yth Vizard 0 06-02-2012 03:40 AM
Avatar texture swaping sleiN13 Vizard 5 06-24-2011 12:48 AM
How to apply shader and render texture to an object whj Vizard 0 04-23-2010 12:23 PM


All times are GMT -7. The time now is 12:09 PM.


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