Hi,
Would anybody know of a library that allows be to render a webpage (and possibly interact with it) on an OpenGL quad (either jogl or lwjgl ?)
Alex
Hi,
Would anybody know of a library that allows be to render a webpage (and possibly interact with it) on an OpenGL quad (either jogl or lwjgl ?)
Alex
i am looking for a html-renderer myself! (also non-java libraries)
that would be wicked!
https://xhtmlrenderer.dev.java.net/
http://html.xamjwg.org/java-browser.jsp
To get good results, I think both need webpages which are optimized for the renderers. Regarding the interaction, I am afraid you’ll need to do some picking and coordinate calculation and pass the needed translated Events yourself.
xhtmlrenderer looks pretty good. And warrior (that xamjwg thing) looks pretty poor in comparison… it actually looks worse then JEditorPane.
xamjwg looks more complete than xhtmlrenderer to me. Note that Cobra can almost completely render amazon.com. xhtmlrenderer (at least the web start demo) throws exceptions and fails to load the page.
The layout engine used in Mozilla and Firefox is called Gecko and is open source. As an alternative you could parhaps wrap this layout engine in some JNI and use it to render to a texture you could bind in JOGL?
If that is too big a undertaking you could take a look at http://jrex.mozdev.org/ which I believe is a project to do just that. Only thing is, last update was 2 years ago so I don’t know how useful it is.