Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 241
Posts: 241   Pages: 25   [ Previous Page | 16 17 18 19 20 21 22 23 24 25 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1298404 times and has 240 replies Next Thread
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1044
Status: Offline
Reply to this Post  Reply with Quote 
Furniture Library Editor Bug

Emmanuel, in another thread concerning lightsources you stated this:
You can already have more than one material listed in the lightSourceMaterialName# property. Just separe them with one or more spaces.
Unfortunately there's a bug in the Library Editor (v2.0) that prevents this from working correctly.

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:
<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>


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.
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
----------------------------------------
[Edit 3 times, last edit by Keet at Jul 14, 2024, 10:00:14 AM]
[Jul 13, 2024, 5:11:56 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9381
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Jul 15, 2024, 12:01:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1044
Status: Offline
Reply to this Post  Reply with Quote 
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.
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
[Aug 4, 2024, 11:15:38 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9381
Status: Offline
Reply to this Post  Reply with Quote 
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.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Aug 22, 2024, 8:08:08 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1044
Status: Offline
Reply to this Post  Reply with Quote 
Re: Furniture Library Editor 2.2

Keet, I couldn't reproduce your issue about columns size in the editor. Maybe it's due to the Java version you use.
Do you mean that when you open a library in the editor all columns are resized according to their content?

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 laughing

Thank you for fixing the lightSourceMaterialName bug. No more manual editing to fix it after I edited a library!
----------------------------------------
Dodecagon.nl
750+ 3D models, manuals, and projects
[Aug 22, 2024, 8:42:19 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9381
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Aug 22, 2024, 8:54:03 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1044
Status: Offline
Reply to this Post  Reply with Quote 
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:
#!/bin/sh
exec java -jar /path/to/SH3D/tools/FurnitureLibraryEditor-2.2.jar -open "$1"

And this gives the error:
#!/bin/sh
exec /path/to/SH3D/SweetHome3D-7.3/runtime/bin/java -jar /path/to/SH3D/tools/FurnitureLibraryEditor-2.2.jar -open "$1"


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:
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
750+ 3D models, manuals, and projects
[Aug 23, 2024, 1:55:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
scjo
Newbie



Germany
Joined: Sep 12, 2024
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
Re: Furniture Library Editor 2.2

I tried both
$ java --version
openjdk 11.0.24 2024-07-16
OpenJDK Runtime Environment (build 11.0.24+8-post-Ubuntu-1ubuntu322.04)
OpenJDK 64-Bit Server VM (build 11.0.24+8-post-Ubuntu-1ubuntu322.04, mixed mode, sharing)
$ java -jar /path/to/SH3D/tools/FurnitureLibraryEditor-2.0.jar
and
$ /path/to/SH3D/SweetHome3D-7.5/runtime/bin/java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
$ /path/to/SH3D/SweetHome3D-7.5/runtime/bin/java -jar /path/to/SH3D/tools/FurnitureLibraryEditor-2.0.jar

However, the runtime error right after opening a dialog happens with both (as well as with FLE 2.1 and 2.2). My detailed error output is in ...crashing on Modify Furniture dialog. It does not seem to differ significantly between the JVMs. It resembles that of Keet above.

I am not "literate" enough (yet) to read it but willing to learn. What could be the next trials/assumptions/diagnostic steps towards stable dialogs?
----------------------------------------
Cheers - Joe //
[Oct 1, 2024, 1:10:38 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 241   Pages: 25   [ Previous Page | 16 17 18 19 20 21 22 23 24 25 ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved