Re: jit.gen & matrices calculations


Forums > Gen > jit.gen & matrices calculations
June 11, 2012 | 11:02 pm

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]