Retrieve Model Matrix and scale along a particular Matrix

Started by tsaha, December 02, 2017, 12:20:58 AM

Previous topic - Next topic

tsaha

Hello Everyone,

I working on AR (ARToolkit) android application as a part of my coursework. I am using JPCT-AE to render 3D objects. Now my world objects has multiple 3D objects. I intend to scale a cylinder along Y axis only to represent some parameter value. I went through the official documentation and could find anything useful. Can anyone direct me towards the right way. Thanks in advance. Appreciate your help.

EgonOlsen

Out of the box, jPCT doesn't support non-uniform scaling, because of...reasons. However, you can retrieve the rotation matrix and apply a scale to it. The drawback is, that this will modify the normals as well, so it might cause lighting to go off. But depending on the app, that might not even be an issue at all.

tsaha