Errorneous width calculation in point renderer

Bug #934251 reported by laihro on 2012-02-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
canvas K3D
Undecided
Unassigned

Bug Description

Hello dear K3D team,

the point render and possibly also the other renderers errorneously assume larger world coordinate Z values to appear closer to the user. The center of the "world" is [0,0,0]. More distant Z-Values in fact become larger while the closer Z-Values becomer smaller e.g. [0,0,50] is more distant to the user than [0,0,-50]. Thus, the point width calculation

  c = worldcoords[i].z + dscale;

is wrong and needs to be changed to

  c = (-1*worldcoords[i].z) + dscale;

See the attached patch.

laihro (laihro) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers