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

No images found when running some examples #12

Open
sophia-long opened this issue Sep 29, 2023 · 1 comment
Open

No images found when running some examples #12

sophia-long opened this issue Sep 29, 2023 · 1 comment

Comments

@sophia-long
Copy link

I attempted to test some examples, and most of them ran perfectly. However, I found that some examples require texture images. These examples run successfully when the images are sourced from URLs. However, when attempting to use local images, the examples generate an 'image not found' error. For instance, the '/fabrice/utils.wgsl' example includes a JSON file:

{
    "uniforms": [],
    "textures": [
        {
            "img": "/textures/font0.png"
        },
        {
            "img": "/textures/london.jpg"
        }
    ],
    "float32Enabled": false
}

It appears that the 'font0.png' and 'london.jpg' files are not present in the project's directory structure. How can this issue be resolved?

Additionally, does the 'wgpu-compute-toy' project support cube maps, in addition to 2D textures?

@davidar
Copy link
Contributor

davidar commented Sep 29, 2023

It should be trying to fetch those from the website, eg https://compute.toys/textures/london.jpg

If you want a local copy of those files, they can be found in https://github.com/compute-toys/compute.toys/tree/master/public/textures

We don't currently have any support for cubemaps

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