Hi,
I´m having problems with copy2points in LOPs when copying spot lights.
There is an animated “N” attrib controlling the direction of the light. In the viewport It seems fine, but when rendering, the direction of the light flickers.
I´ve done the same thing using the Point Xform and the render behaves like the viewport, so I´m thinking this is a bug. Can anyone confirm It?
Anyway, is this approach fine? Does It have a big performance hit while creating primitives when compared with just changing their attributes?
Copy2Pts x PointXform [Bug] [SOLVED]
2376 10 1-
- guilhermecasagrandi
- Member
- 188 posts
- Joined: March 2011
- Online
-
- jsmack
- Member
- 6691 posts
- Joined: Sept. 2011
- Offline
-
- guilhermecasagrandi
- Member
- 188 posts
- Joined: March 2011
- Online
jsmackYes, and the copy2points behaves the same in the viewport, only in the rendered images It behaves differently.
That's really strange. I modified the pointxform side to see if putting the transform on the reference instead of the light produced the same result but it was still normal. The matrices are slightly different, but only after the 5th or 6th sig fig.
-
- jsmack
- Member
- 6691 posts
- Joined: Sept. 2011
- Offline
-
- mtucker
- Staff
- 4229 posts
- Joined: July 2005
- Offline
If you look at the “Local to World Xform” of the light coming out of the Instancer LOP using the spreadsheet view, you can see that it's generating small non-unit scale values (the scale coming out of point xform is exactly 1.0). Even if I turn off “Set Scale” in the Instancer LOP. I'm hoping that's where the discrepancy is coming from, but I'll need to do a bit more digging to figure out why it's ending up with scales in the xform… I'll let you know when/if I make any progress.
-
- jsmack
- Member
- 6691 posts
- Joined: Sept. 2011
- Offline
mtucker
If you look at the “Local to World Xform” of the light coming out of the Instancer LOP using the spreadsheet view, you can see that it's generating small non-unit scale values (the scale coming out of point xform is exactly 1.0). Even if I turn off “Set Scale” in the Instancer LOP. I'm hoping that's where the discrepancy is coming from, but I'll need to do a bit more digging to figure out why it's ending up with scales in the xform… I'll let you know when/if I make any progress.
is it a karma bug that 0.1 % scale would cause the spot light size to vary that much?
-
- mtucker
- Staff
- 4229 posts
- Joined: July 2005
- Offline
The bug is that there is any scale being set at all. This is happening because we are doing some internal orientation calculations at half-float precision in the Instancer LOP. This problem will be fixed in tomorrow's build.
I don't know how to judge if karma is responding “correctly” to these scale values…
I don't know how to judge if karma is responding “correctly” to these scale values…
-
- guilhermecasagrandi
- Member
- 188 posts
- Joined: March 2011
- Online
mtucker
The bug is that there is any scale being set at all. This is happening because we are doing some internal orientation calculations at half-float precision in the Instancer LOP. This problem will be fixed in tomorrow's build.
I don't know how to judge if karma is responding “correctly” to these scale values…
Thanks again!
At least in the flipbook, I don´t see the scaling effect, only in the render (with Karma).
-
- jsmack
- Member
- 6691 posts
- Joined: Sept. 2011
- Offline
mtucker
The bug is that there is any scale being set at all. This is happening because we are doing some internal orientation calculations at half-float precision in the Instancer LOP. This problem will be fixed in tomorrow's build.
I don't know how to judge if karma is responding “correctly” to these scale values…
I did some tests, and karma seems abnormally sensitive to these scales, although I wouldn't expect scales to affect the spot light effect at all.) A scale of as little as 0.1 % is enough to make the spot radius 10x larger.
-
- brians
- Staff
- 284 posts
- Joined: May 2019
- Offline
-
- guilhermecasagrandi
- Member
- 188 posts
- Joined: March 2011
- Online
-
- Quick Links