Java库输出到OpenGL(交互式)和SVG(用于打印)

时间:2022-11-20 18:32:12

I'm looking for a Java library that has multiple output backends:

我正在寻找一个具有多个输出后端的Java库:

  • It should support OpenGL for interactive use (to get hardware acceleration)
  • 它应该支持OpenGL以进行交互式使用(以获得硬件加速)

  • It should have SVG export - preferrably using CSS for that, to allow editing in e.g. inkscape - for a good print quality
  • 它应该有SVG导出 - 最好使用CSS,以允许编辑例如inkscape - 打印质量好

  • It must be cross-platform (Linux/Win/OSX)
  • 它必须是跨平台的(Linux / Win / OSX)

Right now, I'm mostly using Apache Batik. It's quite nice: I can have listeners, use stylesheets, and export to various formats, including editable SVG. And I need to be able to fine-tune the graphics for printing. However, for some of my use cases it just gets too slow. The SVG XML DOM comes at a lot of overhead; it spends a lof of time checking CSS classes, checking for listeners, etc. - I need something faster.

现在,我主要使用Apache Batik。它非常好:我可以拥有监听器,使用样式表,并导出为各种格式,包括可编辑的SVG。我需要能够微调图形以进行打印。但是,对于我的一些用例,它只是太慢了。 SVG XML DOM带来了很多开销;它花了很多时间检查CSS类,检查听众等等 - 我需要更快的东西。

I've been interested in Cairo, however it seems as if the GTK3-Cario + java-gnome toolchain is not available for Win32 yet.

我一直对Cairo感兴趣,但似乎GTK3-Cario + java-gnome工具链还没有用于Win32。

Clutter is also promising, but it doesn't seem as if there are Java bindings, unfortunately. It uses OpenGL for 3D and Cairo for 2D afaict.

Clutter也很有希望,但不幸的是,似乎没有Java绑定。它使用OpenGL for 3D和Cairo for 2D afaict。

Do you know a library for interactive graphics with OpenGL that can alternatively export to editable SVG files?

您是否知道使用OpenGL的交互式图形库,可以导出到可编辑的SVG文件?

1 个解决方案

#1


0  

Maybe you should consider QT-Jambi; (https://github.com/qtjambi/qtjambi). It's accelerated and supported on most platforms, including mobile.

也许你应该考虑QT-Jambi; (https://github.com/qtjambi/qtjambi)。它在包括移动设备在内的大多数平台上得到加速和支持。

#1


0  

Maybe you should consider QT-Jambi; (https://github.com/qtjambi/qtjambi). It's accelerated and supported on most platforms, including mobile.

也许你应该考虑QT-Jambi; (https://github.com/qtjambi/qtjambi)。它在包括移动设备在内的大多数平台上得到加速和支持。