Skip to content
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

Skybox #991

Merged
merged 10 commits into from
Jul 2, 2024
Merged

Skybox #991

merged 10 commits into from
Jul 2, 2024

Conversation

Dhruv-0-Arora
Copy link
Collaborator

@Dhruv-0-Arora Dhruv-0-Arora commented Jun 25, 2024

Description

Created a spherical skybox using glsl shaders. The skybox is currently implemented in the SceneRenderer.ts file and uses the glsl shaders located in @/shaders. In /public/ there is the custom starry_sky.png used to create the stars. These will most likely be removed or changed.

Key Features:

  • Starry Skybox: Uses custom starry image as the sky for the spherical skybox.
  • Color Mixing: Shaders are utilized to blend colors, adding depth and realism. The shaders use the lygia package to incorporate a Perlin noise algorithm which allows for the generation of different patterns.
  • Theme Integration Ready: The implementation has the ability to utilize the current theme. However, it currently uses hard-coded colors to create the skybox.

Warning

The renderer for the robot has been commented out in this code. There are also numerous changes to the tsconfig & vite config.

JIRA Issue

@Dhruv-0-Arora Dhruv-0-Arora requested a review from a team as a code owner June 25, 2024 02:20
@Dhruv-0-Arora Dhruv-0-Arora requested review from PepperLola and BrandonPacewic and removed request for a team June 25, 2024 02:20
@HunterBarclay HunterBarclay changed the title Dhruv/skybox Skybox Jun 25, 2024
@BrandonPacewic BrandonPacewic added the rendering Relating to the rendering engine or how something is rendered label Jun 25, 2024
Copy link
Member

@HunterBarclay HunterBarclay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the stars?

fission/public/skycube_1/skyrender0001.bmp Outdated Show resolved Hide resolved
fission/src/shaders/fragment.glsl Show resolved Hide resolved
fission/src/systems/scene/SceneRenderer.ts Outdated Show resolved Hide resolved
fission/package.json Outdated Show resolved Hide resolved
@Dhruv-0-Arora
Copy link
Collaborator Author

Resolved all changes

Copy link
Member

@BrandonPacewic BrandonPacewic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor clarifying points. When you get the chance try to resolve the merge conflicts (unless @HunterBarclay does it for you 🙃). If you need any help with that feel free to grab me!

fission/src/shaders/fragment.glsl Outdated Show resolved Hide resolved
fission/src/systems/scene/SceneRenderer.ts Outdated Show resolved Hide resolved
fission/src/shaders/fragment.glsl Outdated Show resolved Hide resolved
fission/src/shaders/fragment.glsl Outdated Show resolved Hide resolved
fission/src/Synthesis.tsx Outdated Show resolved Hide resolved
removed redundant variables in fragment & vertex glsl files
removed redundant uTime from code (previously used for moving clouds)
Deleted useful code fragments that were commented out
uncommented mirabuf
@HunterBarclay HunterBarclay self-requested a review June 26, 2024 20:58
@Dhruv-0-Arora
Copy link
Collaborator Author

@HunterBarclay @BrandonPacewic do the changes to skybox fix everything for you?

Copy link
Member

@HunterBarclay HunterBarclay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good for now. We'll be changing up theme and what not pretty significantly so we'll address changes then

/*
* Updates the skybox colors based on the current theme

* @param currentTheme: current theme from ThemeContext.useTheme()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to have this than not. I would prefer that we standardize whether or not we want these kinds of doc strings at some point but that's a moot point anyways.

Looks good to me!

@HunterBarclay HunterBarclay merged commit be2e82d into Autodesk:dev Jul 2, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rendering Relating to the rendering engine or how something is rendered
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants