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

refactor(TextureLoader): use THREE.DefaultLoadingManager as default loading manager #432

Closed
wants to merge 2 commits into from

Conversation

hawk86104
Copy link
Contributor

I don't know if I should submit this type of pull request as a direct "create pull request" or as a "create draft pull request."

Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit 834f3b4
🔍 Latest deploy log https://app.netlify.com/sites/tresjs-docs/deploys/6579706462befb00081e82cc
😎 Deploy Preview https://deploy-preview-432--tresjs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andretchen0
Copy link
Contributor

andretchen0 commented Nov 7, 2023

@hawk86104 @alvarosabu

Sorry for the delay. I'm not at home right now, so feedback will be slow.

I'm also not very clued into how Tres is working behind the scenes, so I'm not sure I'm the person to give a thumbs up or down here. @alvarosabu, I'm fine with whatever you decide.

@andretchen0 andretchen0 changed the title TextureLoader use THREE.DefaultLoadingManager as default loading manager reafctor(TextureLoader): use THREE.DefaultLoadingManager as default loading manager Nov 7, 2023
@andretchen0 andretchen0 changed the title reafctor(TextureLoader): use THREE.DefaultLoadingManager as default loading manager refactor(TextureLoader): use THREE.DefaultLoadingManager as default loading manager Nov 7, 2023
@andretchen0
Copy link
Contributor

andretchen0 commented Nov 7, 2023

FYI, updated the PR title using the conventions here, in order to pass the linter check.

Copy link
Contributor

@andretchen0 andretchen0 left a comment

Choose a reason for hiding this comment

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

I like the idea of using the THREE defaults.

I wonder if we'd be better off in the long run if we used the THREE TextureLoader signature. I.e., allow the user to pass their own LoadingManager. If they don't, use the default.

I'll go along with whatever @alvarosabu decides here.

@alvarosabu
Copy link
Member

@andretchen0 I agree with your idea, I think I prefer the user to be able to pass the loading manager they want. @hawk86104 could you add that to the PR?

@hawk86104 hawk86104 closed this by deleting the head repository Dec 14, 2023
@hawk86104
Copy link
Contributor Author

hawk86104 commented Dec 14, 2023 via email

hawk86104 added a commit to hawk86104/tres-hawk that referenced this pull request Mar 12, 2024
fiexd TextureLoader use THREE.DefaultLoadingManager as default loading manager 
Tresjs#432
hawk86104 added a commit to hawk86104/tres-hawk that referenced this pull request Mar 12, 2024
fiexd TextureLoader use THREE.DefaultLoadingManager as default loading manager
form: Tresjs#432
alvarosabu added a commit that referenced this pull request Apr 3, 2024
* fix(deps):Update useTexture/index.ts 

fiexd TextureLoader use THREE.DefaultLoadingManager as default loading manager
form: #432

* feat: Update src/composables/useTexture/index.ts

remove the comment

Co-authored-by: Alvaro Saburido <[email protected]>

* feat: the documentation under docs/ to reflect 'allow custom loading manager to useTexture'

---------

Co-authored-by: Alvaro Saburido <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants