Login Action Required

The NinevehGL Forum uses a new concept of "socialized forum" or as we like to say "Tweet Forum".

Here is the deal:
  1. No new registration is required. Just sign in with your Twitter account and authorize the NinevehGL Forum.
  2. Once you’re in, you'll be able to "Follow a Thread", that means every time that thread receive a new post or update you'll receive a mention on your twitter.
  3. Besides, you can enable "Auto Share", then every new post and/or thread you make will be tweeted on your timeline. (By default, auto-share is enabled only for your threads)

Forum Rules:

1. We understand human comunication can become "hot" sometimes. So some insults and bad words ARE allowed. Just don't push too much being an asshole all the time.

2. SPAMMERS are not allowed. There are penalties for this kind of user and they can be banned forever.

3. You can report other users, if you judge necessary. An user reported many times by many people can also be banned forever. However you can also receive penalties for report deliberately for no apparent reason.

If there is a similar thread title, make sure the other one doesn't already have the answer you're looking for.

This forum uses the BBCode (Bulletin Board Code), here are some instructions:

Bold: [b]text[/b]
Italic: [i]text[/i]
Underline: [u]text[/u]

Code: [code]text[/code]

[ul] [*]item [/ul]
[ol] [*]item [/ol]



Embed (videos, code, 3D):

Welcome to the NinevehGL's world!
NinevehGL is a 3D engine forged with pure Obj-C.
Welcome to the
Hello, Guest.

Your current vote:

You can change your vote many times. But it's still one single vote.

Rotation first and then scaling the mesh?
Vote this thread:


Posts: 27


Wed, Dec 5 2012


I am trying to apply the following matrix on the mesh

1.414214 0.000000 0.707107 0.000000
0.000000 1.000000 0.000000 0.000000
-1.414214 0.000000 0.707107 0.000000
0.000000 0.000000 0.000000 1.000000

As such, I could not find an easy way to apply this matrix directly on the mesh,

So I extract, scale, rotation and translation separately. and use..

routines to apply this transformation..

The problem is i am unable to apply the rotation first and then scale the model..
The order of operation is always scale first and then rotate..

For example if I have a cube at origin, I rotate it by 45 along y and then scale it in x, the cube will get stretched, and the angles wont be exactly 90 degrees..

Rotation first and then scaling gives a different result and I am unable to achieve it with any combination...

Please help!!!

0% like this - 0/0


Posts: 571


Fri, Dec 7 2012

In response to: @bhartiya_varun

Hello buddy,

There is a lot of manipulation methods in NinevehGL, you can use the relative methods, change the order of the rotation and in the end if nothing reaches your goal, you can make the rotation by your self using your own matrices or quaternions and pass the result to the NGLObject3D.
0% like this - 0/0


Posts: 27


Thu, Dec 13 2012

In response to: @dineybomfim

Could you please guide me to an example code to apply 4x4 matrix using quaternions? I have been trying it out for quite sometime without any luck..
0% like this - 0/0

NinevehGL is a 3D engine built right on top of OpenGL ES and it uses all the programmable pipeline power, making it easy for you to create great application with shaders.

Share on

Follow NinevehGL
Fastest way to contact us:

Copyright © 2011 db-in. All rights reserved.