|
Sweet Home 3D Forum » List all forums » » Forum: 3D problems » » » Thread: Problem with DAE model |
|
| Print at Dec 18, 2025, 11:24:48 PM | |
| Posted by kbios at Sep 11, 2011, 8:45:38 PM |
|
Problem with DAE model Hi, the following is with sweethome3d 3.3 on ubuntu lucid 32 bit, java 1.6.0_26. I'm trying to use the door at http://sketchup.google.com/3dwarehouse/detail...4ccf1ce0968dae64bdf69b2ca in my project. If I import it through the import furniture wizard, everything works fine, but I do not get the "occupation arch" in the 2d view (as expected). So instead I added it to Furniture.jar, setting the parameters as follows: name#66=Open wood door category#66=Doors and windows icon#66=/com/eteks/sweethome3d/io/resources/openwooddoor.png model#66=/com/eteks/sweethome3d/io/resources/openwooddoor/models/openwooddoor.dae width#66=91.5 depth#66=68 height#66=208.5 movable#66=false doorOrWindow#66=true doorOrWindowWallThickness#66=7.5 doorOrWindowWallDistance#66=1 doorOrWindowSashXAxis#66=5 doorOrWindowSashYAxis#66=8.5 doorOrWindowSashWidth#66=81.5 doorOrWindowSashStartAngle#66=0 doorOrWindowSashEndAngle#66=-90 This way I can import the model as if it was a default one and everything works as expected (including the occupation arch and photo rendering). BUT, if I save the project, exit from sweethome3d and reopen it, the door loses its texture (it is all white), both in the 3d view and in the photo rendering, and the only thing I can do to get it back is to delete it and add it again. Any help? Thanks |
| Posted by Puybaret at Sep 11, 2011, 11:40:47 PM |
|
Re: Problem with DAE model Where did you store the texture image files of the DAE file in Furniture.jar? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by kbios at Sep 12, 2011, 2:39:00 AM |
|
Re: Problem with DAE model I left them under /com/eteks/sweethome3d/io/resources/openwooddoor/images/. There is a file called textures.txt with the following content in /com/eteks/sweethome3d/io/resources/openwooddoor/: <../images/texture0.jpg> <../images/texture0.jpg> <../images/texture1.jpg> <../images/texture1.jpg> |
| Posted by Puybaret at Sep 12, 2011, 9:08:38 AM |
|
Re: Problem with DAE model You should make two changes:
Sorry, if the multipart property isn't very convenient to include dae files proposed by Google Warehouse. When I added multiPartModel property, I didn't want to parse the saved model to find the dependent files and thought that including all the files found in the same folder as the model would be enough. I added support for dae format a long time after that. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by kbios at Sep 12, 2011, 1:14:50 PM |
|
Re: Problem with DAE model Thanks, that worked perfectly! |
|
|
Current timezone is GMT Dec 18, 2025, 11:24:48 PM |