document dependencies from one parameter to others: which parameter v…#40
Open
document dependencies from one parameter to others: which parameter v…#40
Conversation
…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.
bsdorra
reviewed
Nov 24, 2025
params-2022x.json
Outdated
| "group": "Volume", | ||
| "requires": [ | ||
| "albedoColor != (0,0,0)", | ||
| "transparency > 0" |
Member
There was a problem hiding this comment.
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)
proog128
reviewed
Nov 26, 2025
proog128
reviewed
Nov 26, 2025
params-2025x.json
Outdated
| "thinWalled == false", | ||
| "attenuationColor != (0,0,0)", | ||
| "attenuationColor != (1,1,1)" | ||
| "attenuationDistance > 0" |
Member
There was a problem hiding this comment.
In any case, the format should be documented in Chapter 6.4, Parameter JSON file format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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.