I have a 3D model which has position, uv, normal, indices info. I need to place it in a scene and render it in a renderer which expects camera, light, geomtery and all their transformation. I have some how displayed a model successfully by hardcoding the camera, light properties with the geometry info I already have. I figured out the transformations for the camera and light necessary to fit the model in the view and lit it properly by trial and error method. But that is cumbersome and specific to this particular geometry. I need to hard code some transformation for camera ,light and 3D geometries to get a satifactory view. Is there any 3D software from where I can get the transformation matrices of the light, camera and geometries to use those values in my program?
Share
Thanks for the ideas! I atlast found that simple utiltiy I was looking for @ : http://www.songho.ca/opengl/gl_transform.html
http://www.songho.ca/opengl/files/matrixModelView.zip
http://www.songho.ca/opengl/files/matrixProjection.zip