Skip to content

Address path tracer merge leftover comments#991

Merged
devshgraphicsprogramming merged 87 commits intomasterfrom
path_tracer_leftover_cleanup
Mar 6, 2026
Merged

Address path tracer merge leftover comments#991
devshgraphicsprogramming merged 87 commits intomasterfrom
path_tracer_leftover_cleanup

Conversation

@keptsecret
Copy link
Contributor

Makes changes left from #966

@keptsecret
Copy link
Contributor Author

hlsl/matrix_utils/transformation_matrix_utils.hlsl removed because of https://github.com/Devsh-Graphics-Programming/Nabla/pull/966/files#r2618467323

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most parameters should be members #966 (comment)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for next sampling PR, to rework in line with concepts of #1001

return retval;
}

vector4_type computeBilinearPatch(const vector3_type receiverNormal, bool isBSDF)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this returning vector4_type instead of sampling::bilinear

Copy link
Member

@devshgraphicsprogramming devshgraphicsprogramming Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok sampling PR

Comment on lines 29 to 34
static ProjectedSphericalTriangle<T> create(NBL_CONST_REF_ARG(shapes::SphericalTriangle<T>) tri)
{
ProjectedSphericalTriangle<T> retval;
retval.tri = tri;
return retval;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove, see #966 (comment)

Copy link
Member

@devshgraphicsprogramming devshgraphicsprogramming Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok sampling PR

Comment on lines +67 to +68
vector3_type cos_vertices, sin_vertices;
const scalar_type solidAngle = tri.solidAngleOfTriangle(cos_vertices, sin_vertices, cos_a, cos_c, csc_b, csc_c);
const scalar_type solidAngle = tri.solidAngle(cos_vertices, sin_vertices);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be precomputed and stored as members #966 (comment)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok sampling PR

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again function with bazillion parameters that are really local members

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok sampling PR

materialSystem, scene, intersectP, interaction,
isBSDF, eps0, depth
scene, materialSystem, intersectP, interaction,
eps0, depth

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need depth

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depth is used to adjust newRayMaxT inside the nee though?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its you need it in userspace, pass it around clandestinely (ray payload)

((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((ray.template setInteraction<bxdf::surface_interactions::SIsotropic<bxdf::ray_dir_info::SBasic<float>, typename T::spectral_type> >(interaction)), ::nbl::hlsl::is_same_v, void))
((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((ray.initPayload()), ::nbl::hlsl::is_same_v, void))
((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((ray.shouldDoMIS()), ::nbl::hlsl::is_same_v, bool))
((NBL_CONCEPT_REQ_EXPR_RET_TYPE)((ray.foundEmissiveMIS(scalar)), ::nbl::hlsl::is_same_v, typename T::spectral_type))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not spectral_type, scalar_type

@devshgraphicsprogramming devshgraphicsprogramming merged commit 90dfc4e into master Mar 6, 2026
4 of 6 checks passed
@devshgraphicsprogramming devshgraphicsprogramming deleted the path_tracer_leftover_cleanup branch March 6, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants