AllForum Posted September 11, 2014 Share Posted September 11, 2014 Hello,I tested basic things and here is a small feedback :1- On a scene with a plane,3 blocs and a red point light under the plane (cf. pic 1) I obtain the result in pic 2 :* Problem 1 : As the light is under the plane the blocs may not be lit : it is not an ambiant light.* Problem 2 : why only the small bloc and the plane are not lit ? (correct behavior)2- You know this point but I confirm that having a real directional light (currently it is a spot-like light) would be nice. I tried shadows with this light : it is unusable. I think that I read that it is planned.3- As only beginners read the documentation you will not find some typos in some links :In https://github.com/BabylonJS/Babylon.js/wiki/12-Particles :Also feel free to play with this scene... in our online playground.links on http://www.babylonjs.com/playground/?11instead of http://www.babylonjs.com/playground/?12Idem with https://github.com/BabylonJS/Babylon.js/wiki/11---Picking-collisions :links on http://www.babylonjs.com/playground/?10instead of http://www.babylonjs.com/playground/?11In https://github.com/BabylonJS/Babylon.js/wiki/15-Environmentthe link is not correctIf you want some free samples, you could find some at: http://www.3delyvisions.com/skf1.htm (look at licenses before use)4- this forum with your quick answers and all the existing posts is very useful ! Idem for the visual studio exporter solution : it was easy to export my own geometry.Thanks for this library. Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 11, 2014 Share Posted September 11, 2014 Hey there, 1.Problem 1 : The light is under the plane, but the plane has only one normal vector (following the Y-axis) => the light from bottom to top pass through it, so the block are enlightened.Problem 2 : the plane is not enlightened because the light is below The cube is not enlightened because of its orientation (and its normals orientations). Rotate it like the two others, and it should be ok. 3. Don't hesitate to edit the github wiki by yourself if you have a github account. It will be quicker than to report it here Cheers ! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 11, 2014 Share Posted September 11, 2014 Hi gang! I have fixed those broken links. Thanks for pointing them out, AllForum. Be well. Quote Link to comment Share on other sites More sharing options...
AllForum Posted September 11, 2014 Author Share Posted September 11, 2014 For problem 2 you are right : assuming that the light pass through the plane the small block is not lit due to its position (the light is under it).And when I send the point light far away it acts as a directionnal light : nothing is lit (in fact only the bottom faces). 1.Problem 1 : The light is under the plane, but the plane has only one normal vector (following the Y-axis) => the light from bottom to top pass through it, so the block are enlightened. Oops, sorry I used the word "plane" but in fact it is a Babylon.Mesh like the 3 other objects. If I understand your explanation the light passes through a plane because when the light is under the plane there is no front face to stop the light. But with a "mesh plane" is there an explanation ? Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 11, 2014 Share Posted September 11, 2014 A plane is a Babylon.Mesh Can you try to reproduce your problem in a playground example ? Quote Link to comment Share on other sites More sharing options...
AllForum Posted September 12, 2014 Author Share Posted September 12, 2014 The easiest way is to give you my geometry. The joined file contains only the meshes. And I use this light : var light0 = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(0, -30, 0), scene); light0.diffuse = new BABYLON.Color3(1, 0, 0); light0.specular = new BABYLON.Color3(1, 1, 1); light0.intensity = 1;totoGeom.zip Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 22, 2014 Share Posted September 22, 2014 HiRegarding the first post in this thread... the new URL for the 3delyvision skybox texture library... is http://3delyvisions.co/skf1.htm . A link to that site has been re-introduced into https://github.com/BabylonJS/Babylon.js/wiki/Scene-Environment (formerly named tutorial #17) (its about fog and skyboxes) This library has 37 fantastic skyboxes. You can get all 37+ skyboxes, with textures already correctly-named for Babylon.js usage... by downloading the Skybox Tour zip package. The textures in this package are still under the licensing policies that can be found at the 3delyvision web site. Quote Link to comment Share on other sites More sharing options...
AllForum Posted September 22, 2014 Author Share Posted September 22, 2014 Nice Thanks 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.