Skip to content

document dependencies from one parameter to others: which parameter v…#40

Open
JMeseth wants to merge 2 commits intomasterfrom
mutual_parameter_dependencies
Open

document dependencies from one parameter to others: which parameter v…#40
JMeseth wants to merge 2 commits intomasterfrom
mutual_parameter_dependencies

Conversation

@JMeseth
Copy link
Collaborator

@JMeseth JMeseth commented Nov 24, 2025

…alues need to be assumed by other parameters to make the current parameter effective?

The idea is using this to build a more user-friendly UI, where parameters are shown as inactive if their dependencies are not fulfilled.

If multiple dependencies D_i (i < n) are listed for a parameter, they are considered as D_0 and D_1 and ... and D_(n-1). Note that some complex dependencies were left out on purpose (e.g., conditions where one dependency or another dependency should be fulfilled to deactivate a parameter; in such case only the "stronger" / "more important" one is listed here.

…alues need to be assumed by other parameters to make the current parameter effective?

The idea is using this to build a more user-friendly UI, where parameters are shown as inactive if their dependencies are not fulfilled.

If multiple dependencies D_i (i < n) are listed for a parameter, they are considered as D_0 and D_1 and ... and D_(n-1). Note that some complex dependencies were left out on purpose (e.g., conditions where one dependency or another dependency should be fulfilled to deactivate a parameter; in such case only the "stronger" / "more important" one is listed here.
@JMeseth JMeseth requested a review from bsdorra November 24, 2025 15:01
"group": "Volume",
"requires": [
"albedoColor != (0,0,0)",
"transparency > 0"
Copy link
Member

Choose a reason for hiding this comment

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

Is translucency(Color) considered on of the "complex dependencies" that was left out on purpose? If so, wouldn't it result in the UI potentially disabling thin walled even though it may have an impact on the outcome? (Same for the volume params below)

"thinWalled == false",
"attenuationColor != (0,0,0)",
"attenuationColor != (1,1,1)"
"attenuationDistance > 0"
Copy link
Member

Choose a reason for hiding this comment

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

In any case, the format should be documented in Chapter 6.4, Parameter JSON file format.

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.

3 participants