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.

Camera clipping planes and Post (AO)

Home Forums Graphics / 3ds Max Camera clipping planes and Post (AO)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2201
    David
    Participant

    Hi there

    Can i somehow controll the “near and far” camera clipping planes, and is it possible to add some post effects ex. ambient occlusion.

    By the way great software :)

    Regards
    – David

    #2207

    Can i somehow controll the “near and far” camera clipping planes, and is it possible to add some post effects ex. ambient occlusion.

    Both are supported, you can enable SSAO with specific checkbox in the 3d viewport.
    SSAO

    By the way great software

    Thank you! we appreciate any support:)

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

    Co-founder and lead graphics specialist at Soft8Soft.

    #2374
    David
    Participant

    Hi Mikhail

    Thank you for your answer.
    I forgot to mention that I am using 3ds max, and there is no shading properties for the standard camera.
    So how can i controll the camera sittings in Verge3D. In the documentation I can find some code for the camera, but how can I intergrate it in to the puzzle?

    Regards
    – David

    #2376

    Hi Mikhail

    Thank you for your answer.
    I forgot to mention that I am using 3ds max, and there is no shading properties for the standard camera.
    So how can i controll the camera sittings in Verge3D.

    Hi. Unfortunaly, for 3ds max this options are not awailable at that moment, but we are working on it. I think it will be awailable during this month in one of the next releases.

    Co-founder and lead graphics specialist at Soft8Soft.

    #2395
    David
    Participant

    Hi Mikhail

    I´ll look forward to having the cam shader properties availiable in max. :)

    Regarding the clipping planes. In the documentation I can finde this line of code:

    var camera = new v3d.PerspectiveCamera( 45, width / height, 1, 1000 );
    scene.add( camera );

    How can I implement this code to my scene camera?

    Regards
    – David

    #2425

    Regarding the clipping planes. In the documentation I can finde this line of code:

    var camera = new v3d.PerspectiveCamera( 45, width / height, 1, 1000 );
    scene.add( camera );

    How can I implement this code to my scene camera?

    Hi, you can call the JS code for controlling the clipping planes via the “call JS Function” block (located in the “Misc” panel).
    calling custom JS function from Puzzles

    But you also need to define this function in the code, e.g. by editing the runCode method in the default .js file of your project like this:

    
    function runCode() {
        // add your code here, e.g. console.log('Hello, World!');
    
        app.ExternalInterface.changeCameraFar = function(far) {
            app.camera.far = far;
            app.camera.updateProjectionMatrix();
        }
    }
    
    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead developer at Soft8Soft.

    #2585
    David
    Participant

    Thank you for your help Ivan, it worked out great, and good to know how the “call JS function” works.

    Best regards
    David

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