Skip to main content

How does kanzi render if the width/height or position is floating like 0.1, 0.5, ...?

Comments

1 comment

  • Jason Stanczyk

    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.