-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Adding skybox to motion_blur example #13671
base: main
Are you sure you want to change the base?
Conversation
51be2c4
to
21ac9e7
Compare
I like the choice of sky box, although AI-generation will be controversial even for test assets. CC-BY is a fine license. |
I can look for some other one if its prefered. Let me know what you think. |
Everything else being equal, let's look for a different one. Criteria for me are a) human-made b) permissively licensed c) pretty d) mostly sky |
762d7d9
to
95e193f
Compare
Ideally we would also have an envmap, so the lighting matches the skybox. You can use https://github.com/pcwalton/gltf-ibl-sampler-egui to generate skyboxes and specular/diffuse envmaps from |
6776ded
to
575b3db
Compare
I found a CC0 skybox, but the suggested tool produces a rather large asset file. Let me know if you are content with this. |
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.
These should be compressed - see the readme on the pisa envmap in tree.
They should also be organized to match existing envmaps, there is already a directory that specifically stores envmaps.
Also, this should probably involve some of the rendering SMEs, quite a bit of discussion went into selecting the currently added envmaps, so it would be good to make sure it's on their radar.
Subjectively, this skybox is a bit ugly. We will be forced to keep assets small, so we may want to stick to skyboxes with low frequency detail only, e.g. no clouds, to avoid ugly pixelation.
@aevyrie can you tag someone from the said experts please? It would probably be beneficial if they give their input regarding picking a skybox then. |
Hopefully I got this right: @superdump @pcwalton @JMS55 @IceSentry |
Could we use existing skybox and environment map textures in the repository to avoid having to add new ones? Having large binary files in the repository should have good motivation and if we already have something then maybe we don’t need to add more. |
The motivation for this issue is that the existing assets are kind of ugly and don't work well for this particular case. @aevyrie can say more about what's lacking. In general, I'd really like to move towards using nicer assets for our examples: they're the first thing people see and it's hard to disentangle "ugly/broken asset" from "ugly/broken engine". |
To try to push this forward: with the currents assets (10 megs including all the files, including the suggested compression) it looks like the following: 2024-06-16.14-36-59.mp4I will move them to the env maps folder so they sit together. Let me know what you think |
9695d01
to
20d4a01
Compare
20d4a01
to
10d0e16
Compare
Unfortunately, 10 Mb is likely too large to be in tree, but that is not my call to make. Not sure what the limits or alternatives are. As for the skybox itself, I would personally prefer we go with something lower detail, like other engines. I'd also expect that should be compressible down to a few Kb. I have two issues with the skybox chosen here
To give more a more concrete suggestion, if we are going to add a better default skybox, it should probably be something similar to other engines: It's possible these are also just using a simple shader for the skybox and envmap, which would completely eliminate the need for a skybox texture. |
I agree a default skybox like that would be better, but for the motion blur example, I'd would prefer a skybox with more stuff in it so you can actually see the blur. Otherwise we don't need to add one to that example. |
I agree with the statement here. I was searching for free to use hdri skyboxes that would be potentially better in low res but I couldn't find one. I am open for suggestions as I think it would look better with a nicer environment for this example. |
I tried to create some skyboxes but none of them were able to jump the bare minimum of being acceptable so I am looking for input about this. |
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.
If you want to save space, try:
- making the diffuse version smaller -- it's very blurry, you can safely shrink it down
- using the specular part as the skybox. I know this is not correct, but it usually looks all right and it saves a lot of space. We do this in one of our examples.
With your suggestion I was able to remove the 4 megs of the cubemap. I wouldnt scale down the resolution further because it gets really ugly :( |
Fixes #13632