Game Development Community

TS object vertex and texture vertices..

by JS Yow · in Torque Game Engine · 03/13/2003 (11:35 pm) · 3 replies

Hi, can someone let me know where I can find a static object's vertex and texture vertices in the codes? Are they saved in tsmesh::vert[] and tsmesh::tvert[]?

Thanks,
JS

#1
03/24/2003 (11:07 am)
I don't know for a fact, but it's probably stored in a pointer, not an array. And usually the texture coords are saved along with the vertex in some sort of structure. Look at the rendering code and look for a call to glDrawElements or glArrayElement. One of the args will be a list of indicies for the vertices. So find what that variable matches up to.
#2
03/24/2003 (11:12 pm)
I have been able to retrieve the vertex and texture vertices coordinates after some study on the codes by myself.

Thanks anyway.
#3
10/24/2010 (8:42 pm)
Can you provide any code that does what you need to do? It helps me and others to reach the point you wanted to reach before finding the answer :)