• Create Account

### #Actualtuccio

Posted 29 June 2012 - 07:02 AM

Well, i was setting up an hardcoded cornell box scene with opengl because i want to learn glsl and hopefully write a fragment shader path tracer

so i copied these data (here's the code), but i had a result i didn't expect, and i don't understand

There's no reason for having an enlighted left wall and such a dark right wall.. also that floor shouldnt be so dark if the bottom of the left wall is still enlighted

But if i invert floor and right wall normal direction (right wall normal = (-1, 0, 0) and floor normal = (0, -1, 0)) i get something similiar to what i expected

i feel like i'm missing something :/

### #1tuccio

Posted 29 June 2012 - 07:00 AM

Well, i was setting up an hardcoded cornell box scene with opengl because i want to learn glsl and hopefully write a fragment shader path tracer

so i copied these data (here's the code), but i had a result i didn't expect, and i don't understand

But if i invert floor and right wall normal direction (right wall normal = (-1, 0, 0) and floor normal = (0, -1, 0)) i get something similiar to what i expected

i feel like i'm missing something :/

PARTNERS