Forum Replies Created
-
AuthorPosts
-
2020-10-22 at 4:47 pm in reply to: Check if annotation has faded out/override click behaviour of annotions #34506chrisiwienCustomer
Ok thx, i will try that out.
2020-10-01 at 7:29 am in reply to: Check if annotation has faded out/override click behaviour of annotions #33659chrisiwienCustomerDear Alexander,
ok, understood. I will try a workaround for this issue.
2020-09-25 at 12:22 pm in reply to: Check if annotation has faded out/override click behaviour of annotions #33361chrisiwienCustomerHey 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.2020-09-25 at 12:16 pm in reply to: Check if annotation has faded out/override click behaviour of annotions #33352chrisiwienCustomerHey 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.2020-09-24 at 2:43 pm in reply to: Check if annotation has faded out/override click behaviour of annotions #33279chrisiwienCustomerHey 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.2020-09-21 at 7:02 pm in reply to: Check if annotation has faded out/override click behaviour of annotions #33119chrisiwienCustomerDear Yuri!
Thx for the answer, I will try that.
chrisiwienCustomerOk, 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.
chrisiwienCustomerHey 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
chrisiwienCustomerHey Yuri!
Thank you, I will check that out.
-
AuthorPosts