You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I wrote the normal calculation code, everything looked pretty fine, the colors werent fully right but that could be because of the way i implemented it. The problems started, when I tried to use the faster code which is shown in the book, which just didnt work. I tripple checked everything but it didnt work. Then I tried to roll with the old (worse) code and implemented the multiple spheres thing. This doesnt work with both ways (the faster and the slower option), both give me the same result (shown in the picture). Has anyone ever seen something like that, because I dont think my code is wrong, I checked it multiple times. Worth noting is that im using floats and not doubles because of glm.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I wrote the normal calculation code, everything looked pretty fine, the colors werent fully right but that could be because of the way i implemented it. The problems started, when I tried to use the faster code which is shown in the book, which just didnt work. I tripple checked everything but it didnt work. Then I tried to roll with the old (worse) code and implemented the multiple spheres thing. This doesnt work with both ways (the faster and the slower option), both give me the same result (shown in the picture). Has anyone ever seen something like that, because I dont think my code is wrong, I checked it multiple times. Worth noting is that im using floats and not doubles because of glm.
I would be very thankful if someone helped me.
Beta Was this translation helpful? Give feedback.
All reactions