• Curious about the use of JOGL

    By CN=Nathan T Freeman/O=NotesOSS 5 years ago

    From what I can tell in the actual UI, there's no compelling reason to use JOGL here, as all of the image transforms are in 2D space. So I'm wondering why the author made that particular choice, and whether it would be more effective to use SWT's native image handling instead?

    • Need to investigate. Here are the reasons why I used JOGL...

      By Hiroyuki Okamoto 5 years ago

      Nathan, Thank you for your request.

      I think we need to investigate if it is possible or not.



      The reasons I used JOGL are:

      1) low cpu usage (as it is hardware accelerated)

      2) allows to add more UI effects for the future, such as other motions, camera position, light, blur, shadow, animated background so on.

      3) These days it is popular to use DirectX or OpenGL to create this kind of UI effect. For example, Apple's Cover Flow or Windows' Flip 3D does not work/show without DirectX or OpenGL.



      One thing we may want to do is creating SWT emulation version of OpenGL. Or, creating SWT version of 3D library like Java3D or Papervision3D. We may need a better UI layer to do this kind of thing.

      • Well, I ask because...

        By Nathan T Freeman/NotesOSS 5 years ago

        JOGL is platform-specific, isn't it? SWT is already designed to be cross-platform without any additional

        libraries.



        When we did the Carousel plugin in 2008, it relied purely on SWT, so it worked immediately on the Mac

        and Linux platform. (Though Linux native handling of animation was terrible, so maybe JOGL is a better

        choice there.)



        I'm trying to get permission to open the Carousel source code. If I can get it, I'll just send you the

        (admittedly primitive) code and you can decide whether to use it in the thumbnail viewer. Regardless of

        the rendering technology, it includes ways to bind the source images to documents in a view, and can

        retrieve them from file attachments and URLs. So perhaps the History Viewer could just become a

        generalized Viewer.

        • Thank you!

          By Hiroyuki Okamoto 5 years ago

          > I'm trying to get permission to open the Carousel source code. If I can get it, I'll just send you the

          (admittedly primitive) code and you can decide whether to use it in the thumbnail viewer.



          That sounds great. Im looking forward to seeing your Carousel source code. Thank you!



          Hiro