I am writing an exporter for SKP. I ran into a very weird problem that I could not find the correct texture coordinates for particular component instances in the model. One of such model is attached here.
The extracted texture coordinates of center part of the 4 wheels are all wrong using SUMeshHelperGetFront(Back)STQCoords even if I divide the output ST by Q and then multiply them with the scale of the texture.
I checked them in the Sketchup and found textures of the wheel are set to projected. Is there special arithmetic calculation I need to do myself after I have STQ? Please advise. Thanks a lot.
There shouldn’t be any need for special handling - should be the same for any other non-projected texture which has perspective mapping (using the Q value).
I am not sure what is going on there…
I’m sorry, but the example is not ready. We’re currently in a very intense phase.
One thing though - are you using the texture writer? It will some times modify the UV values returned - if it thinks you want faces with perspective mapping exported as unique textures. (I have outlined this in another thread … trying to find it…)