Closed GoogleCodeExporter closed 9 years ago
Hmm... that is weird. Thanks for the bug report, I'll try to look at this over
the
weekend.
Original comment by cast...@gmail.com
on 25 Mar 2010 at 7:54
the statement "it should look like the .dds produced with an old nvdxt tool" is
not
entirely true. the file "mask_nvdxt_7.83.dds" too has artifacts but they are
not as bad
as the ones on "mask.dds"
Original comment by stoiko.t...@gmail.com
on 25 Mar 2010 at 8:05
yeah, in general NVTT should produce better results than the old tools, not sure
what's going on here, but I'll let you know as soon as I find out.
Original comment by cast...@gmail.com
on 25 Mar 2010 at 8:37
This issue does not happen if the color weights are not exactly the same.
Try to call compressionOptions.setColorWeights(1.000001f, 1.000002f, 1.000003f);
I attached a small piece of mask.tga file.
Original comment by marcoalt...@gmail.com
on 19 Apr 2010 at 3:03
Attachments:
The problem is in the code that computes the principal component. Turns out
that in
the Red-Green gradients the principal component is (-1, 1, 0).
To compute it I use the power method which is an iterative algorithm. This
algorithm
usually converges fairly quickly, however, it needs you to provide an initial
solution. I choose a fairly arbitrary (1, 1, 1) vector, that seemed to work
well in
most cases. However, in this particular case, when starting with that value, the
algorithm does not converge and gets stuck at (1, 1, 0), which is exactly
perpendicular to the real solution.
I'll see if I can use a better heuristic that is less prone to fail in cases
like these.
Original comment by cast...@gmail.com
on 19 Apr 2010 at 6:00
This issue was closed by revision r1057.
Original comment by cast...@gmail.com
on 19 Apr 2010 at 6:40
I'm now using the largest vector of the covariance matrix as the starting
point. That
fixes this particular problem, and in general, I think it should be much more
robust.
This is fixed in the 2.0 branch and trunk. I'll release the 2.0.8 revision
fairly soon.
Original comment by cast...@gmail.com
on 19 Apr 2010 at 6:44
Original issue reported on code.google.com by
stoiko.t...@gmail.com
on 22 Mar 2010 at 5:45Attachments: