openjfx-discuss Digest, Vol 3, Issue 5
Giuseppe Barbieri
elect86 at gmail.com
Sat Dec 22 22:41:10 UTC 2018
Is there a way?
>
> I think you need to tell the system that the nodes content is dirty, not?
>
> Tom
>
> On 20.12.18 12:52, Giuseppe Barbieri wrote:
> > It seems it doesnt work, I keep getting updates only when I enter/exit
> the
> > button on top: https://i.imgur.com/aV9NGqi.png
> >
> > To better clarify: I'd like an animation that would call
> > `ViewPainter.doPaint()` every pulse
> >
> > Any idea how I may achieve this?
> >
> > PS: in case you may want to try it personally, projects are available at:
> > - https://github.com/elect86/openjdk-jfx.git
> > - https://github.com/jvm-graphics-labs/HelloFX.git (hello gears.kt)
> >
> > Il giorno mer 19 dic 2018 alle ore 13:43 Zsolt K?ti <la.tinca at gmail.com>
> ha
> > scritto:
> >
> >> Create animation by extending AnimationTimer and call its start() method
> >> to begin animation.
> >>
> >> On Wed, Dec 19, 2018 at 11:18 AM Giuseppe Barbieri <elect86 at gmail.com>
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> I'm injecting external rendering code and I'd like to know how I may
> force
> >>> animation without having to declare some dummy objects, such as a
> Circle
> >>> combined with a TranslateTransition
> >>>
> >>> I tried to modify the `QuantumToolkit.postPulse()` to force calling
> >>>
> >>> Application.invokeLater(pulseRunnable);
> >>>
> >>>
> >>> but for some reasons it doesnt work
> >>>
> >>>
> >>> Thanks in advance,
> >>> Giuseppe
> >>>
> >>
>
> --
> Tom Schindl, CTO
> BestSolution.at EDV Systemhaus GmbH
> Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
> Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 20 Dec 2018 13:53:59 +0100
> From: Giuseppe Barbieri <elect86 at gmail.com>
> To: openjfx-discuss at openjdk.java.net
> Subject: Re: How to force animation
> Message-ID:
> <
> CAOTtYn4cAGNgvDkWX413QdGMGeD74EosrvdiyvCuQnaRgcw-6w at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> I guess I made it, I bypassed the `if(dirty)` in `Scene.pulse()`. Together
> with the AnimationTimer seems working great
>
> Now I need to figure it out why the depth test appears to be disabled
> althought I explicitely call
>
> glEnable(GL_DEPTH_TEST)
>
> Before my gears rendering..
>
>
> Il giorno gio 20 dic 2018 alle ore 12:52 Giuseppe Barbieri <
> elect86 at gmail.com> ha scritto:
>
> > It seems it doesnt work, I keep getting updates only when I enter/exit
> the
> > button on top: https://i.imgur.com/aV9NGqi.png
> >
> > To better clarify: I'd like an animation that would call
> > `ViewPainter.doPaint()` every pulse
> >
> > Any idea how I may achieve this?
> >
> > PS: in case you may want to try it personally, projects are available at:
> > - https://github.com/elect86/openjdk-jfx.git
> > - https://github.com/jvm-graphics-labs/HelloFX.git (hello gears.kt)
> >
> > Il giorno mer 19 dic 2018 alle ore 13:43 Zsolt K?ti <la.tinca at gmail.com>
> > ha scritto:
> >
> >> Create animation by extending AnimationTimer and call its start() method
> >> to begin animation.
> >>
> >> On Wed, Dec 19, 2018 at 11:18 AM Giuseppe Barbieri <elect86 at gmail.com>
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> I'm injecting external rendering code and I'd like to know how I may
> >>> force
> >>> animation without having to declare some dummy objects, such as a
> Circle
> >>> combined with a TranslateTransition
> >>>
> >>> I tried to modify the `QuantumToolkit.postPulse()` to force calling
> >>>
> >>> Application.invokeLater(pulseRunnable);
> >>>
> >>>
> >>> but for some reasons it doesnt work
> >>>
> >>>
> >>> Thanks in advance,
> >>> Giuseppe
> >>>
> >>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 20 Dec 2018 14:09:23 +0100
> From: Giuseppe Barbieri <elect86 at gmail.com>
> To: openjfx-discuss at openjdk.java.net
> Subject: Re: How to force animation
> Message-ID:
> <
> CAOTtYn785H5ZsnqSr_i3+AWci8c3SH9NFBwwP3VG_vsmxkNuSQ at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> Using *glGetFramebufferAttachmentParameteri* it looks like there is no
> depth attachment on the bound framebuffer, that's why..
>
> Also, it's upside down
>
> Il giorno gio 20 dic 2018 alle ore 13:53 Giuseppe Barbieri <
> elect86 at gmail.com> ha scritto:
>
> > I guess I made it, I bypassed the `if(dirty)` in `Scene.pulse()`.
> Together
> > with the AnimationTimer seems working great
> >
> > Now I need to figure it out why the depth test appears to be disabled
> > althought I explicitely call
> >
> > glEnable(GL_DEPTH_TEST)
> >
> > Before my gears rendering..
> >
> >
> > Il giorno gio 20 dic 2018 alle ore 12:52 Giuseppe Barbieri <
> > elect86 at gmail.com> ha scritto:
> >
> >> It seems it doesnt work, I keep getting updates only when I enter/exit
> >> the button on top: https://i.imgur.com/aV9NGqi.png
> >>
> >> To better clarify: I'd like an animation that would call
> >> `ViewPainter.doPaint()` every pulse
> >>
> >> Any idea how I may achieve this?
> >>
> >> PS: in case you may want to try it personally, projects are available
> at:
> >> - https://github.com/elect86/openjdk-jfx.git
> >> - https://github.com/jvm-graphics-labs/HelloFX.git (hello gears.kt)
> >>
> >> Il giorno mer 19 dic 2018 alle ore 13:43 Zsolt K?ti <la.tinca at gmail.com
> >
> >> ha scritto:
> >>
> >>> Create animation by extending AnimationTimer and call its start()
> method
> >>> to begin animation.
> >>>
> >>> On Wed, Dec 19, 2018 at 11:18 AM Giuseppe Barbieri <elect86 at gmail.com>
> >>> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> I'm injecting external rendering code and I'd like to know how I may
> >>>> force
> >>>> animation without having to declare some dummy objects, such as a
> Circle
> >>>> combined with a TranslateTransition
> >>>>
> >>>> I tried to modify the `QuantumToolkit.postPulse()` to force calling
> >>>>
> >>>> Application.invokeLater(pulseRunnable);
> >>>>
> >>>>
> >>>> but for some reasons it doesnt work
> >>>>
> >>>>
> >>>> Thanks in advance,
> >>>> Giuseppe
> >>>>
> >>>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 20 Dec 2018 14:13:23 +0100
> From: Tom Schindl <tom.schindl at bestsolution.at>
> To: openjfx-discuss at openjdk.java.net
> Subject: Re: How to force animation
> Message-ID: <a1588e73-c835-6c5d-1aad-59e703082227 at bestsolution.at>
> Content-Type: text/plain; charset=utf-8
>
> On 20.12.18 14:09, Giuseppe Barbieri wrote:
> > Using *glGetFramebufferAttachmentParameteri* it looks like there is no
> > depth attachment on the bound framebuffer, that's why..
> >
> > Also, it's upside down
>
> Right this is what we found out as well when implementing DriftFX - FX
> uses a flipped coordinate system.
>
> Tom
>
> --
> Tom Schindl, CTO
> BestSolution.at EDV Systemhaus GmbH
> Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
> Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
>
>
> End of openjfx-discuss Digest, Vol 3, Issue 5
> *********************************************
>
More information about the openjfx-discuss
mailing list