|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
How to get graphics primitives before scene rendering?I've developed an application that creates a set of scenes in J3D and then the app generates a Flash video (*.swf) using the J3D scenes. I grab the scenes as jpeg images from an off screen Canvas3D and that all works fine. EXCEPT for the fact that my Flash video is getting bloated with the numerous amount of jpegs that I include to create the 3d animations. Now to my question...
Since Flash is basically a vector graphics drawing environment it would be nice if I could replace each of my captured images (jpeg) which I get from the Canvas3D off screen buffer with an appropriate set of vector graphics drawing primitives which I could then translate to Flash vector graphics drawing primitives. Hopefully doing this would relieve the large number of bytes needed to build my Flash videos. Does anyone have any idea how I might go about grabbing the precise set of vector graphics drawing primitives to render a scene at any point in time? Given these primitives I could write code to translate them into the appropriate Flash primitives and then eliminate my need to have numerous jpeg images to represent captured 3d scenes. I am open to hacking my own copy of the 3d api source to accomplish this feat if necessary but I am hopeful that there might be a hook somewhere already in the code base that might help me. Any ideas or pointers on how I might pursue this concept? If anyone knows why this cannot be done I'd also be grateful for that feedback! thanks, ...bob... [Message sent by forum member 'rmklein' (rmklein)] http://forums.java.net/jive/thread.jspa?messageID=281472 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?> Since Flash is basically a vector graphics drawing
> environment it would be nice if I could replace each > of my captured images (jpeg) which I get from the > Canvas3D off screen buffer with an appropriate set of > vector graphics drawing primitives which I could then > translate to Flash vector graphics drawing > primitives. ==> Oh boy this is one interesting project ! So you are looking for one "automatic black box algorithm" that would transform one jpeg to a set of Vector graphics ? - Wahou ! This looks hard to me. Impossible ? Not far.... - Perhaps scanning [every 1/10 of seconds] [b]nodes of scene[/b] (BranchGroup s) of your java3D scene might be more ... possible to generate Vector graphics. This would also be interesting. Interesting project anyway, Thierry [Message sent by forum member 'tmilard' (tmilard)] http://forums.java.net/jive/thread.jspa?messageID=281478 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?Actually I am not trying to convert the jpeg to vector graphics. I am trying to catch the J3D rendering pipeline just before it renders my scene onto the canvas and grab the set of actual primitives before it writes to the Canvas3D's graphic context. I would then save those primitives (e.g., drawPolygon, fillPolygon, drawLine, etc) and convert them to the Flash vector graphics to recreate the scene at that point in time. The interaction is controlled by the software so real time constraints are not an issue (i.e., your reference to 1/10 of a second).
...bob... [Message sent by forum member 'rmklein' (rmklein)] http://forums.java.net/jive/thread.jspa?messageID=281479 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?Ok I get it !
Seems in theory possible. I would love to know how you are succeding on this project. Objective is cool. [Message sent by forum member 'tmilard' (tmilard)] http://forums.java.net/jive/thread.jspa?messageID=281482 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?maybe you can take a look at swift3d, some 3d-stuff for flash.
http://www.erain.com/ [Message sent by forum member 'optimusprime1982' (optimusprime1982)] http://forums.java.net/jive/thread.jspa?messageID=281513 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?Thanks, I'll keep the board posted on my progress. The application is already up and running using the technique of capturing still images (i.e., jpegs) of the Java 3d scenes and then recreating the animation in flash with the jpegs. What I'm trying to accomplish with this question is a significant improvement in the efficiency (i.e., reduction of size) in the output flash file. FYI the project is a standalone java application that allows you to create a 3d model of a residential home using Java 3d underneath. The software then allows the user to add text, audio and photo images of the residence to create a fairly interactive virtual tour of the real estate. All of this gets bundled into a nice single flash output file (*.swf) that can be played on any browser or flash video player. As long as these files are small enough they can be e-mailed around to create some pretty sophisticated real estate spam ;--))
...bob... [Message sent by forum member 'rmklein' (rmklein)] http://forums.java.net/jive/thread.jspa?messageID=281636 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?For anyone who might care,
I've concluded that what I hoped to accomplish here is not feasible. I was unable to find any hooks in the man pages for J3D that might help me here. I then spent about a day groveling around in the 1.5.1 source tree looking primarily at the Canvas3D, Renderer and RenderBin classes to see if I might be able to coherently put in some intercept code to help me out but the scene rendering logic is just too spread out in the code base. Since I already have a solution that works (just inefficiently) it doesn't seem reasonable to incur any more brain damage looking for this solution. Of course I could be wrong... thanks to all that responded, ...bob... [Message sent by forum member 'rmklein' (rmklein)] http://forums.java.net/jive/thread.jspa?messageID=283459 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?Hi,
This is hard work, man. You should have : * matching primitives on both sides; * the primitive's transform matrix (full to root scene); * view matrix. To draw it on flash side, multiply above matrixes and apply resulting matrix to transform every single point of shape of your Flash object. This is *very* math intensive and Java3D uses video card to perform it. I don't know how flash handle lights and textures, so I 'll not consider this issues. A. [Message sent by forum member 'aces' (aces)] http://forums.java.net/jive/thread.jspa?messageID=283474 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
|
|
Re: How to get graphics primitives before scene rendering?Also, unless flash has a depth buffer, you have to sort all the triangles back to front before rendering.
[Message sent by forum member 'lamer77' (lamer77)] http://forums.java.net/jive/thread.jspa?messageID=283551 --------------------------------------------------------------------- To unsubscribe, e-mail: interest-unsubscribe@... For additional commands, e-mail: interest-help@... |
| Free Forum Powered by Nabble | Forum Help |