Jump to content

Can't display image


Recommended Posts

@Chien Pham Ngoc : Welcome to the forum :)

The red/black squares you see tell me that the index.html file you run is not finding  the textures (grass.jpg, misc.jp and tree.png). It is looking for the textures in a directory (called textures) below the directory holding the index.html file. 

I suggest you check your directory structure and paths.

cheers, gryff :)

Link to comment
Share on other sites

i checked the img Path. it's ok.  I build another demo  and Console alarm " Access to Image at 'file:///E:/BabylonJs/babylonjs/car.png' from origin 'file://' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. babylon.js:3 BJS  Error while trying to load texture: car.png " . :wacko:

Link to comment
Share on other sites

1 hour ago, Chien Pham Ngoc said:

i downloaded file get.zip on tutorial 2 http://www.babylonjs-playground.com/?4. But when run this demo and some other, they can't display images.

@Chien Pham Ngoc : You seem to have changed your first post - and it no longer includes the above link

And the new link tries to load "car.png"

Not sure what you are trying to do any more

gryff :)




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...