Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Drawing Large Numbers of Shapes Efficiently  (Read 11926 times)

0 Members and 3 Guests are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Drawing Large Numbers of Shapes Efficiently
« Reply #15 on: February 21, 2010, 11:36:58 pm »
Thanks you very much for your help, it is now fixed :)
Laurent Gomila - SFML developer

BobTheFish

  • Newbie
  • *
  • Posts: 17
    • View Profile
Drawing Large Numbers of Shapes Efficiently
« Reply #16 on: February 22, 2010, 12:59:46 am »
Yes it is! Nice work.

Thanks for getting onto it so quickly.

gsaurus

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • Evolution Engine
Drawing Large Numbers of Shapes Efficiently
« Reply #17 on: February 22, 2010, 07:47:39 pm »
So, what was the problem?
Pluma - Plug-in Management Framework

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Drawing Large Numbers of Shapes Efficiently
« Reply #18 on: February 22, 2010, 08:34:37 pm »
The elements of the view matrix were so tiny that its determinant was almost zero, thus the inverse couldn't be computed and it used the identity matrix instead. That's why the returned numbers were in the range [-1, 1].

I just replaced my fuzzy compare for the determinant with a strict compare (we just want to avoid divide by zero, so very tiny numbers can still be considered as valid).
Laurent Gomila - SFML developer