point geoBot = point("object",0,0,0);
point geoTop = point("object",0,1,0);
y = distance(geoBot,geoTop);
--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osl-dev/11d6dd14-ae1c-4a52-81fc-6cb087978cd4%40googlegroups.com.
IF the object was completely and exactly enclosed in the y range of [0,1] of its local object coordinate system, then this should work.But there's no particular reason to think that the object is normalized, engineered to always fit in a [0-1] sized cube of its local coordinate system.
On Apr 24, 2020, at 8:21 AM, William Eguienta <kaiz3...@gmail.com> wrote:
Hello,I'm starting learning OSL and I try to make a ramp shader over the all geometry over different axes, no matter the uv and udim.I dont found how to identify the bottom and the top of my geo (or any other axis) to determine the range of my gradient
If I use UV, it works until I use object with UDIMI was expecting that I can identify the origin of the object with :and the top part with :
point geoBot = point("object",0,0,0);
point geoTop = point("object",0,1,0);then as i need a float value :
y = distance(geoBot,geoTop);but it seems I miss somethingany idea how i can make it works ?thank you--
You received this message because you are subscribed to the Google Groups "OSL Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osl-dev/11d6dd14-ae1c-4a52-81fc-6cb087978cd4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to osl-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osl-dev/9b7f1e2f-4190-4a6b-8759-c27ba0c91273%40googlegroups.com.