karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

bunny's hue difference #21

Open FarzanehCS opened 1 year ago

FarzanehCS commented 1 year ago

My result picture for the bunny has a bit different colors. I get:

image

VS the result shown in the repo:

image

Is that ok or it shows I am missing sth?

henrytwo commented 1 year ago

Are your normals oriented correctly? It should look like the image shown in the repo

guyuli2002 commented 1 year ago

I had this problem before. Remember x crossproduct y is different than y crossproduct x

FarzanehCS commented 1 year ago

Thank you so much. Changing the cross-product order solved the issue.