On/off lights

Home Forums General Questions On/off lights

This topic contains 8 replies, has 4 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 2 months, 1 week ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #13818

    Hi

    Is it possible to switch the lights via puzzles in the application?

    Thanks

    #13827

    Is it possible to switch the lights via puzzles in the application?

    You can make an animation of the light intensity and play it’s animation using Play Animation puzzle.

    Co-founder and lead graphics specialist at Soft8Soft.

    #13828
    Avatar
    scalare
    Licensee

    Hey Mikhail,

    will that count as if the light was not present in the scene? I’m looking for ways to reduce the number of textures used in a scene to improve visualization on IOS. If a light has zero intensity, will a shadow map be generated for it, and therefore count as one texture?

    Thanks!

    #13851
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

    I think a texture slot is reserved for a light even if its intensity is zero.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #13930
    Avatar
    scalare
    Licensee

    Ugh, OK, thanks. So it seems there is no way to avoid duplicating the gltf files then? One for IOS (with reduced number of textures) and another one for the rest of the operating systems?

    #13936
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    I have an idea – you can probably load additional lights in run time if not on iOS.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #13967
    Avatar
    scalare
    Licensee

    So I create an additional gltf file with just lights and load it into the current scene? Brilliant! :-D

    #17491
    Avatar
    scalare
    Licensee

    So, I’ve tried a different route with this (I include it here in case it helps someone else). What I did was to have one light in the scene, but set to “Disable in Renders”. That way, when the app is loaded in a mobile device, it is turned off, and we don’t have the issues with IOS. And then, using the “feature available” puzzle, I check for “Mobile Device”. If true, nothing has to be done, but if false (desktop) we use the show puzzle to turn on the light (the even though it is not turned on, it is exported, and we can control it after the app is loaded). So this ends up working like a progressive enhancement. We load the “mobile view” at the start, and if we confirm that the app is being accessed from a desktop computer, we enable additional lights :-D

    #17502
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Very good! Thanks for sharing your solution! :good:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.