Open boformer opened 9 years ago
The shader applies a texture (but not the one I supplied) to the bridge segment. It looks like the default asphalt texture. The texture is applied "from above" and ignores the supplied UV map. Bad for bridges, but maybe enough for road segments, which are usually flat surfaces.
If you manage it to replace the used texture, you can work with it:
Maybe this is a problem that only affects bridge segments. Who knows...
I told you once that I have some code you might be interested in:
Now the problem is, this model uses a default shader which does not support rotating and scaling, which is important for net segment meshes.
This happens when you apply the existing mesh and material from
importedModel
to a net segment:What you can do is: Apply the mesh and apply the single textures to the material of the net segment:
Now the scaling and rotating works correcly, but the texture mapping does not.
Here is the rest of my code:
NetInfoHook
is my own little class. It's obvious what it does.