|
Post by poster on May 21, 2020 20:19:28 GMT
I am attempting to make the hexagon described at the end of the chapter, but I am seeing odd behavior with the shadowing. However, when I do the same scene with each piece individually and not in a group, it looks as expected. I don't know how related this may be, but the tests "Converting normal from object to world space" and "Finding normal on child object" fail with values that are slightly off: Converting: { x: 0.28571428571428575, y: 0.42857142857142855, z: -0.8571428571428571, w: 0.0 } Finding: { x: 0.28570368184140726, y: 0.42854315178114105, z: -0.8571605294481017, w: 0.0 } Does this issue look familiar to anyone?
|
|
fremag
Junior Member
Posts: 73
|
Post by fremag on May 23, 2020 14:22:57 GMT
Hi,
Without the source code it's hard to tell.
Can you test groups with something simple: a group of two spheres and see what happens ? Or show us your code so I can debug and help (if I know the language of course)
|
|
|
Post by poster on May 28, 2020 19:27:29 GMT
Hi, Without the source code it's hard to tell. Can you test groups with something simple: a group of two spheres and see what happens ? Or show us your code so I can debug and help (if I know the language of course) I made a scene with some spheres thrown in it, and it seems to render fine. So it could be something in my hexagon code is going awry.
|
|
|
Post by poster on Jun 5, 2020 15:36:31 GMT
I think I may have this working now. Basically, I wasn't setting references to parent groups correctly.
I fell down a few rabbit holes debugging this, but c'est la vie.
|
|