Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OSL using world space rather than object space

1 REPLY 1
Reply
Message 1 of 2
jolive2245ZTM
267 Views, 1 Reply

OSL using world space rather than object space

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!

Tags (2)
1 REPLY 1
Message 2 of 2

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

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report