MackeyK24 Posted December 18, 2016 Share Posted December 18, 2016 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: 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: Shooter.babylon Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 18, 2016 Share Posted December 18, 2016 Hey Mackey! We only support normal maps and not bump maps unfortunately. You need to convert them to normal maps (You know, the "blue" ones" like this one: https://github.com/BabylonJS/Babylon.js/blob/master/Playground/textures/normalMap.jpg) Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 18, 2016 Share Posted December 18, 2016 the grey texture usually used for displacement maps, just sayinghttp://www.babylonjs.com/Demos/DisplacementMap/ Quote Link to comment Share on other sites More sharing options...
MackeyK24 Posted December 19, 2016 Author Share Posted December 19, 2016 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 Update 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). GameMonetize and Sebavan 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.