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

Texture Loader has no method load #408

Open
DerBambus opened this issue Apr 16, 2024 · 1 comment
Open

Texture Loader has no method load #408

DerBambus opened this issue Apr 16, 2024 · 1 comment

Comments

@DerBambus
Copy link

DerBambus commented Apr 16, 2024

Hi there,
I'm trying to load in a custom texture for a project.
When using the texture loader, I followed a regular 3js tutorial, leading me to the following code:

        texture = p3s.TextureLoader().load("temp.png")

which gives me the following error message:
AttributeError: 'TextureLoader' object has no attribute 'load'

I have tried calling different loaders, and also in different constellations, but I can't seem to get it to work.

@chuston-zvelo
Copy link

chuston-zvelo commented May 31, 2024

Same here.

Python 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC 12.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.24.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pythreejs as THREE

In [2]: THREE.TextureLoader().load("world.200408.3x5400x2700.png")
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[2], line 1
----> 1 THREE.TextureLoader().load("world.200408.3x5400x2700.png")

AttributeError: 'TextureLoader' object has no attribute 'load'

In [3]: THREE.version_info
Out[3]: (2, 4, 2, 'final')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants