Furniture Library Editor released
This topic has been viewed 2891335 times and has 252 replies
Re: Furniture Library Editor 2.0
This feature already exist.
I've used for the molding library.
I've used for the molding library.
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
Re: Furniture Library Editor 2.0
This feature is available when the icon property is not modifiable in the preferences panel. See also the post about version 2.0.
Emmanuel Puybaret, Sweet Home 3D creator
Re: Furniture Library Editor 2.0
Aha, that solves my problem. I'm glad that the option is already available. I had no idea that it depended on the modifiable setting of the icon. Seems reasonable though.
Thank you.
Thank you.
Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Furniture Library Editor Bug
Emmanuel, in another thread concerning lightsources you stated this:
I add two lightsource material names: "UpLight DownLight" (without the quotes). I save and import the library but when I render a photo only the last light shows. (When I switch the order of the lights the other one is the only one that shows.)
I go back to the library and when I modify the object with two light sources I see that the Library Editor has added a comma between the two light sources. Even worse, when I save again without changing anything another comma is added after the first. With every save another comma is added.
I assume that adding the comma is not supposed to happen and that is the cause of only accepting the last light source.
ETA:
In the Home.xml file both lightsources are correctly listed:
ETA 2:
When I manually remove the comma in the library properties file both lights work. It is definitely just the Library Editor that writes a comma where it shouldn't. And keeps writing it with every save.
ETA3:
Further investigation shows that saving the library adds the comma to all objects with multiple lightsources listed. This means it's not when you save the object with multiple lightsources but when you save the library itself.
Unfortunately there's a bug in the Library Editor (v2.0) that prevents this from working correctly.You can already have more than one material listed in the lightSourceMaterialName# property. Just separe them with one or more spaces.
I add two lightsource material names: "UpLight DownLight" (without the quotes). I save and import the library but when I render a photo only the last light shows. (When I switch the order of the lights the other one is the only one that shows.)
I go back to the library and when I modify the object with two light sources I see that the Library Editor has added a comma between the two light sources. Even worse, when I save again without changing anything another comma is added after the first. With every save another comma is added.
I assume that adding the comma is not supposed to happen and that is the cause of only accepting the last light source.
ETA:
In the Home.xml file both lightsources are correctly listed:
Code: Select all
<light id='light-15930b30-3aba-40fe-b5be-b7d20db73264' level='level-a8f78c57-ad8a-4eab-8e30-6df9906d7ae5' name='Elevator Call buttons' creator='Keet' model='218/CallButtonPanel.obj' icon='217' x='-1984.5288' y='1783.7722' width='6.0' depth='0.5' height='11.0' modelSize='4201' description='<b>(Dodecagon Glass Elevator)</b>' license='CC0 1.0 Universal' power='0.5'>
<lightSourceMaterial name='UpLight,'/>
<lightSourceMaterial name='DownLight'/>
</light>When I manually remove the comma in the library properties file both lights work. It is definitely just the Library Editor that writes a comma where it shouldn't. And keeps writing it with every save.
ETA3:
Further investigation shows that saving the library adds the comma to all objects with multiple lightsources listed. This means it's not when you save the object with multiple lightsources but when you save the library itself.
Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Re: Furniture Library Editor Bug
Thanks Keet for reporting this issue. I fixed it and the correction will be available in the next version.
Emmanuel Puybaret, Sweet Home 3D creator
Re: Furniture Library Editor Bug
Not a bug but a nuisance:
After I open and close the preferences dialog all columns are perfectly sized to the width of the contents. It would be nice if this also happended when you open the library. Currently I abuse the open and close of the preferences dialog because that's easier than resizing each column to fit the contents but it should resize by default.
After I open and close the preferences dialog all columns are perfectly sized to the width of the contents. It would be nice if this also happended when you open the library. Currently I abuse the open and close of the preferences dialog because that's easier than resizing each column to fit the contents but it should resize by default.
Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Re: Furniture Library Editor 2.2
The version 2.2 of the Furniture Library Editor containing the correction of the bug on lightSourceMaterialName# property was released yesterday.
Keet, I couldn't reproduce your issue about columns size in the editor. Maybe it's due to the Java version you use.
Keet, I couldn't reproduce your issue about columns size in the editor. Maybe it's due to the Java version you use.
Emmanuel Puybaret, Sweet Home 3D creator
Re: Furniture Library Editor 2.2
Do you mean that when you open a library in the editor all columns are resized according to their content?Keet, I couldn't reproduce your issue about columns size in the editor. Maybe it's due to the Java version you use.
I don't think it's a java version problem. I changed my start script for the editor to specifically use the same version as supplied with Sweet Home 3D. That doesn't make a difference. The trick with opening the preference dialog and closing with OK works the same, all columns perfectly resized. I'll keep using that trick.
Or did you mean the tiny column divider for resizing? That is not a java version problem, that is my old age working against me [:))]
Thank you for fixing the lightSourceMaterialName bug. No more manual editing to fix it after I edited a library!
Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Re: Furniture Library Editor 2.2
Sorry, I didn’t try after opening a SH3F file because I thought that rows content didn’t make a difference. I’ll try again…
Emmanuel Puybaret, Sweet Home 3D creator
Re: Furniture Library Editor 2.2
Yesterday I changed my library editor startup script to check if the columns problem was related to the java version. I added the path to the runtime/bin directory in the Sweet Home 3D java directory to force use of the Sweeet Home 3D supplied java runtime.
Today I tried to add a model to a library with drag&drop and I got a run time error and the application quits. I removed the java path and the error is gone and everything works as it should.
I'm not sure but just setting the path might not be enough. I probably should set some environment variables for java too. It works without the path which means no problem for me but it might point to another problem. Here is the info:
This sh script works:
And this gives the error:
To be clear, the library opens just fine. The error occurs when I drag&drop a new model in the editor window.
By-the-way, this is the same with version 2.1.
The error I get with the path to the Sweet Home 3D java version:
Today I tried to add a model to a library with drag&drop and I got a run time error and the application quits. I removed the java path and the error is gone and everything works as it should.
I'm not sure but just setting the path might not be enough. I probably should set some environment variables for java too. It works without the path which means no problem for me but it might point to another problem. Here is the info:
This sh script works:
Code: Select all
#!/bin/sh
exec java -jar /path/to/SH3D/tools/FurnitureLibraryEditor-2.2.jar -open "$1"
Code: Select all
#!/bin/sh
exec /path/to/SH3D/SweetHome3D-7.3/runtime/bin/java -jar /path/to/SH3D/tools/FurnitureLibraryEditor-2.2.jar -open "$1"By-the-way, this is the same with version 2.1.
The error I get with the path to the Sweet Home 3D java version:
Code: Select all
com.jogamp.opengl.GLException: J3D-Renderer-1: Error making temp context(1) current: display 0x7f73b816e760, context 0x7f73b8014130, drawable X11OnscreenGLXDrawable[Realized true,
Factory jogamp.opengl.x11.glx.X11GLXDrawableFactory@f3e9a2f,
Handle 0x42000a4,
Surface JAWTWindow[0x4ee5a2cc][JVM version: 1.8.0_202 (1.8.0 update 202)
JAWT version: 0x10004, CA_LAYER: false, isLayeredSurface false, bounds [ 0 / 0 128 x 128 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pixelScale 1.0x1.0, shallUseOffscreenLayer false, isOffscreenLayerSurface false, attachedSurfaceLayer 0x0, windowHandle 0x42000a4, surfaceHandle 0x42000a4, bounds [ 0 / 0 128 x 128 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], window [0/0 128x128], pixels[scale 1.0, 1.0 -> 128x128], visible true, lockedExt false,
config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection :0.0, unitID 0, awtDevice X11GraphicsDevice[screen=0], handle 0x0], idx 0],
chosen GLCaps[glx vid 0x28, fbc 0xaf: rgba 8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
requested GLCaps[rgba 5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x28],
encapsulated X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x7f73b816e760, owner true, JAWTToolkitLock[obj 0x7c4f6c2, isOwner true, <4515b9ca, 3e01bca5>[count 1, qsz 0, owner <J3D-Renderer-1>]]], idx 0], visualID 0x28, fbConfigID 0xaf,
requested GLCaps[rgba 5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
chosen GLCaps[glx vid 0x28, fbc 0xaf: rgba 8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]]]],
awtComponent com.eteks.sweethome3d.j3d.Component3DManager$ObservedCanvas3D[canvas2,0,0,128x128],
surfaceLock <45f048cb, 1439739>[count 1, qsz 0, owner <J3D-Renderer-1>]]]
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:393)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:794)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:677)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:615)
at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6411)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4612)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2386)
at javax.media.j3d.Renderer.doWork(Renderer.java:881)
at javax.media.j3d.J3dThread.run(J3dThread.java:271)
DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = X11GraphicsDevice[screen=0]
canvas = com.eteks.sweethome3d.j3d.Component3DManager$ObservedCanvas3D[canvas2,0,0,128x128]
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 2/2, reusable (open, marked uncloseable): 0, pending (open in creation order): 2)
X11Util: Open X11 Display Connections: 2
X11Util: Open[0]: NamedX11Display[:0.0, 0x7f73b8003280, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0.0, 0x7f73b816e760, refCount 1, unCloseable false]Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Who is online
Users browsing this forum: No registered users and 2 guests