oops... F@&%^@ mail client deciding J3D means terrain list.....
Just evening out the quota of questions asked v answered :) I'm trying to decide on what is the most efficient architecture for my SVG texture system. For simple static textures, the setup is quite simple - parse an XML doc, throw it through Bartik to create a BufferedImage and then pass that to an appropriate ImageComponent2D. The fun stuff comes when someone decides they want to animate an SVG texture. The conundrum I have to face is how to best manage the interaction of Batik and Java3d for texture animation for best performance. Bartik seems to want to produce a "new" image for each SVG frame render. Essentially it has double-buffer animation system. Each time the frame changes, hand me the "other" BufferedImage. On the receiving end I have ImageComponent2D. I'm going to set this up to use ByRef images. That means I can't alter the content of the current image that is being rendered otherwise Bad Things Happen. Unfortunately Java3D doesn't have a texture equivalent of GeometryUpdater, that would make life so simple! I can set up a brute-force approach that will work using ImageComponent2D.setImage() every time the SVG renderer changes without much thought. My main concern is the performance impact of calling setImage() every frame with a new BI instance. I suspect this is going to impact performance quite a bit - particularly if I'm going to be running animated textures. -- 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".
