Hi all,
I load, rotate, and translate a bunch of objects in my onSurfaceChanged() method (will change this to onSurfaceCreated()) and I'm trying to understand the effect that translations made in one place have on subsequent calls to translate().
For example, in the following code, will object2's initial position be impacted by the translation of object1?
(note the loadOBJModel method is a custom one I wrote as a shortcut to the model/texture loading process)
object1 = new Object3D(loadOBJModel(MODEL_1, TEXTURE_NAME_1));
object1.translate(-5.0f,0.0f,-5.0f);
object2 = new Object3D(loadOBJModel(MODEL_2, TEXTURE_NAME_2));
object2.translate(5.0f,.0f,5.0f);
Furthermore, when I am using rotations and translations, is there an order I should be doing these?
This feels like graphics programming 101. I've written Open GL / GLU / GLUT code in C++ before and not been so confused because I could use GL_START and GL_END tags to start and stop each transformation (I think that's what they were called).
IF the answer to the above questions are yes, translate() is impacted by the previously translated position... What is an easy way to translate an Object3D to a particular point in world space?