hi,
how can i get the view matrix of the standard camera? base.cam.node().getLens().getViewMat() always returns the identity matrix…
thanks
hi,
how can i get the view matrix of the standard camera? base.cam.node().getLens().getViewMat() always returns the identity matrix…
thanks
From the API docs:
And:
So maybe you are looking for getProjectionMat(). But if you want the entire view matrix, you also need to compose this with base.cam.getNetTransform().getMat().
David