Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Best way to get the orientation (matrix)?

Author
Message
hectic
3
Years of Service
User Offline
Joined: 19th Feb 2017
Location:
Posted: 26th Aug 2017 09:35
I am looking for a better way to find the orientation of an object or camera.

janbo
11
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 27th Aug 2017 22:39 Edited at: 27th Aug 2017 22:43
So you want the the rotation matrix for your object !?
Then you need to create the matrices for the three axis individually and multiply them.

We have a matrix library made by the comunity: Matrix library
Look also here: Article - World, View and Projection Transformation Matrices
hectic
3
Years of Service
User Offline
Joined: 19th Feb 2017
Location:
Posted: 28th Aug 2017 17:32
Excuse my bad explanation. I just want to take the matrix from an existing object. The calculations that come after that, I've already finished all.
janbo
11
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 29th Aug 2017 00:46
Still not sure what you need
What are you going to do if I may ask ?
Why do you need matrices and can't use getobjectanglex() for example ?

There are no matrix commands in AppGameKit at all.
And you already have a nifty solution, so I guess there is no better way !?
hectic
3
Years of Service
User Offline
Joined: 19th Feb 2017
Location:
Posted: 29th Aug 2017 08:20
I am writing a free graphics-library. This one can draw with simple 2D commands (DrawText, DrawImage, DrawLine etc. and draw a GUI-Interface) in the 3D world.

https://youtu.be/cORfUmSQ568
https://youtu.be/UHFFLtpetUs
https://youtu.be/bji-Xdi8Mk8
janbo
11
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 29th Aug 2017 09:01 Edited at: 29th Aug 2017 09:09
Looks nice and Interesting.
Are you drawing the stuff into a rendertarget and then on a plane or are you using the memblock commands to create the 3D effect ? ooor into an image and a custom "sprite" shader ?
Anyhow Keep up the good work
hectic
3
Years of Service
User Offline
Joined: 19th Feb 2017
Location:
Posted: 29th Aug 2017 09:36
Everything is drawing by MemBlock and send it at the end with SetObjectMeshFromMemblock to the GPU.

Login to post a reply

Server time is: 2020-03-28 15:52:35
Your offset time is: 2020-03-28 15:52:35