Grasshopper

algorithmic modeling for Rhino

I haven't been able to find methods that might allow me to edit the texture mapping properties of rhino objects. 
Am I overlooking something? 
Can anyone tell me where to find information on editing the texture mapping properties of an object?

Thank you.

Views: 8180

Replies to This Discussion

Hi Benjamin,

you haven't found anything because there's nothing to find. Texture mapping is something that Grasshopper currently doesn't do at all.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
is there even something in the SDK that I can put into a VB.NET component? I couldn't figure out how to do this with Rhinoscript either.

There's a number of ways one could use grasshopper and VB.NET to assign materials to baked objects, but I can't figure out how to adjust the scale, or orientation for that matter, of their texture maps.
Texture mapping is still pretty new to Rhino. I don't think any of it has been wrapped in the DotNET SDKs.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

hi david,

is there any improvement on that side since Rhino5?

thx for all,

timothée.

Don't know, haven't been paying attention to texmapping. I'm sure there has been progress but you'll have to go and see for yourself what methods RhinoCommon now exposes.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

well, I've seen there's new possibilities for uv mapping within rhino but I was wondering if grasshopper did follow or if there's any improvement on the way?

Texture mapping is not high on the list. Some day I'll probably add image and texture tools to GH but it's not going to be soon.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

I just saw this come up. I'm very happy to see the TextureMapping Class documentation in RhinoCommon. This is enormously helpful. I haven't used it yet, but the potential makes me happy.

What exactly are you trying to achieve? Textures are UV mapped by default, maybe you don't need to change the texture mapping.
For example: I have a bunch of surfaces, each with a different size. I assign a material to these surfaces. By default, the texture will be scaled to the bounding box of each. If the differences in size are big, then the scale of the texture varies dramatically. How can I ensure a consistent scale for the texture, irrelevant of the size of the object to which it is assigned? Is there a way to set an absolute scale for textures?
I see. What's the shape of these surfaces? What type of texture mapping you wanted to use? I think that the default UV mapping doesn't allow to change the repeat rate of textures. You'd have to setup a new material for each surface with a different repeat setting on the material. You can create new materials using the SDK and assign them bitmap textures, but i don't know about the repeat value.

If you can get away with it the easiest thing would be to select everything and use box mapping, if your renderer allows use WCS mapping, or use a 3d procedural texture instead of a bitmap.
Can I set texture WCS mapping to "box" for a list of objects using vb.net?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service