Box mapping

Hi,

With rhino 7 I used the Human plug-in “box mapping” or “planner mapping” to scale the texturing of different geometries in grasshopper.

In Rhino 8, when previewing the mapped mesh with the “custom preview materials” everything seems fine.

But when I bake the mapped mesh using rhino 8 the scaling is gone.
With Rhino 7 I had no problems.
map texture.gh (15.8 KB)

1 Like

I wish I could help but I am having the same problem. I used to be able to bake the mapping with the mesh but it doesn’t work in Nov 2024. I’ll come back if I find a solution

The texture mapping bug in Grasshopper is fixed !

The script at the below link bakes out a planar object with the correct mapping.
https://mcneel.myjetbrains.com/youtrack/issue/RH-80966

Human now previews the texture mapping correctly but is not baking out meshes with the mapping embedded still…

2 Likes

Hi @Jussi_Aaltonen
I’m trying to apply box mapping to a whole series of BREPs.
The Rhino 9 WIP box mapping is not working unfortunately and Human still has the baking issue.
Are you please able to post a modified version of your script at

that would apply box mapping to a BREP, using a box input to base the mapping on, by any chance ? Thankyou a million !

Are you baking because you have texture mapping seams on brep faces?

Hi, do you have similar issues with Rhino 9 WIP Grasshopper Box Mapping as I have here?:

Yes - I’ve got the same issues Jakub - I seem to be able to box map the surface parallel to the WCS accurately, but the mapping of the sides is stretched out randomly no matter what I do.

The baking I was referring to Jussi was baking out a mesh after Human has applied UV mapping in a script. Human previews a UV box map fine from within Grasshopper, but when baked out this is stretched to one tile per face, which is unusable.

What type of texture mapping does the bake apply to the object?


MATERIAL.UVmap.gh (30.1 KB)

Hi Jussi
Here’s the script trying to apply box mapping of either an image texture or checker pattern to any reference geometry (try a simple box).
It uses either the reference box method, or can calculate the UVW rotation from the WCS.
None seem to work once the object is not orthogonal to the WCS.
/c



Base geometry aligned with WCS vs rotation of geometry by 20 degrees in each axis

Updated box mapping script
MATERIAL.UVmap.v9.gh (43.5 KB)