-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change transformation application order in 'get_camera_matrix()' function #133
Comments
Finnally i solved that old resisting issue , it was pointed out by several users , anyways , my workaround was , first ; to define a new type :
then i added a new field of that type to
finnally i reimplemented
And :
Now the usage is :
|
At that level of control, I think you might be best off using the matrix functions to construct your own view matrix instead of using GPU_Camera. I'm still willing to build this in, but I'm not totally clear on the use-cases for all of that flexibility. |
Ensure rotation and scale happen after translation, and from the center of the camera. Fixes grimfang4#133 and grimfang4#124
This is
get_camera_matrix()
function ,i think the order of applying transformations is translation->rotation->scale , i want to re-implement the function so that the order is rotation,scale,translation or rotation,translation,scale or scale,translation,rotation , or scale,rotation,translation ... , it is not so obvious for me , but if i know how it is done , i will be able to fix an issue in sdl_gpu #26The text was updated successfully, but these errors were encountered: