Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT C#] How to get the correct texture coordinates?

$
0
0

For some reason, I'm trying to extract the geometry and material information of elements into OBJ format.

Everything was going well until I tried to attach the texture to the geometry.

As we all know, we should attach the texture to the geometry by using UV coordinates.

I get the geometry information of an Element by using ElementGraphicsOutput and ElementGraphicsProcessor, and then get the UV coordinates from PolyfaceHeader.Parameters in the processing result, which contains a list of PolyfaceHeaders.

But the finally result looks not good.

It's the original one in MicroStation:

This is the result when using the UVs from the PolyfaceHeader.Parameters.

I think that there must be some method to generate the correct UVs by using the MapUnits and MapMode (two parameters which affect the mapping result):

Can anyone help me?


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>