Jump to content

OpacityTexture ain't working since version 1.09 ?

Ariel Yust

Recommended Posts

Before version 1.09 this lined worked...

var m = new BABYLON.StandardMaterial(Image.src,Scene);...m.OpacityTexture = new BABYLON.Texture(opacityPath, Scene); // <----- this line

I'm using also: 

emissiveColor, specularColor, texture_source, ambientTexture, diffuseTexture, backFaceCulling =true;

All the paths are correct, I checked in debug, suspect the problem is with the babylonjs library... I see only the diffuseTexture and the OpacityTexture doesn't do anything anymore...


and yes I have checked this just in case:

diffuseTexture .hasAlpha = false;

I'm using 1.13 and 1.14 now, same effect...1.08 works great, Any Help will be appreciated !  B)

Link to comment
Share on other sites

Thanks Delta, it solved the OpacityTexture problem BUT it created a new problem, it seams that

m.SpecularColor = new BABYLON.Color3(0.2,0.2,0.2);

Effects the invisible parts of texture also, I see the white specular color on the whole plane... while my opacityTexture should be a circle shaped... so the edges around (invisible parts) are reflecting white light...

other then this problem, the OpacityTexture works now thanks to that code you wrote me =]

Link to comment
Share on other sites

  • 4 weeks later...

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