Author Topic: Retrieve Model Matrix and scale along a particular Matrix  (Read 95 times)

Offline tsaha

  • byte
  • *
  • Posts: 2
    • View Profile
Retrieve Model Matrix and scale along a particular Matrix
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Retrieve Model Matrix and scale along a particular Matrix
« Reply #1 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.

Offline tsaha

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Retrieve Model Matrix and scale along a particular Matrix
« Reply #2 on: December 02, 2017, 08:56:48 pm »
Thank you for your help. I will try that out.  ;D