Thread: Re: [Plib-users] DXF loader
Brought to you by:
sjbaker
From: saul l. <le...@en...> - 2001-12-26 16:38:07
|
I put one of my models under http://michelangelo.mae.okstate.edu/tmp/ in dxf and blender formats, see if you can access that site. The problem is that some (x,y,z) coodinates are not loaded properly, for example that model is a sword, but the blade of the sword is high up in the Z coodinate, and the bottom of the sword is down the negative Y coodinate, etc. The same happens in my castle model. And the models look just fine in blender, in every possible view. Saul -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup 1 cent a minute calls anywhere in the U.S.! http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com |
From: saul l. <le...@en...> - 2001-12-26 17:33:50
|
OK, so there might be some problem with the blender DXF exporter. I'll contact them about this. Thanks a lot guys! btw, PLIB is great, easy to use and very useful! Saul -----Original Message----- From: "Norman Vine" <nh...@ca...> Date: Wed, 26 Dec 2001 12:13:27 -0500 To: <pli...@li...> Subject: RE: [Plib-users] DXF loader > saul leite writes: > > > >I put one of my models under > >http://michelangelo.mae.okstate.edu/tmp/ in dxf and blender > >formats, see if you can access that site. > > > >The problem is that some (x,y,z) coodinates are not loaded > >properly, for example that model is a sword, but the blade of > >the sword is high up in the Z coodinate, and the bottom of the > >sword is down the negative Y coodinate, etc. The same happens > >in my castle model. And the models look just fine in blender, > >in every possible view. > > This is what the DXF file contains ! > > At least in every DXF reader I tried. > > Looks like a problem in your translation from blender > > Sorry I know next to nothing about the blender file format > > Cheers > > Norman > > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup 1 cent a minute calls anywhere in the U.S.! http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com |
From: saul l. <le...@en...> - 2001-12-26 21:08:47
|
I found this blender decoder too http://scrypt.net/~celer/dnadecoder/ maybe it is possible to convert blender to native ssg. But for now I will use one of those python scripts to export to ac3 or obj, and then use PLIB to inport them into my programs. http://www-users.cs.umn.edu/~mein/blender/converters.html Thanks a lot for all the help Saul -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup 1 cent a minute calls anywhere in the U.S.! http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com |
From: Norman V. <nh...@ca...> - 2001-12-26 17:10:03
|
saul leite writes: > >I put one of my models under >http://michelangelo.mae.okstate.edu/tmp/ in dxf and blender >formats, see if you can access that site. > >The problem is that some (x,y,z) coodinates are not loaded >properly, for example that model is a sword, but the blade of >the sword is high up in the Z coodinate, and the bottom of the >sword is down the negative Y coodinate, etc. The same happens >in my castle model. And the models look just fine in blender, >in every possible view. This is what the DXF file contains ! At least in every DXF reader I tried. Looks like a problem in your translation from blender Sorry I know next to nothing about the blender file format Cheers Norman |
From: Wolfram K. <w_...@rz...> - 2001-12-26 17:39:25
|
Like Norman wrote, that model is obviously broken.=20 It looks broken in 3D Exploration as well.=20 You should try to output VRML (or iv?). Bye bye, Wolfram. |
From: Martin O. <mo...@ad...> - 2001-12-26 18:20:43
|
Blender can export to DXF and VRML. But both exporting functions are broken from the begining. It's a pity. Blender is really a good modelling tool, but I had to abandon it some time before due to this defect. May be Blender developers could think on a port to plib, which already support a lot of file formats. |
From: Norman V. <nh...@ca...> - 2001-12-26 19:46:15
|
Again I don't have blender but after looking at http://www.blender.nl/python/Download/ivexport.py I would think a 'blender' user could use the above to export to PLib ala .flt format or for that mater use it as a 'template' to export to almost any desired format. Cheers Norman |
From: Steve B. <sjb...@ai...> - 2001-12-26 22:03:37
|
saul leite wrote: > > I put one of my models under http://michelangelo.mae.okstate.edu/tmp/ in dxf and blender > formats, see if you can access that site. The problem appears to be with 'ssgTransform' nodes (transformation matrices embedded in the scene graph). Our loader *is* creating ssgTransform's at the appropriate points - but the numbers in those matrices don't seem to be the ones you need. As others have pointed out, it doesn't appear as if that's our fault. Clearly the coordinates of the handle of the sword are rotated through 90 degrees - but there are no rotation nodes in the DXF file. If there is a way to tell Blender to 'flatten' the heirarchy (multiplying out the matrices to that all the model's vertices are in the same frame of reference) - then perhaps you'd be able to work around it's problems. One problem that *is* a fault with our DXF reader is that when it reads the name of a node, it includes the line-feed from the file in the name it passes to SSG. Hence, instead of the name field being 'CUBE', it comes out as 'CUBE^J' in PPE. ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |