Blender Git Commit Log

Git Commits -> Revision d438208

Revision d438208 by Sergey Sharybin (master)
August 29, 2014, 10:44 (GMT)
Cycles: Fix triangle ribbons hair in viewport and ortho camera

There were several issues involved into triangle ribbons hair:

- Even for the viewport rendering the blender scene camera was
used for orientation. This made hair triangles oriented to
the scene camera, not to the viewport camera.

- Triangle orientation was actually supposing the camera is
perspective. Triangles weren't oriented properly for the
orthographic camera resulting in different hair width across
it's length.

This issues are solved now, but there are some related TODOs:

- Rotating viewport doesn't re-orient the triangles, so after
viewport navigation hair might not look correct. However,
with this fix toggling viewport render (to force hair sync)
makes viewport render correct.

This isn't so much trivial fix, would require making BVH
aware of the dynamic triangle orientation, so they get
properly oriented without full hair re-sync.

- Panorama camera behavior didn't change but looks like it
should, however not really sure atm what's the right thing
to do here.

Commit Details:

Full Hash: d438208474e7d5a2dce6125f3fa727f3a93eb087
Parent Commit: 1d9e69f
Lines Changed: +33, -18

2 Modified Paths:

/intern/cycles/blender/blender_curves.cpp (+32, -17) (Diff)
/intern/cycles/blender/blender_session.cpp (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021