Page 1 of 1

Modifying texture with SurfPaint

Posted: Wed Mar 28, 2018 2:14 pm
by pron.a
Dear Anatomist experts,

I am modifying an existing label texture using Anatomist 4.5.0. The original value of the Texture is 100 for drawn parts and 0 elsewhere.
When opening and modifying the texture with SurPaint ( for example adding vertices with value 100) , I noticed that after saving the value registered is not exactly the same , i.e. 99.999999. I just rounded the values not to be blocked but I guess it can be annoying when extracting precise values.

Have a good day

Alex

Re: Modifying texture with SurfPaint

Posted: Wed Mar 28, 2018 6:08 pm
by riviere
Hi,
For 3D rendering reasons, textures are generally rescaled with values between 0 and 1. Scaling factors are kept, and transformed back to real values when the texture is saved or converted to other objects. But these operations may induce rounding issues, as they are float32 values. I don't remember if the surfpaint toolbox can work with int values textures or not - it could be a way to avoid this issue.
Denis

Re: Modifying texture with SurfPaint

Posted: Thu Mar 29, 2018 7:52 am
by pron.a
Hello Denis,

thank for you answer
Have a good day :)

Alex