The Persistence of Vision Raytracer (POV-Ray).
This is the legacy Bug Tracking System for the POV-Ray project. Bugs listed here are being migrated to our github issue tracker. Please refer to that for new reports or updates to existing ones on this system.
FS#209 - Weighted texture of CSG
Opened by Grimbert Jérôme (Le_Forgeron) - Thursday, 02 June 2011, 10:33 GMT
Last edited by Christoph Lipka (clipka) - Thursday, 21 June 2012, 23:28 GMT
in change #3319, csg got a new computation for its weighted textures.
But I’m confused by the computation of the weight: (circa end of csg.cpp file)
COLC weight = 1.0f / min(COLC(textures.size() - firstinserted), 1.0f);
I would have used a max() rather than a min().
It is transparent when there is only one texture, but:
Or did I get a confusion about min() ?
min(0,1) == 0
Using max would protect against the division by 0 and the right value when multiple textures are used.
Any thought ?
Thursday, 21 June 2012, 23:28 GMT
Reason for closing: Fixed
Additional comments about closing: no news, so I guess the fix was effective