Skip to content

No images found when running some examples #12

@sophia-long

Description

@sophia-long

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions