Jump to content

  • Log In with Google      Sign In   
  • Create Account


mako1131

Member Since 05 Apr 2013
Offline Last Active Jan 30 2014 05:40 PM

Posts I've Made

In Topic: Javascript: image.onload function inside "class"

16 January 2014 - 02:11 PM

Works fine on JSFiddle: http://jsfiddle.net/E6bn9/2/

Lol...apparently problem was somewhere else. Thanks for pointing out, it is working properly now :)


In Topic: Javascript: image.onload function inside "class"

16 January 2014 - 01:57 PM

Well, I was doing it without bind (just 

  1. this.img.onload = this.imageLoaded;

but it was not working so some guy gave me advice to to use bind. I looked it up but I can't make it work properly :( .


In Topic: Problem with Arcball/Trackball implementation using SDL + Opengl

07 April 2013 - 06:48 AM

I finally figured it out...it's working now.


In Topic: Problem with Arcball/Trackball implementation using SDL + Opengl

06 April 2013 - 04:07 AM

Yeah you are right it should probably be  ball_old = ball_new; ... But may I ask why should I multiply ball * ball_old  instead of ball_old * ball;?  I know that order of matrix multiplication is important and it's not the same multiplying matrices A*B and B*A, but somewhere I read that arcball matrix rotation should be placed after all other matrices...so I basically put the new rotation matrix at the end of everything.


PARTNERS