• Create Account

### #ActualDiegoSLTS

Posted 11 April 2014 - 07:57 AM

If the model is already scaled to 3/4 of the original then multiply it by 4/3 to go back to the original size and then by 5/4. If you want to do it in one step just chain the multiplications, 4/3*5/4 = 5/3.

Anyway, it's a good practice to always undo your transformations after drawing something (if there are no childs to be affected too), so the 4/3 scale should be there even if you don't plan to draw another house.

EDIT: 3/4 is the same as 0.75, so for the glScalef call should be glScalef(0.75,0.75,1).

### #1DiegoSLTS

Posted 11 April 2014 - 07:55 AM

If the model is already scaled to 3/4 of the original then multiply it by 4/3 to go back to the original size and then by 5/4. If you want to do it in one step just chain the multiplications, 4/3*5/4 = 5/3.

Anyway, it's a good practice to always undo your transformations after drawing something (if there are no childs to be affected too), so the 4/3 scale should be there even if you don't plan to draw another house.

PARTNERS