Errorneous width calculation in point renderer

Bug #934251 reported by laihro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
canvas K3D
New
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.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.