Re: jit.gen & matrices calculations


Julien Bayle

ok

using this, it works very fine, filling the matrix at the end with values like:
(0., 0., distance)

the cell index being the considered objects.

finally, it was the first gen stuff dtr adviced me.

maybe I could remove the sqrt() to improve things but … I have to say it works quite nice.
indeed, that distance calculation costs, but it provides a way to disable all OB3D too far from the camera, and it saves a lot of cpu..

[attachment=196365,4026]

Attachments:
  1. Capturedcran2012061200.57.00.PNG
Jun 11, 2012 at 11:02pm #167864