Following discussion with @will I think this is a query for @fraguada.
I was testing importing some geometry into three.js that has materials with textures imported from the Material Library in Rhino. Some of these textures include “repeat” values that change the scale of the texture on the rhino object. This isn’t copied across to the three.js loaded geometry where the texture appears to be scaled with value 1.0 only. I thought perhaps I could extend the loader to allow this but I cannot find the information regarding texture repeating when using rhino3dm.js. Any hints or tips gratefully received.
hi @fraguada see images and file attached. Texture is set with repeat of 2 but this doesn’t end up in the Three.JS scene. It seems the loader currently just sets texture repeat to 1, regardless of what existed in the 3dm file.
While we do have a method to convert an Extrusion to a Brep in rhino3dm, it looses any associated render mesh in the process, so the brep won’t be visible. So unfortunately the best method for getting extrusions to have the correct texture repeating (at this time) is to explode in Rhino first
I am going to push this to our repository and make a PR to the three.js repo, but there are several moving parts. First, the rhino3dm.js library with these changes needs to be published, then we need to update the 3dmLoader in threejs. I’ll keep you updated on the process.