Vijay Kumar Posted May 18, 2016 Share Posted May 18, 2016 Hi, i am wondering how many lights our babylonjs support because when i am trying to add more than 5 lights those lights are not shown up in scene. only 4 lights got added. Is there any limitation for number of lights to be used in Babylonjs. http://www.babylonjs-playground.com/#1G708U#16 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 18, 2016 Share Posted May 18, 2016 look this for standardMaterials and this for shaderBuilder http://www.babylonjs-playground.com/#1TYWYB#68 http://www.babylonjs-playground.com/#1TYWYB#69 dbawel and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
gryff Posted May 18, 2016 Share Posted May 18, 2016 @Vijay Kumar: I think you will find it is 4 lights/mesh object And for each light you can specify "includedOnlyMeshes" and "excludedMeshes" See here cheers, gryff NasimiAsl and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 18, 2016 Share Posted May 18, 2016 http://www.babylonjs-playground.com/#1TYWYB#72 16 ligth Wingnut and jerome 2 Quote Link to comment Share on other sites More sharing options...
adam Posted May 18, 2016 Share Posted May 18, 2016 GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted May 21, 2016 Author Share Posted May 21, 2016 Basic simple example for beginners. http://www.babylonjs-playground.com/#1G708U#56 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 21, 2016 Share Posted May 21, 2016 3 hours ago, Vijay Kumar said: Basic simple example for beginners. http://www.babylonjs-playground.com/#1G708U#56 http://www.babylonjs-playground.com/#1G708U#99 jerome and Vijay Kumar 2 Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted May 21, 2016 Author Share Posted May 21, 2016 Super Thanks NasimiAsl. I didnt know that we have that option in babylonjs . Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 22, 2016 Share Posted May 22, 2016 i just flow @Deltakosh and @adam Reply so i deliver Your Thanks for Them. Quote Link to comment Share on other sites More sharing options...
eboo Posted May 22, 2016 Share Posted May 22, 2016 64 without diffuseColor http://www.babylonjs-playground.com/#IRVAX#11. 127 (next crash) http://www.babylonjs-playground.com/#IRVAX#12 Vijay Kumar and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 22, 2016 Share Posted May 22, 2016 Good demented experimenting, @eboo! Can I run with it? http://www.babylonjs-playground.com/#IRVAX#14 Dance of the spotlights. Later, when things REALLY get out of control, we'll say goodbye to .positioning the spots, and hello to .directioning them. (huh?) StageLights Control Language V1.0... wow! Get some particle fountains involved... we should be able to build some pretty nice "looks" for our rock concert stage, eh? Who's first on tonight's ticket? Mott the Hoople? Then Uriah Heap? Then Atomic Rooster? Yep, geezer rock! Alright! Vijay Kumar 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted May 22, 2016 Share Posted May 22, 2016 saturday night fever Quote Link to comment Share on other sites More sharing options...
ledong6789 Posted May 23, 2016 Share Posted May 23, 2016 I get an error when using hemispheric light: "Object doesn't support property or method '_initCache' camera360 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 23, 2016 Share Posted May 23, 2016 Hi Ledong, welcome to the forum. http://www.babylonjs-playground.com/#IRVAX#17 That is the same demo, but using 32 down-aimed hemispheric lights. No error seen. But notice this: https://github.com/BabylonJS/Babylon.js/tree/master/src Lots of "fixed cache bug" talk - recent. SO, I think someone is working on that issue, and it will be repaired soon. Clear your browser history cache, perhaps download a fresh version of BJS, maybe it is fixed. If not, maybe soon. Keep us posted... and again... welcome! Thanks for the find/report. Maybe worth new thread... if problem needs more talk. Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted June 14, 2016 Author Share Posted June 14, 2016 Hi All, By using maxSimultaneousLights we are able to make the mesh to receive more number of lights. In the same way can we get Shadow generator for more lights. when i am trying ,able to get shadows for only one light,remaining lights are not working. http://www.babylonjs-playground.com/#1G708U#160 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 14, 2016 Share Posted June 14, 2016 Because you are reusing index variable http://www.babylonjs-playground.com/#1G708U#162 Beware though: Shadows add TONS of shader code and you will quickly reach WebGL limitation Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 14, 2016 Share Posted June 14, 2016 oh and btw there was a bug.Now you can use more than 4 shadows: http://www.babylonjs-playground.com/#1G708U#163 (clear your cache) Vijay Kumar 1 Quote Link to comment Share on other sites More sharing options...
Vijay Kumar Posted June 15, 2016 Author Share Posted June 15, 2016 Thanks Deltakosh...... 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.