Alex10 Posted August 1, 2016 Share Posted August 1, 2016 Сan be assigned to show diffuse texture to the model if it is to apply PBR?I founded in the documentation, only examples of pre-set: metal, plastic, glass and wood.For example: var scene = new BABYLON.Scene(engine); var camera = new BABYLON.ArcRotateCamera("Camera", -Math.PI / 4, Math.PI / 2.5, 200, var hdrTexture = new BABYLON.HDRCubeTexture("textures/room.hdr", scene, 512); var hdrSkybox = BABYLON.Mesh.CreateBox("hdrSkyBox", 1000.0, scene); var hdrSkyboxMaterial = new BABYLON.PBRMaterial("skyBox", scene); hdrSkyboxMaterial.reflectionTexture = hdrTexture.clone(); hdrSkyboxMaterial.disableLighting = true; hdrSkybox.material = hdrSkyboxMaterial; material = glass; glass.refractionTexture = hdrTexture; glass.reflectionTexture = hdrTexture; ???? material.diffuseTexture = new BABYLON.Texture("/path", scene); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 2, 2016 Share Posted August 2, 2016 Hello! what you are looking for is material .albedoTexture Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 2, 2016 Share Posted August 2, 2016 http://doc.babylonjs.com/overviews/Physically_Based_Rendering Quote Link to comment Share on other sites More sharing options...
Alex10 Posted August 2, 2016 Author Share Posted August 2, 2016 http://www.babylonjs-playground.com/#28YUR5#91I can't do at the same time the effect of pbr and texture. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 2, 2016 Share Posted August 2, 2016 yes, an implemented material issue in obj file format. would be nice, if someone could fix it.@Deltakosh maybe just call checkreadyonce or something? sometimes it works and sometimes nothttp://www.babylonjs-playground.com/#28QT05#0 fixed:http://www.babylonjs-playground.com/#28QT05#2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 4, 2016 Share Posted August 4, 2016 @Alex10 not sure to understand the problem Pingin @Sebavan Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 4, 2016 Share Posted August 4, 2016 I am not sure to understand the question either... But to use an albedo texture, you can take a look at http://doc.babylonjs.com/overviews/Physically_Based_Rendering_Master#how-to-create-a-wood-material 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.