Game Development Community

TSMesh render size

by Luis Anton · in Torque Game Engine · 12/01/2004 (2:20 pm) · 0 replies

Hi!

how could I know, in TSMesh::render, the current size of the mesh being rendered? I would like to know something like "it's size was originally S and now it's 20m away, so it's s" I would be happy knowing just 's' (the 'rendered mesh size')

I've tried reading from TSShapeInstance::smRenderData.currentTransform, but its values do not seem to change (debug mode) when I move an object back and forward in the show tool...

I'm trying to dig a little bit deeper in the Torque rendering code, so it's just curiosity. If I wanted to render the mesh in a differnt way depending on its distance or size, the code should be there, right? I guess it's not so difficult, and I'm just missing something :)