emartinez-dev / miniRT

This project is an introduction to the beautiful world of Raytracing. Once completed you will be able to render simple Computer-Generated-Images and you will never be afraid of implementing mathematical formulas again.
The Unlicense
2 stars 0 forks source link

Planes are always in the middle of the scene #25

Closed emartinez-dev closed 11 months ago

emartinez-dev commented 11 months ago

I was trying to make a box with planes, but I discovered that the position of the plane is always at the center of the screen, the only thing that changes the plane is the position of the light, making it brighter when light is far.

This is the map and I will attach some images of the bug:

A   0.5 255,255,255
L   0,2,0 0.2 255,255,255
C   0,0,0 0,0,1 60
pl  0,-10,0 0,1,0  255,255,0
image Screen Shot 2023-08-25 at 6 47 44 PM
emartinez-dev commented 11 months ago

My scene was bad formed, it has to be that way