We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

glitches on iPad when AO is on!?

Home Forums General Questions glitches on iPad when AO is on!?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29478
    Daniel Brok
    Customer

    Hi to all,
    have a Problem, i notice strange behavior wit my Car Configurator on iPad and Safari,
    the Problem is, if the AO is used, that are some strange Lines and glitches! is here a fix for this!?

    aCar 3d Konfigurator

    :wacko: :cry:

    #29483

    Hi,

    unfortunately Apple devices provide a low precision depth buffer.
    I’d recommend to detect iOS with this puzzle and not enable dynamic AO for this platform.

    Chief 3D Verger | LinkedIn | Twitter

    #29513
    Daniel Brok
    Customer

    Hi Yuri,
    спасиба!!!

    one Question, i there a way to change “IBL Environment Mode” with PUZZLE, after detect iOS!?
    :yes:

    #29716

    Hi Daniel,

    one Question, i there a way to change “IBL Environment Mode” with PUZZLE, after detect iOS!?

    You can do that but you need to write a js snippet, since it’s not an only-puzzles soulution.

    You need to register a function for puzzles in your app’s main js file in the prepareExternalInterface() function like this:

    
    function prepareExternalInterface(app) {
        // register functions in the app.ExternalInterface to call them from Puzzles, e.g:
        app.ExternalInterface.changeIBLMode = function(modeStr) {
            var mode;
            switch (modeStr) {
                case 'PMREM':
                    mode = 0;
                    break;
                case 'PROBE_CUBEMAP':
                    mode = 1;
                    break;
                case 'PROBE':
                    mode = 2;
                    break;
                default:
                    mode = 2;
                    break;
            }
    
            app._envIBLMode = mode;
            app.updateEnvironment(app.worldMaterial);
        }
    }
    

    And after that you can call it via the call_JS_function puzzle:
    call_js_function.png

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.