I’m not quite sure whether I understand the texture coordinate handling right.
For general textures I use base::texture_coordinate_info coordinate() to get the default texcoords (in world space), that is clear to me.
But in the car paint MDL sample “texture_coordinate_object” is used as “coordinate_source”.
The documentation says: "[…]Distances in internal space or object space can be transformed into scene units in world space using the coordinate space transformations in Section 19.2. Scene units can be multiplied with the result of the ::state::meters_per_scene_unit()[…]
But when I use
base::texture_coordinate_info coordinate = base::texture_coordinate_info(state::texture_coordinate(0) * ::state::meters_per_scene_unit(), tangent_u: state::texture_tangent_u(0), tangent_v: state::texture_tangent_v(0) ); // I also tried to multiply with ::state::scene_units_per_meter()
the result is not the expected as if base::coordinate_source(coordinate_system: base::texture_coordinate_object) is used.
I also tried it with a checker_texture (see attachment Checker_TexCoords.jpg)
What am I doing wrong here?