-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misleading warning relating to parameter type-check #536
Comments
Similar to #396, where we agreed that a rewording to "while looking for 1D array of vec3ui" softens the edge of the warning. Apparently not enough? |
Hmm, yes, I remember that one now. It indeed still throws me off, even with the rewording. I guess the main issue (probably not easy to solve) is that this type of warning is generated as part of a sequence of checks to set the parameter value, based on the supported types. But having a warning when one of those type option checks fails isn't that useful, because what is the user supposed to do with that information? As long as there's later a successful type match no warning is actually needed for the non-matching types. In short: it would be better to only emit a warning if all types checked were incompatible, as the current form highlights a partial fail without explicitly mentioning the final success (i.e. nothing to worry about). And even though I originally reported the issue at the beginning of 2020, more than 2 years later it still puts me on the wrong foot, especially after picking up working with OSPRay again after a long time 😁 |
I agree that the warning is not ideal. Improving that will need a rather large overhaul of the parameter checking mechanisms (which may come with more ANARI conformance and infrastructure). |
Updating ospTutorial.cpp to render a single quad instead of 2 triangles:
With 2.10 and running with
--osp:debug
this gives an incorrect warning, as theindex
array isn't ignored, judging by the second line:The text was updated successfully, but these errors were encountered: