-
Notifications
You must be signed in to change notification settings - Fork 47
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
Wrong parameter for renderPass in @luma.gl model.draw() #854
Comments
Applied changes in #855. I wasn't able to reproduce, but maybe I don't have the latest version of luma? what version this happen on? Deck.gl often introduce breaking changes in minor versions. Viv is currently compatible with <v9.1. EDIT: I'm able to reproduce on Deck.gl v9.1 (and Luma v9.1). @ilan-gold, the fix is #855 appears to work on both v9.0 and v9.1, but I don't see anything in the upgrade guide around these changes. |
From what I see, in 8.5 , the param was opts: And in 9.0, it changed to renderPass They might have forgotten it in the guide because using the last param did not introduce a bug directly. |
@SauvageThomas How did this bug arise? Were you trying to use a more recent version of luma or deck than we support? |
@ilan-gold it was because I was using the 9.1 version for deck.gl and luma.gl. |
Describe the bug
The renderPass is not correctly sent to the model.draw function. It's very impacting because it blocks any render with recent luma versions.
To Reproduce
Steps to reproduce the behavior:
The easiest way to reproduce the bug is to update to the latest deck.gl and luma.gl version and run any viv code, for exemple, Avivator will fail.
By looking in debug mode, it seems that the code il already present but is hidden by Luma that is not really doing anything with the renderPass. But, in recent versions the bug makes it imposible to draw anything.
Expected behavior
The bug is really easy to solve, the problem is that opts are passed to model.draw, while it should have been renderPass.
This single line solves the issue:
model.draw(opts['renderPass']);
This should be done in xr-layer.js and xr-3d-layer.js.
I've tested it by cloning locally and it works.
Thanks for this library
The text was updated successfully, but these errors were encountered: