I know there is 1 viewer available JT2Go but i want to create 1 for my own, as JT2GO is not open source. 35a7 7 0 1 1 1. 9 2 2 2h16a2 2 0 0 0 2-2v-4. 44A2 computer graphics programming in opengl with java pdf 0 0 0 15.
68A1 1 0 0 1 5. 12a1 1 0 0 1 . M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm. 69a4 4 0 0 0-. 29 0 0 1 1. 34 0 0 0 .
8 0 0 0 2. 07A8 8 0 0 0 8. 8 0 0 1 0-3. 83a8 8 0 0 0 0 7. 3A8 8 0 0 0 1. 77 0 0 1 4.
My requirement is not so high and i don’t require features which JT2GO has, I just want to render the 3D file, no layering or selecting of individual components is required. Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. Did you ever figure out how to extract triangle and material information out of the JT file? If so, would you mind sharing how you accomplished this?
I’m trying to do the same sort of thing but am having trouble figuring out how to get the data out of the JT file. Parry, Did you finally succeed in developing the Viewer? Use comments to ask for more information or suggest improvements. Avoid answering questions in comments. The spec looks big but straight forward to implement.
I think it should be possible to access elements of the file without keeping the whole datastructure in memory. When programming the viewer part, don’t use OpenGL directly, but use a scene graph library. I am confused on that part i want to know how will i show the thing once i read from JT on screen? As far as I can see, it should support JT version 8 files.
I used the DXF import library and was quite happy. The API is the same, so you have access to all triangles with their coordinates, normals, color and layer. It is also possible to use the Open Cascade library. Jt assistant can also visualize the JT documents. Also know by the unfortunate abbreviation ASSIMP. They already have a viewer, so once you add the format to the import library you’ll be done. In addition you will have added support for another format to an existing open source library.
How exactly a viewer works and what in 3D graphics area it is referred as? To view the files once you load them, you basically need to implement OpenGL in your program. So once you pull this information out, you just render it using standard OpenGL calls. This array of floats represents all the faces of your model. Three vertices per face, with the above line being one vertex. Once you have a float array, it’s simple to render. Then just put this in your OpenGL-ES 1.
Let me know if this does it for you. Also, please share how to read the JT file format if you have it working. Not the answer you’re looking for? What’s the 3D structurally simplest file format? Is there a way to control distortion in Matlab’s 3D viewer?