Print at Dec 18, 2025, 4:44:46 PM View all posts in this thread on one page
Posted by miguel78 at Aug 5, 2012, 10:43:06 PM
Can not render or export to obj file
hi, i'm new to SH3d.
Can not render one of my project. No problems with other files.
Can not export to obj file to render with blender.

java console shows following error

Can't load texture: CLOTH_02.JPG Make sure it is located in the same server an
d directory with the model file. the loader's base path is: jar:file:C:\Users\mi
gui\Application Data\eTeks\Sweet Home 3D\work\3500-dda97bcc-c9e6-4442-8023-21e2b
e1f305e\open8802407051458218221.sweethome3d!/185/
Exception in thread "AWT-EventQueue-0 " java.lang.ArrayIndexOutOfBoundsException:
-1
at java.util.ArrayList.get(Unknown Source)
at com.eteks.sweethome3d.model.Home.clone(Unknown Source)
at com.eteks.sweethome3d.swing.PhotoPanel.startPhotoCreation(Unknown Sou
rce)
at com.eteks.sweethome3d.swing.PhotoPanel.access$000(Unknown Source)
at com.eteks.sweethome3d.swing.PhotoPanel$1.actionPerformed(Unknown Sour
ce)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "autoSaveTimer" java.lang.RuntimeException: java.lang.reflec
t.InvocationTargetException
at com.eteks.sweethome3d.io.AutoRecoveryManager.cloneAndSaveHomes(Unknow
n Source)
at com.eteks.sweethome3d.io.AutoRecoveryManager.access$500(Unknown Sourc
e)
at com.eteks.sweethome3d.io.AutoRecoveryManager$8.run(Unknown Source)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(Unknown Source)
... 5 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(Unknown Source)
at com.eteks.sweethome3d.model.Home.clone(Unknown Source)
at com.eteks.sweethome3d.io.AutoRecoveryManager$9.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Posted by Puybaret at Aug 6, 2012, 10:19:29 AM
Re: Can not render or export to obj file
Please send me your file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by miguel78 at Aug 8, 2012, 3:25:02 AM
Re: Can not render or export to obj file
just send the project !

Posted by Puybaret at Aug 8, 2012, 3:07:00 PM
Re: Can not render or export to obj file
I found the issue in your file. Very strangely, you had two pieces of furniture named "Bombilla Incandescente" and "aplique-pared" which didn't belong to any level. Once they were removed, it worked.
Do you use some plug-ins with your version of Sweet Home 3D?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by miguel78 at Aug 14, 2012, 3:14:54 AM
Re: Can not render or export to obj file
Emanuel thank you very much
like you said, there is a grouped object not belonging to any level.
I could reproduce this behavior.
This happens when I grouped two objects (incandescent light source + lamp object).
Hope this helps
sorry for my english! smile

Posted by Puybaret at Aug 14, 2012, 4:35:32 AM
Re: Can not render or export to obj file
Thanks for the test case. smile
I fixed the bug and the correction will be available in the next version.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator