Excuse me while I vent a moment please.... Batik is a PoS.
There, I feel better now :) Anyway, I've come across multiple insurmountable problems with using the Batik library as a texture generator. Firstly, an most importantly, it won't work with any user generated DOM. The DOM must be generated by their internal document loader. It won't even run with the standard JAXP parser that comes with JDK1.4FCS, let alone our custom DOM builder that is used by Xj3D. I started the process of trying to get some of the code to be modified so that it would work with any old DOM, but there are sooo many assumptions about using their internal interfaces and implementations which completely screws the use of anything else. Basically, after spending a day trying to modify the code to get it to work, I've given up. If someone wants us to do SVG textures using Batik, you'll have to pay me to do it.... :( On top of this, the architecture of the library is no conducive to building real-world applications. The way they've structured the code is to basically assume you are going to use one of their very highlevel structures, such as a swing canvas (SVGCanvas). Within this there are so many levels of threading and caahcing that is would be a nightmare trying to use it in a 3D graphics environment. Anyway, SVG Textures, and consequently implementing Text nodes in Xj3D are now put on the backburner for a very long time unless someone can come up with an alternative SVG library implementation. I really don't feel like starting yet another project and implementing my own renderer. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
