GPUOpen-LibrariesAndSDKs / RadeonProRenderBlenderAddon

This hardware-agnostic rendering plug-in for Blender uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
https://gpuopen.com/radeon-prorender-suite/
Apache License 2.0
480 stars 56 forks source link

RPRBLND-2240: Update to complete support for curves #587

Closed VascoPi closed 1 year ago

VascoPi commented 1 year ago

PURPOSE

User request https://github.com/GPUOpen-LibrariesAndSDKs/RadeonProRenderBlenderAddon/issues/576 Update to complete support for curves. Add radius and UV support.

EFFECT OF CHANGE

Now user can set the radius using the node "Set Curve Radius". UVs now supported via the automatically generated attribute surface_uv_coordinate.

Old behavior blender_ksKdUugyJ1

New behavior blender_Dq8nP9VA1i

TECHNICAL STEPS

Added support for radius attribute. Added iter_all_segments_radii function which does the same thing as iter_segments_radii, but for all curves. This is because the radius may vary for different curves and control points. Added support for surface_uv_coordinate to obtain UV coordinates. Added comments. Code adjustments.

NOTES FOR REVIEWERS

Gaps between segments are also observed in other plugins. This will be discussed with the core team. The ability to create a gradient along the curve will be added with the ticket