taichi-dev / taichi_three

A soft renderer based on Taichi (work in progress)
https://t3.142857.red/
MIT License
223 stars 24 forks source link

Minor update to 0.0.3 #10

Closed victoriacity closed 4 years ago

victoriacity commented 4 years ago

Three minor fixes:

  1. The (rectilinear/tangent) field of view was added to the camera projection matrix. Also gives a hint that the curvilinear perspective has not been implemented for rasterized rendering.
  2. When a fragment is behind the camera plane (z < 0), its projected X and Y coordinates were not inverted to produce the correct image when some of the vertices in a triangle are behind the camera.
  3. Adjusted the camera control as discussed in #9. The target should only be changed when pressing CTRL in orbiting and zooming movements. This allows users to orbit the target in a closer details when zoomed in.
DSaurus commented 4 years ago

The code of "light class" doesn't keep pace with "camera class" and I will modify it.

DSaurus commented 4 years ago

The code of "light class" doesn't keep pace with "camera class" and I will modify it.

I find that I can't commit to this pull request so the part of light code update is in my fork.

archibate commented 4 years ago

Screenshot_20200815_102640 It seems that all examples are so dark on my end?

archibate commented 4 years ago

Fixed, thank for all your contributions! Merging now~