Here is a way to transform procedural texture to a texture file.
In this description a procedural texture is a function that transform a coordinate in euclidean space (X, Y, Z) to a colors (Red, Green, Blue and why not Alpha).
- Unwrap the object(s) you want to texture, this object could be also an object that is just used as support of UV mapping (used with Texture Matching)
1bis) You can edit the UV map in UV editor in order to optimize the placement of objects.
Extract the render mesh(es) using ExtractRenderMesh
Open the Grasshopper Script
Set render mesh(s) the the Mesh Component, if there are many meshes, use Mesh Join
Choose the number of pixels for the texture file (512, 1024 …)
Click on do the work
The component will output a list of points (XYZ)
Transform these point to colors
Give a path for a texture file, just PNG output at the moment, if extension is not png it will be changed to PNG
Click on “Do The Work”
Apply the texture to your material
You have now a procedural texture in a texture file that can be exported
the 2048 pixels version (a bit long ~ 1 minute)
A project I am doing with some camo. Here the component to be used to “support” the unwrapping
And the object with the raw texture (I have to soften it a bit)
texture_mesh_legacy.gh (183.1 KB)
In this link you’ll find some nice textures