I'm wondering if there is possibility to randomize texture coordinates?
Maybe using OSL?
OSL - Random UV Mapping
Forum rules
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
A good starting point is to create an OSL Projection node.
The default looks like this, and implements UV mapping:
You can also implement world space linear mapping:
To implement something similar as the offset texture of the Turbulence node, add a color input and add it to the UV coordinate. Then add eg. a noise texture to that input:
--
Roeland
The default looks like this, and implements UV mapping:
Code: Select all
shader OslProjection(
output point uvw = 0)
{
uvw = point(u, v, 0);
}
Code: Select all
shader OslProjection(
output point uvw = 0)
{
uvw = P;
}
Code: Select all
shader OslProjection(
color offset = 0,
float amount = 1 [[float min = 0.01, float max = 10, float sliderexponent = 4]],
output point uvw = 0)
{
uvw = P + amount * offset;
}
Roeland
- kcpr-raffaEl
- Posts: 132
- Joined: Thu Aug 14, 2014 12:10 pm
- Contact:
Thank you!
I'll be more specific.
I need to randomize RGB Image U and V translation for hundreds of object instances.
Like ceramic tiles with one texture but randomly distributed on each one.
Earlier I did it using Uunwrap, but maybe it's easier to randomize it with OSL?
I'll be more specific.
I need to randomize RGB Image U and V translation for hundreds of object instances.
Like ceramic tiles with one texture but randomly distributed on each one.
Earlier I did it using Uunwrap, but maybe it's easier to randomize it with OSL?
What about random texture rotation? Can it be done in OSL too?
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
System – Windows 11
My Behance portfolio, Blender plugin FB support group