Blender Git Commit Log

Git Commits -> Revision 59aef0a

Revision 59aef0a by Patrick Mours (master)
November 22, 2019, 16:30 (GMT)
Fix T71255: Particle hair not showing in viewport with OptiX after scaling

The OptiX intersection program for curves uses "optixGetObjectRayDirection"
to get the ray direction in object space (which was inverse transformed
with the current transformation matrix). OptiX does no additional operations
on it, so if there is a scaling transform, the direction is not normalized.
But the curve intersection routine expects that. In addition, the distances
used in "optixGetRayTmax()" and "optixReportIntersection()" are in world
space, so need to adjust them accordingly.

Commit Details:

Full Hash: 59aef0ad5d6440e855f53db791b28076f50df2b2
Parent Commit: aadbb79
Lines Changed: +11, -4

1 Modified Path:

/intern/cycles/kernel/kernels/optix/kernel_optix.cu (+11, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021