-
Notifications
You must be signed in to change notification settings - Fork 7
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
Sky dds #42
Conversation
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
Do you have the lastest |
Signed-off-by: Nate Koenig <[email protected]>
Thanks. I wasn't aware this required a gz-sim change. I'll get back to you. |
Signed-off-by: Nate Koenig <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I tested it using Fuel's skyboxes and works as intended.
We need to cover the case where the skybox could come from the websocket, and have it taken into account by the websocket loading manager. This can be a follow up task though, as the skyboxes used are Fuel's.
Let me know what do you think @nkoenig
src/Scene.ts
Outdated
'https://fuel.gazebosim.org/1.0/openrobotics/models/skybox/tip/files/materials/textures/skybox-posz.jpg', | ||
]); | ||
} else { | ||
let ddsLoader = new DDSLoader(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: const over let
let ddsLoader = new DDSLoader(); | |
const ddsLoader = new DDSLoader(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we do check onError if the asset came from the websocket, pass the websocket loading manager into it.
You can check on other loaders how it was used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I did it in eab4493
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it! Thanks! I'll test these changes and then re-approve it.
Co-authored-by: Germán E. Más <[email protected]>
Co-authored-by: Germán E. Más <[email protected]>
Co-authored-by: Germán E. Más <[email protected]>
Co-authored-by: Germán E. Más <[email protected]>
We can go ahead with this implementation, as we won't load dds files via websocket. LGTM. Can you solve the conflicts @nkoenig ? If you bump the version in this PR, we can publish it. |
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig <[email protected]>
@german-e-mas , let me know if you are okay with the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Adds support for reading cubemaps that are encoded as
.dds
files. This should support.dds
files coming from Fuel, or from a local source.Testing using Fuel
Testing using local file