Jump to content

Bug texture black in plane, box (V1.8.5)


Dad72
 Share

Recommended Posts

This bug is recent, the textures are black on the plans with the version 1.8.5 of Babylon. When I tested the demo of the tutorial: '4. Materials - Texture' with the version 1.8.5 of Babylon the texture on the plan is black. The demo show on the texture on the plan before.

I am overview of this and seeking to understand why my texture was black on the plan of my project and i see that on the demo it is the same.

Thank you for the on.

 

https://github.com/BabylonJS/Babylon.js/wiki/04-Materials

Link to comment
Share on other sites

I just see that with a Box also. The front face is black, and the other face right, left, above, below and last are ok.
It seems that only the front faces (face to the camera when have is in position 0, 0, 0) bug (Box, Plane).

Link to comment
Share on other sites

I have testing under IE, I have the same problem. I also watch with Chrome, and I have no texture.
I not understand why. I used the same demo that you and the plan is black.

This works there is still 1 or 2 week. Have you an idea of what could be the problem?

 

Thanks

Link to comment
Share on other sites

I have test 14 - Advanced Texturing which presents the same problem and I have an error in the console:

 

SecurityError: The operation is insecure.

 

Otherwise the problem with wirframe is resolved, it was an error on my part in my project. The demo 4-Material works for the wirframe.

But for the textures, i do not understand yet. I is not updated my graphics driver. But may be a parameter that has been changed. I look at. By contrast it is may be link, but there are 2 day i had a bug with Chrome that allows me more than translate the pages, however that this works very well before.

 

(edit) I uninstall my graphics card then reinstall. but nothing changed. It worked well 3 days ago, i really understands not. All this comes from a crash of Chrome.

 

I've installed the demo on my serveur : (texture black also)

http://www.actifgames.com/babylon/Materials/index.html

Link to comment
Share on other sites

Good, i solved the error Cross-origin. But the texture on the plan is always black.
It is strange that on the sphere the textures is displayed, but the plan and the box that no longer works.
I is more error in the console.
 

Nobody has any idea among you? I don't know what to do.

 

Link to comment
Share on other sites

Hi,

I'm the dad72's wife and we have 2 personnal computer and a note book in the house. All are with windows seven professionnal edition.

 

I have tested the tutorial with my pc and my notebook, and i have the same problem, with 3 browser (internet explorer, Mozilla firefox and opera sorry i won't install google chrome)

 

Look !

 

471016dad.png

 

Thanks for your help.

Link to comment
Share on other sites

As my wife says, we have the same problem on 3 different computer.

We have no error in the console. This problem is really suddenly. When I test the tutorial with an older version of babylon, it is worse, more no image appears.

 

Is this that everyone could test this link to confirm the problem.

http://www.actifgame...ials/index.html

 

Thanks

Link to comment
Share on other sites

I understood the problem.

When i update Babylon, i past by Tortoise SVN and it seems he corromps files.  I am not on of this, but I have no other track.
Because when I downloaded again the tutorials, it works properly.

 

The bug is when I put the plane, box... in rotation (0) The texture is black.

var plan = BABYLON.Mesh.CreatePlane("plan", "120", scene);plan.rotation.y = 0;  

If I put the position as in the tutorial (0, 3.14 , 0), it works.

var plan = BABYLON.Mesh.CreatePlane("plan", "120", scene);plan.rotation.y = Math.PI;  

Therefore I think that there is a bug when a plan is in rotation < 3 = The texture is black.
 

Link to comment
Share on other sites

I think you're seeing a black plane because you're looking at the back face of the plane (rotation = 0), but when you set rotation to Math.PI (which rotate plane with an angle of PI, or 180°) you see the front face of the plane.

Try to move your camera behind your plane (with rotation = 0), you should see the texture (be sure to light the face).

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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