3Dlove Posted January 22, 2016 Share Posted January 22, 2016 Hello guys, I updated my project from 2.2.0 to 2.3.0-beta, and I have 3 differences so I have to apply these modifications, Is what it is intended? Problem 1: /* ambientTexture.vOffset updated from 0 to 0.42 */ scene.getMeshByName('Floor').material.ambientTexture.vOffset = -0.42; // vOffset LightMap Problem 2: A multiMat.dispose() difference : v2.2.0 (with multiMat.dispose();) scene.materials.length: 373 Displaying is working with dispose because the multimat is still attach to the mesh. v2.3.0-beta (without multiMat.dispose();): scene.materials.length: 453 with multiMat.dispose(); : Displaying isn't working with dispose because the multimat is really dispose of the mesh. Problem 3: // Lighting is different for SpotLight : scene.getLightByName('Spot').exponent = 1.2; You can see the difference between 2.3.0-beta and 2.2.0 in pictures. I tried to play with intensity and exponent in order to have the same result as before with a gradient color light but without success, do you have a solution ? :-) v2.2.0 : v2.3.0-beta Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 22, 2016 Share Posted January 22, 2016 Hello! 1. uOffset and vOffset vwere buggy in 2.2. Now they are correct 2.What is the problem here? If you call material.dispose(), you cannot use it anymore 3. We introduced range value for light in 2.3. You should try to tweak it Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 22, 2016 Share Posted January 22, 2016 I found anyway the image 1 above of better quality with 2.3. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
3Dlove Posted January 25, 2016 Author Share Posted January 25, 2016 1. OK 2. OK. Before in 2.2.0, if I called material.dispose(), meshes with the material have kept their material at the displaying screen. 3. OK thanks :-D On 22/1/2016 at 7:18 PM, Dad72 said: I found anyway the image 1 above of better quality with 2.3. EDIT: I put images in the correct order, the image you talk about is v2.2.0 ;-) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2016 Share Posted January 25, 2016 Yes, yes, I spoke well of this image here. By cons is true that in the window there is a very illuminating white or you can no longer distinguish the sky compared to the image 2.2. Can be a matter of adjustment due to the change/correction Quote Link to comment Share on other sites More sharing options...
3Dlove Posted January 26, 2016 Author Share Posted January 26, 2016 Hello, I played with intensity, exponent and range values but I don't success to same result as before :-( The lighting isn't gradient, it change directly from light to dark, have you an idea ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2016 Share Posted January 26, 2016 if you want to go to next level, we will need a repro case in the playground (gosh! how many times do I write this per month?) Quote Link to comment Share on other sites More sharing options...
3Dlove Posted January 27, 2016 Author Share Posted January 27, 2016 Yes, sorry :-P Here it is ;-) http://www.babylonjs-playground.com/#2ETSGI#0 With 2.2.0 : With 2.3.0-beta : Thanks :-D Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 27, 2016 Share Posted January 27, 2016 sounds like range is working to me: http://www.babylonjs-playground.com/#2ETSGI#1 Quote Link to comment Share on other sites More sharing options...
3Dlove Posted January 27, 2016 Author Share Posted January 27, 2016 I don't understand your answer, you remove others lights Do you see the differences between my two screenshots ? in this post : Have a nice evening ;-) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 27, 2016 Share Posted January 27, 2016 This can be : http://www.babylonjs-playground.com/#2ETSGI#2 Quote Link to comment Share on other sites More sharing options...
3Dlove Posted January 28, 2016 Author Share Posted January 28, 2016 Hello :-) Is not possible to have same feature as v2.2.0 with horizontal gradient lighting like that ? : Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 28, 2016 Share Posted January 28, 2016 To address this issue, please use only one light to isolate which light is problem 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.