OSL Object Space not working

   941   2   0
User Avatar
Member
5 posts
Joined: Jan. 2019
Offline
Hello everyone,

I am trying to make an OSL to work in Object Space instead of Screen Space or raster. The code looks like this

shader GetObjSpace
(
    point Input = P,
    output point UVW = 0.0
)
{
    UVW = transform("object", Input);
}

Although this code works well in 3ds Max for example, for some reason in Houdini doesn't work at all. My OSL knowledge is quite limited, so I am not sure how I could fix this. Any suggestions or ideas?
User Avatar
Member
7803 posts
Joined: Sept. 2011
Offline
Cyrus3v
Hello everyone,

I am trying to make an OSL to work in Object Space instead of Screen Space or raster. The code looks like this

shader GetObjSpace
(
    point Input = P,
    output point UVW = 0.0
)
{
    UVW = transform("object", Input);
}

Although this code works well in 3ds Max for example, for some reason in Houdini doesn't work at all. My OSL knowledge is quite limited, so I am not sure how I could fix this. Any suggestions or ideas?

What renderer are you using? Renderman? Arnold?
User Avatar
Member
5 posts
Joined: Jan. 2019
Offline
Arnold. Seems like a bug to me. After some testing and more testing, I think there is an issue with the scale. Sometimes works, sometimes doesn't. I reported to the Arnold team as I am not sure if this is an issue from Houdini or Arnold.
  • Quick Links