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.

4k screenshots ?

Home Forums Puzzles 4k screenshots ?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #56853
    NaxosCG
    Customer

    Hello,
    Is there anyway to let user to take a 4K screenshot from the 3D scene ?

    I’ve tried “set screen scale” to 3, then use the js script for screenshot (see beloaw), then back to set screen scale to 1, but the png pictures i get are emty.
    When i use just the script without set screen scale, i get nice screenshot picture.

    script i use :
    function runCode(app) {
    // add your code here, e.g. console.log(‘Hello, World!’);
    app.ExternalInterface.downloadScreenshot = function(image) {
    var link = document.createElement(‘a’);
    link.setAttribute(‘download’, ‘myImage.png’);
    link.setAttribute(‘href’, image);
    link.click();
    }
    }

    "1+1=3... for large values of 1"

    #56854
    kdv
    Participant

    You should provide a delay after changing the screen scale.

    https://v3d.net/a4k

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #56857
    NaxosCG
    Customer

    Ok i see, many thanks !
    Also i don’t need the js script anymore, good to know ;-)

    It works well, except that the dynamic shadows are jiggerred, not the meshes. see picture.

    If any setting i can use to make it better…

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

    "1+1=3... for large values of 1"

    #57135

    Hi,

    It works well, except that the dynamic shadows are jiggerred, not the meshes. see picture.

    You can use the get_light_param and set_light_param puzzles to check/change the resolution of the shadow map for a certain light source:
    shadows.png

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

    Co-founder and lead developer at Soft8Soft.

    #57156
    NaxosCG
    Customer

    Many thanks, i’ll give a try.

    "1+1=3... for large values of 1"

    #57188
    NaxosCG
    Customer

    Hello, i can’t use this solution, as i don’t have any light in my scene, only HDR as IBL.
    Any solution in this case ?
    Regards?

    "1+1=3... for large values of 1"

    #57189
    kdv
    Participant

    Seem like you use dynamic AO, right?. In some places it looks not good.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #57190
    NaxosCG
    Customer

    You’re right ! I’ve used AO for this one…
    So is there anyway to change AO params within puzzles ?

    "1+1=3... for large values of 1"

    #57191
    kdv
    Participant

    No. Narrow black AO lines have no AA and look this way. No solution for now except disabling AO.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #57192
    NaxosCG
    Customer

    No. Narrow black AO lines have no AA and look this way. No solution for now except disabling AO.

    Ok, so i’ll give a try to actual lights. I’ve never used them with Verge3D, as at the very beginning it was not very nice in rendering.
    I suppose that nowadays lights are nice and fast.

    "1+1=3... for large values of 1"

    #57193
    kdv
    Participant

    Every light source generating shadows will add additional tris to render. One light source will double them, two light sources will triple them.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #57194
    NaxosCG
    Customer

    Every light source generating shadows will add additional tris to render. One light source will double them, two light sources will triple them.

    Mmmh, good to know, as the objects are quite heavy in this project…

    "1+1=3... for large values of 1"

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