HoloLite Posted April 24, 2018 Share Posted April 24, 2018 I noticed that the specular light effects in my app has completely disappeared in rc1. It was working in beta5. Has anything changed? Is this a bug ? Thanks Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 24, 2018 Share Posted April 24, 2018 Nothing should have changed here that I know, I can also still see the specular effects in all the test PG I looked at. Do you have more precision on how you are using it (this might help troubleshooting) ? Quote Link to comment Share on other sites More sharing options...
HoloLite Posted April 24, 2018 Author Share Posted April 24, 2018 I am using 2 lights: hemi and directional. The code fragment is the following. The this.light is directional light. The this.hemilight is hemispheric light. this.light.intensity = 2.0; this.light.direction = new BABYLON.Vector3(0.1, 0.9, 0.1); this.light.diffuse = new BABYLON.Color3(1, 1, 1); this.light.specular = new BABYLON.Color3(0.5, 0.5, 0.5); this.hemiLight.intensity = 1.0; this.hemiLight.direction = new BABYLON.Vector3(0.1, 0.9, 0.1); this.setSkyboxSettings("material.inclination", this.skyboxMaterial.inclination, 0); This would give the specular lighting effect in the app, until rc1. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 24, 2018 Share Posted April 24, 2018 Hello, I can still see it on both standard and pbr: http://playground.babylonjs.com/#0GNDZT http://playground.babylonjs.com/#0GNDZT#1 Quote Link to comment Share on other sites More sharing options...
HoloLite Posted April 24, 2018 Author Share Posted April 24, 2018 Thanks for looking into this. My meshes are using materials with diffuse textures. I wonder if some default values have changed recently in beta1. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 24, 2018 Share Posted April 24, 2018 Still seems to work as well. It is really hard to troubleshoot without PG: http://playground.babylonjs.com/#0GNDZT#2 and http://playground.babylonjs.com/#0GNDZT#3 Quote Link to comment Share on other sites More sharing options...
HoloLite Posted April 24, 2018 Author Share Posted April 24, 2018 HEHEHE no wonder you cannot reproduce it. You did it with rc2 and apparently it was fixed in rc2. I just updated my app to rc2 and the issue was gone. The issue was indeed present in rc1 though. Thanks for looking into this anyway! Sebavan and GameMonetize 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.