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.

Rendering “start” and “end” in a procedure

Home Forums General Questions Rendering “start” and “end” in a procedure

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #38033
    fsguegl
    Customer

    Hi all,

    I have a procedure in which several things happen for the displayed 3d object:

    *some textures are changed
    *the size of the objects is changed
    *some textures are recalculated by converting “string to texture”

    these activities take a few seconds, they are not immediate. And on slower computers, they can take longer than 10 seconds.

    I tried to pause rendering at the beginning of the procedure where
    these changes happen and reactivate it at end . But it does not work.
    I put a “print console” at the end of the procedure to monitor what happens, and the print is done before all changes (on screen) are completed.
    What can I do to prevent the user from interacting until all the changes contained in the procedure are completed?

    thanks franco

    #38255

    Hi,

    you can possibly show some preloader DIV element as overlay which won’t allow the user to click or drag things.

    Chief 3D Verger | LinkedIn | Twitter

    #38485
    fsguegl
    Customer

    Thanks Yuri,

    I have created a DIV that I overlay on with a timer. But time is variable from various pc… and I contrain who as a high performace pc to wait for a max time calculated on low performances pc.

    #38486

    Instead of timer, you might want to detect the exact time when the content is loaded, and only hide the overlay DIV after that.

    Chief 3D Verger | LinkedIn | Twitter

    #57253
    Mariusz
    Customer

    I have quite a similar problem. I need to do some actions (take screenshots) after some other actions take place on the screen which takes a few seconds. The total time depends on the computer. I have to idea how to detect if the previous actions are already finished, so I can start taking screenshots. Any hints on how this detection can be made without a time delay puzzle?

    #57255

    Hi,

    you could probably use a variable which is set to some value after all actions are finally preformed. You could track the value of this variable (check it every 0.5 sec for example) using the every N sec puzzle

    Chief 3D Verger | LinkedIn | Twitter

    #57256
    kdv
    Participant

    *some textures are changed
    *the size of the objects is changed
    *some textures are recalculated by converting “string to texture”

    note that the replace texture puzzle is a function that waits for an image data being loaded before replacing it. so you’d better use “once ready do” slot

    Puzzles and JS coding. 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 the meaning at all.

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