Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Good practice to use projection and transform matrices.

Still a little green? Ask your beginner's questions here

Good practice to use projection and transform matrices.

Postby barakooda » Sun Mar 17, 2019 1:02 pm

Hi,
I need to do camProjInverse on some data.
there are 2 python methods i can use to retrieve the matrices i want from given camera.
https://docs.derivative.ca/CameraCOMP_Class

projectionInverse(x, y)
worldTransform()

(I better do efficient as possible ,it will be different every frame. )

There is any good practice to convert it to chop from the python object ?
Later on i want to use the matrices in GLSL top in other network.

thank you !

Barak.
User avatar
barakooda
 
Posts: 635
Joined: Fri Nov 27, 2009 5:08 pm

Re: Good practice to use projection and transform matrices.

Postby barakooda » Sun Mar 17, 2019 5:12 pm

this help a bit.
https://docs.derivative.ca/Matrix_Class

possible code :
Code: Select all
cam = op('cam1')
table = op('table1')

table.clear()
table.appendCols(cam.projection(1,1).vals)


if there is faster way please share :-)
User avatar
barakooda
 
Posts: 635
Joined: Fri Nov 27, 2009 5:08 pm


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 18 guests