www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: tsaha on December 02, 2017, 12:20:58 am

Title: Retrieve Model Matrix and scale along a particular Matrix
Post by: tsaha on December 02, 2017, 12:20:58 am
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.
Title: Re: Retrieve Model Matrix and scale along a particular Matrix
Post by: EgonOlsen on December 02, 2017, 10:28:41 am
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.
Title: Re: Retrieve Model Matrix and scale along a particular Matrix
Post by: tsaha on December 02, 2017, 08:56:48 pm
Thank you for your help. I will try that out.  ;D