Jump to content

[SOLVED] - Weird Normal Map Effect


Recommended Posts

Yo @Sebavan I am trying to use a normal map on model that show up fine in unity (I don't know if there is a difference in how babylonjs renders normal maps vs unity) but when i create that material and stick on a mesh in babylon as really weird looking effect:

Screen Shot 2016-12-18 at 12.50.36 AM.png


I tried by hand coding a standard material like so as well, but same effect...

var material:BABYLON.StandardMaterial = new BABYLON.StandardMaterial("Tester", this.scene);
material.diffuseTexture = new BABYLON.Texture("scenes/vehicle_playerShip_orange_dff.png", this.scene);
material.bumpTexture = new BABYLON.Texture("scenes/vehicle_playerShip_orange_nrm.png", this.scene);
//material.invertNormalMapX = true;
//material.invertNormalMapY = false;
this.mesh.material = material;

 Also tried the invert Y and X... same effect...


Does anybody know what this effect is when using a normal map

 Here the scene files:





Link to comment
Share on other sites

Ahhh.. I found issue... Unity Was export image intensity as greyscale alpha (They changed the TextureImport from version 5.4 to 5.5 and remove greayscaleToAlpha = false option).

So you HAVE to make sure your normal maps are explicitly set to "Normal Map" not just "Default Texture" in the texture importer settings... is showing fine now... Thanks for the help... again :)



I fixed the TextureImporter issue... You STILL have to make sure its a 'Normal Map' type for texture you intend to use as a normal map... But the rest of the texture import settings are in the new toolkit... Please re-download latest toolkit package (as of 12/19/2016).

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