OSL using world space rather than object space

OSL using world space rather than object space

jolive2245ZTM
Observer Observer
476 Views
1 Reply
Message 1 of 2

OSL using world space rather than object space

jolive2245ZTM
Observer
Observer

Hello! I'm having an issue with the way Arnold seems to be handling my OSL shaders. I've made some perlin noise for my bump map on an object, but when that object moves, the noise seems to be working in world space, rather than object space, even though I thought I'd told it to work in the latter. I've included the relevant portion of my OSL code, perhaps I've overlooked something obvious.

 

 

 

 

    point pnt = P;

    //noise_Bump Distribution
    color z = noise("perlin", transform("object",P)*BumpNoiseScale);

    //Bump_Mask_variables
    bump_basic_mask = fClamp(z[0]);
    bump_amped_mask = fClamp(z[0]+(z[0]*BumpNoiseAmp));

 

(fClamp is just a custom clamp function)

 

 

Any help would be appreciated, thank you!

477 Views
1 Reply
Reply (1)
Message 2 of 2

CiroCardoso3v
Advisor
Advisor

Did you find a solution to this? Facing a similar situation.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

0 Likes