<DIV><BR><BR>----- Original Message -----<BR>From: Don Brutzman <brutzman@nps.edu><BR>Date: Tuesday, December 14, 2010 11:47 am<BR>Subject: Re: [X3D-Public] Blender Export to X3D<BR>To: JOHN COADY <johncoady@shaw.ca><BR>Cc: x3d-public@web3d.org, SAVAGE <SAVAGE@nps.edu>, Benjamin Anderson <bsa.drums@gmail.com>, "Coreixas de Moraes, Claudio FORNATL, BR" <ccoreixa@nps.edu><BR><BR>> On 12/12/2010 1:27 PM, JOHN COADY wrote:<BR>> > Hi<BR>> > Thanks for the link on how you used blender, it would be nice <BR>> if you didn't need to edit the X3D file generated by blender to <BR>> get a correct result.<BR>> <BR>> i agree that is the goal.  i think that if we continue to<BR>> report issues with Blender along with test examples that<BR>> demonstrate the issue, they will continue to apply fixes.<BR>> so this is a very positive situation.<BR>> </DIV>
<DIV>So far they have fixed a couple of bugs that I reported by the next day.</DIV>
<DIV><BR>> >  One of the things I tried was to first export to a <BR>> collada file from Blender, and then Import the collada into X3D-<BR>> Edit and then have X3D-Edit convert it to X3D. Then compare that <BR>> result with what Blender produced with its Export to X3D method. <BR>> In a couple of test blender scenes that I tried the results were <BR>> different. I used blender scenes from the new book "Blender <BR>> Foundations" which uses the new blender user interface found in <BR>> Blender version 2.5 . The blender scenes in this book don't work <BR>> with the older versions of blender.<BR>> <BR>> Very interesting.  Are these collada files available <BR>> online, and available publicly?<BR>> </DIV>
<DIV> </DIV>
<DIV>Blender has a site called the blender model repository, </DIV>
<DIV> </DIV>
<DIV><A href="http://e2-productions.com/repository/index.php">http://e2-productions.com/repository/index.php</A></DIV>
<DIV> </DIV>
<DIV>I used some of the models in this repository to test out Export to X3D and to submit some bug reports. Blender also has an Export to Collada in release 2.5.5 so you can generate a collada file from the blender model as well.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>> Perhaps we should build and publish a small conversion archive.<BR>> <BR>> > However, some of these blender scenes can be quite large, a <BR>> few meg in size when converted to collada, and X3D-Edit <BR>> complains that they are too big.<BR>> <BR>> Netbeans (and thus X3D-Edit) has a problem with files larger <BR>> than 1-2 MB.<BR>> We are hoping that this gets fixed eventually.<BR>> <BR>>   Also, X3D-Edit was not able to convert this Collada file <BR>> to X3D which was taken from chapter 9 in the book and Exported <BR>> from Blender.<BR>> > http://dl.dropbox.com/u/5095342/Models/demo_scene_chapter_09.dae<BR>> <BR>> > Do you know why X3D-Edit can't convert this scene to X3D.<BR>> <BR>> file size (in Netbeans/X3D-Edit) looks to be the culprit<BR>> <BR>> >  This 2 step conversion process, first to Collada and <BR>> then to X3D is one way to test, correct and compare the results <BR>> from what the Export to X3D function provides in blender.<BR>> <BR>> another way to do this would be to directly invoke Xj3D converter.bat<BR>> or converter.sh script from command line<BR>> <BR>> i have previously had some problems with path handling in this <BR>> script, you<BR>> might have to work in local directory.  sorry but i can't <BR>> test that further<BR>> due to some other issues on my machine.<BR>> <BR>> </DIV>
<DIV>I didn't realize that you could convert from collada to X3D from the converter.bat file. I tried it on one of the files but it didn't work because it said that the material shininess value was above 1.0 and stopped the conversion.</DIV>
<DIV> </DIV>
<DIV>Here is a picture similar to blender model that I tried to convert.</DIV>
<DIV> </DIV>
<DIV><A href="http://www.flickr.com/photos/harkyman/4661316900/in/set-72157624059523153/">http://www.flickr.com/photos/harkyman/4661316900/in/set-72157624059523153/</A></DIV>
<DIV> </DIV>
<DIV>and here is the result I have so far after performing an Export to X3D from the a recent version of Blender with some editing of the X3D file.</DIV>
<DIV> </DIV>
<DIV><A href="http://dl.dropbox.com/u/5095342/Models/demo_scene_chapter_09B.x3d">http://dl.dropbox.com/u/5095342/Models/demo_scene_chapter_09B.x3d</A></DIV>
<DIV> </DIV>
<DIV>This was taken from the book "Blender Foundations" which also has some sample blend files for each of the chapters in the book available here.</DIV>
<DIV> </DIV>
<DIV><A href="http://www.blenderfoundations.com/index.php">http://www.blenderfoundations.com/index.php</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>> > ----- Original Message -----<BR>> > From: Don Brutzman <brutzman@nps.edu><BR>> > Date: Sunday, December 12, 2010 4:00 am<BR>> > Subject: Re: [X3D-Public] Blender Export to X3D<BR>> > To: x3d-public@web3d.org<BR>> > Cc: SAVAGE <SAVAGE@nps.edu>, Benjamin Anderson <BR>> <bsa.drums@gmail.com>, Claudio Coreixas de Moraes <BR>> <ccoreixa@nps.edu>><BR>> >  > Hi John. I used Blender and found some bugs too.<BR>> >  > Like you,<BR>> >  > they were fixed immediately. Very impressive.<BR>> >  ><BR>> >  > The page describing how we used Blender is at<BR>> >  > https://savage.nps.edu/X3D-Edit/BlenderExportToX3d.html<BR>> >  ><BR>> >  > If you see anything on that page which needs to get <BR>> fixed, please<BR>> >  > let me know. Thanks for the good news regarding their <BR>> continued>  > support for X3D.<BR>> >  ><BR>> >  > > On 12/12/2010 3:42 AM, JOHN COADY wrote:<BR>> >  > >> I installed Blender the other day and tried <BR>> exporting a<BR>> >  > blender scene to X3D and there were a lot of obvious <BR>> errors in<BR>> >  > the resulting X3D scene (The objects were not positioned<BR>> >  > properly in the X3D scene). So I submitted a bug <BR>> report and they<BR>> >  > fixed the problem I reported the next day. I am a new <BR>> user to<BR>> >  > Blender and if the Export to X3D functionality had a <BR>> basic bug<BR>> >  > such as positioning objects correctly, I'm sure that <BR>> there are<BR>> >  > other problems with the Export to X3D. Does anyone <BR>> have any<BR>> >  > ideas on how to test this properly. Blender seems to <BR>> have a lot<BR>> >  > of configurable options to play with, and if X3D has some<BR>> >  > equivalent functionality then it would be nice to know <BR>> when you<BR>> >  > Export to X3D that the X3D nodes get used properly.<BR>> >  > >><BR>> >  > >> In the latest Beta release of Blender, they completely<BR>> >  > changed the user interface to make it more user <BR>> friendly. They<BR>> >  > seem to be working hard to get the next major release <BR>> out and<BR>> >  > that is why the bug that I reported got fixed right <BR>> away. It<BR>> >  > would be nice to fix as many problems with Export to <BR>> X3D before<BR>> >  > the next major release if anyone has any ideas on how <BR>> to test it<BR>> >  > properly.<BR>> >  > all the best, Don<BR>> >  > --<BR>> >  > Don Brutzman Naval Postgraduate School, Code<BR>> >  > USW/Br brutzman@nps.edu<BR>> >  > Watkins 270 MOVES Institute, Monterey CA 93943-5000<BR>> >  > USA +1.831.656.2149<BR>> >  > X3D, virtual worlds, underwater robots<BR>> >  > http://faculty.nps.edu/brutzman<BR>> >  ><BR>> >  > _______________________________________________<BR>> >  > X3D-Public mailing list<BR>> >  > X3D-Public@web3d.org<BR>> >  > http://web3d.org/mailman/listinfo/x3d-public_web3d.org<BR>> >  ><BR>> <BR>> <BR>> <BR>> all the best, Don<BR>> -- <BR>> Don Brutzman  Naval Postgraduate School, Code <BR>> USW/Br      brutzman@nps.edu<BR>> Watkins 270   MOVES Institute, Monterey CA 93943-5000 <BR>> USA  +1.831.656.2149<BR>> X3D, virtual worlds, underwater robots     <BR>> http://faculty.nps.edu/brutzman<BR>> </DIV>