Jump to content

Search the Community

Showing results for tags 'number of lights'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Anybody like to explain this behaviour. Note: when I say expected result what I mean is the results I expected not necessarily the developers expected results. In this PG http://www.babylonjs-playground.com/#1G708U#165 the 20 small grounds use the default grey material. Lines 22 - 24 light the green ground under the first 5 yellow spheres and lines 39 - 41 light the green ground under the last 5 red spheres as expected. Line 25 lights the grey grounds under the yellow spheres and line 42 lights the grey grounds under the red spheres, this is what is expected. Now comment out line 42, the grey ground under the yellow spheres is lit and those under the red spheres are not lit - as expected. Now comment out both lines 25 and 42, expected result no grey grounds lit, however what happens is that 4 of the grey ground remain lit. Also all the green ground under the yellow spheres is lit. Now remove the comment from line 42, expected result is grey ground under the yellow spheres are not lit and those under the yellow spheres are not. Actual result is for both commented out. First thought was the PG was using default material for all grey grounds with default light limit. So move to PG http://www.babylonjs-playground.com/#1G708U#166 and repeat which lines are commented in and out, this time using lines 29 and 47. Note that the number of lights for the blue material has been increased, line 16. Actual results are similar to first PG but not quite, neither commented and just 47 commented as before as expected. Both commented five under yellow are lit and all green lit. 29 commented all under red are lit but 5 under yellow are also lit. So I am confused. Are my expectations wrong or is there something else going on?
×
×
  • Create New...