How does kanzi render if the width/height or position is floating like 0.1, 0.5, ...?
Hi Kanzi Supporting Team,
I'm using kanzi 3.6.20 for Toyota project and meet some stranger case:
+ when move the texture 0.5, kanzi will display the texture a little blur
+ scale the texture of 352 in width and for value 0.75 -> 0.75*352 = 264 but for value 0.751 -> 0.751*352= 264.352 and there are two blur pixels at the both head & tail side
so I wana ask that how kanzi can control & display for those stranger cases above?
Thanks
-
Good Day haquocviet,
If you could please describe what effect you are looking to achieve and maybe a sample project of what you have done it can provide clarity for us to provide a better answer.
After discussing briefly with some Rendering engineers, Kanzi is not doing anything special with "How does Kanzi do it?" Kanzi renders normally to the GPU. I believe you are seeing the blurring is because a texture is expected to be rendering whole pixels, and cannot render to half a pixel, so when the multiplication results in a floating point like 264.352, the texture results in the visual error.
To avoid this, ensure the resulting resolution of the texture is a whole number.
As well are you meaning a 2D image or a texture on a 3D mesh?
There is a property called "snap to pixel" that may be able to assist with what you are looking to achieve.0
Please sign in to leave a comment.
Comments
1 comment