|
Post by jonoke on Jul 3, 2022 4:17:41 GMT
When I scale a cylinder by less than 1.0 it gets bigger, and when I scale it by an amount greater than 1.0 it "disappears" from the render... it applies to cones as well. when I scale a plane (with a checker pattern), spheres and cubes, they all scale as expected - smaller when scaling by < 1.0 and bigger when scaling by > 1.0 Jonathan. All tests are passing. note the cylinder/cone is still in the scene as it casts a shadow. one scaled 1.0 1.0 1.0 other scaled 1.1 1.0 1.1 Attachments:
|
|
|
Post by jonoke on Jul 4, 2022 21:39:18 GMT
Could someone who can confirm their implementation works for scaling cylinders let me have a look at their intersects code?
I had built in object specific code from the start so where it got to refactoring the sphere code out it got a bit confusing .. and I think I've missed something. I discovered last night as I translate a cube up the y axis ... it gradually disappears. ugh.
|
|
|
Post by jonoke on Jul 5, 2022 11:17:41 GMT
False alarm - I found it. It's crazy how long you look at a mistake and not see it. In a couple of places I was referring to the world ray instead of the local ray in the intersect routine. Ugh. Attachments:
|
|