Archived issue #0009575
Improve AIS_TextureShape to map arbitrarily sized textures properly
Description
It is necessary to correct AIS_TexturedShape::Compute() method, so that it uses
the results of OCC9554 to map arbitrarily sized textures properly.
the results of OCC9554 to map arbitrarily sized textures properly.
Public activity
1 archived note
Participants are labeled by their role within this record.
ShadeFromShape() in StdPrs_ShadedShape.cxx still generates texture coordinates in [0; 1] range. But this seems to work correctly in case of Graphic3d_Texture2Dmanual texture class used by AIS_TexturedShape::Compute().
As a result, images with non-power-of-two dimensions are mapped without black padding so the textured shape looks correct.
Dear Commenter 2,
I suggest we close this issue.
As a result, images with non-power-of-two dimensions are mapped without black padding so the textured shape looks correct.
Dear Commenter 2,
I suggest we close this issue.
Related records