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.

chrisiwien

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • chrisiwien
    Customer

    Ok thx, i will try that out.

    chrisiwien
    Customer

    Dear Alexander,

    ok, understood. I will try a workaround for this issue.

    chrisiwien
    Customer

    Hey Yuri!

    I think this is not possible. With “fade annotations” active, the class name “v3d-annotation” is inserted at startup into the annotation div AND overwrite my startup class name “fadeOutPOI”. Strange is, that every attempt to change this class name later is not possible. Why?

    I guess you are using the Javascript function element.setAttribute() for assigning the class “v3d-annotation” – which delete other class names. You should rather use element.classList.add() (pleeeease provide Puzzles elements “classList add” and “classList remove” for this), so custom classes can coexist with the “v3d-annotation” class.

    The main problem:

    • MOST IMPORTANT: I have to check if an object is behind an another object. With that function I could disable fade annotations and code the “if behind object fade out and disable click” function myself.
    • But, in Verge3D only annotations offer this functionality.
    • Is this only a build-in function or is the “check-behind-object” function accessible via the API?
    • If this is not possible via Puzzles or the API I HAVE TO use the build-in annotations (because of the “check-behind-object” function).
    • But the build-in annotation function overwrite my custom class name.

    I want to use a smooth css fade animation to show annotations rather than just pop-in annotations. This can be only accomplished via switching class names, since such an animation needs a class with keyframes (one class for fading in, another for fading out).

    So what can I do?

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

    Hey Yuri!

    I think this is not possible. With “fade annotations” active, the class name “v3d-annotation” is inserted at startup into the annotation div AND overwrite my startup class name “fadeOutPOI”. Strange is, that every attempt to change this class name later is not possible. Why?

    I guess you are using the Javascript function element.setAttribute() for assigning the class “v3d-annotation” – which delete other class names. You should rather use element.classList.add() (pleeeease provide Puzzles elements “classList add” and “classList remove” for this), so custom classes can coexist with the “v3d-annotation” class.

    The main problem:

    • MOST IMPORTANT: I have to check if an object is behind an another object (and gets hidden). With that function I could disable fade annotations and code the “if behind object fade out and disable click” function myself.
    • But, in Verge3D only annotations offer this functionality.
    • Is this only a build-in function or is the “check-behind-object” function accessible via the API?
    • If this is not possible via Puzzles or the API I HAVE TO use the build-in annotations (because of the “check-behind-object” function).
    • But the build-in annotation function overwrite my custom class name.

    I want to use a smooth css fade animation to show annotations rather than just pop-in annotations. This can be only accomplished via switching class names, since such an animation needs a class with keyframes (one class for fading in, another for fading out).

    So what can I do to solve this problem?

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

    Hey Yuri!

    Basically your recommendation works. But for my solutions unfortunately it is not so easy.

    Disable fadeAnnotations:

    I assigned the annotations within puzzles and added an click event with a fadeIn CSS class to another annotation “poi_4_1”, which fades in smoothly if zoomed in via the “parent” annotation “poi_4”.

    Enable fadeAnnotations:

    The puzzles “set attr className” doesn’t longer work, the class for “poi_4_1” is overwritten with the class “v3d-annotation”.

    What is the solution for that? I want a smooth annotation fade, but the annotations should be also faded out if behind an object. Then, with the variable “annotation.obscured” as you proposed I could disable the click event.

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

    Dear Yuri!

    Thx for the answer, I will try that.

    in reply to: Caching of verge3d app files #32784
    chrisiwien
    Customer

    Ok, thanks for your answer. I was just wondering why every time the preloader appears. All elements of the app are stored in the cache as you said. So the preloader shows the time for setup of the 3D scene. Ok.

    in reply to: Caching of verge3d app files #32772
    chrisiwien
    Customer

    Hey Yuri!

    Thx for your answer. Ah, ok, I’ve discovered via browser network inspector that the scene files are all in the browser cache.

    The point ist: On each page visit the app loads every time completely new.

    Is there any way to store also the scene in the browser cache or is it necessary to create the 3D scene every time a user visits the page?

    I guess no, this isn’t yet implemented in browser technologies, right?

    Regards

    Christoph

    in reply to: Progressive loading #31296
    chrisiwien
    Customer

    Hey Yuri!

    Thank you, I will check that out.

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