Dilvish

Eurobricks Citizen
  • Content Count

    166
  • Joined

  • Last visited

Posts posted by Dilvish


  1. I am playing with this program again.

    Right now I am trying to convert a model, but the conversion seems to be stuck in the "preview model" phase.

    K5J32kC.png

    It is taking a long time.

    Also, not all configuration options are visible on the third tab of the program.

    x615Qc5.png

    The error is:

    ...
    ...
    ...
    Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: no lwjgl in java.
    library.path
            at java.lang.ClassLoader.loadLibrary(Unknown Source)
            at java.lang.Runtime.loadLibrary0(Unknown Source)
            at java.lang.System.loadLibrary(Unknown Source)
            at org.lwjgl.LWJGLUtil.loadLibrarySystem(LWJGLUtil.java:337)
            at org.lwjgl.Sys.<clinit>(Sys.java:29)
            at org.ldraw2sunflow.lwjgl.PreviewOpenGL.run(PreviewOpenGL.java:160)
            at org.ldraw2sunflow.ui.impl.RenderPanel.convertFile(RenderPanel.java:11
    7)
            at org.ldraw2sunflow.ui.impl.RenderPanel.access$000(RenderPanel.java:61)
    
            at org.ldraw2sunflow.ui.impl.RenderPanel$1.run(RenderPanel.java:85)

     

    Has anyone come across this yet?

    [edit]

    I am now unable to open the converter any more. I get an error:

    Jan 31, 2018 3:27:49 PM java.util.prefs.WindowsPreferences <init>
    WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
    x80000002. Windows RegCreateKeyEx(...) returned error code 5.
    Jan 31, 2018 3:27:49 PM org.ldraw2sunflow.ui.Ldraw2Sunflow <init>
    INFO: en_US
    Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException
    : String index out of range: -1
            at java.lang.String.substring(Unknown Source)
            at org.ldraw2sunflow.util.PartFinder.loadColor(PartFinder.java:274)
            at org.ldraw2sunflow.util.PartFinder.setLDRAWDIR(PartFinder.java:172)
            at org.ldraw2sunflow.ui.impl.LDrawPanel.initPreferences(LDrawPanel.java:122)
            at org.ldraw2sunflow.ui.impl.LDrawPanel.<init>(LDrawPanel.java:47)
            at org.ldraw2sunflow.ui.Ldraw2Sunflow.<init>(Ldraw2Sunflow.java:80)
            at org.ldraw2sunflow.ui.Ldraw2Sunflow.lambda$main$10(Ldraw2Sunflow.java:114)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
            at java.awt.EventQueue.access$500(Unknown Source)
            at java.awt.EventQueue$3.run(Unknown Source)
            at java.awt.EventQueue$3.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)

    Here is my command line: "C:\Program Files\Java\jre1.8.0_161\bin\java.exe" -Xmx1G -jar "E:\Programs Windows\LDraw\LDraw2Sunflow_f\ldraw2sunflow.jar"

    [edit]

    I tried again as admin, and experienced the same problem. The program runs once, but then will not work a second or third time, and spawns the above error.

    Also, I tried again with "LDraw2Sunflow_d" and experienced the same problem. This is odd because it worked fine for me in 2015.

    [edit]

    When I delete "HKEY_USERS\S-1-5-21-2113055238-2099637611-63920502-1003\Software\JavaSoft\Prefs\org" using regedit, the program will start again, but the stored file and directory paths are missing again when I restart the program too.

    Here's what my registry looks like:

    iAwMhOl.png


  2. Apparently, there are TLG designed models that work within tolerances, where the connection might not be exact, but it's "close enough" for the parts to fit together.

    See the yellow 1x6 bars on page 32 here:

    http://lego.brickinstructions.com/lego_instructions/set/6199/Hydro_Crystallisation_Station_

    I also started another thread here:

    https://bricks.stackexchange.com/questions/9652/connecting-out-of-system-roads


  3. Does anyone know of a ratio of studs (e.g. "four studs left and seven studs forward", or something) that would allow me to attach a 45 degree build to an "in system" build?

    Is that what this Wikipedia article is sort of about?

    https://en.wikipedia.org/wiki/Integer_triangle

    "integer triangle" a.k.a. "Pythagorean triple"

    I'm not sure there are any for 45 degree angles.

    [edit]

    Are there any special parts which would allow me to make integer connections?

    [edit]

    Stack Exchange says the answer to the first question is "No".

    https://math.stackexchange.com/questions/2607147/is-there-an-pythagorean-triple-whose-angles-are-90-45-and-45-degrees


  4. Instead of using the above guide, I recreated the shape by hand in SVG, then converted to PNG and input the image into LDraw Digital Mosaic Generator (LDDMG).

     

    Here's a screenshot from when I was still working out some of the kinks. The image to the left is 5120x5120 pixels and depicts an area that covers 4x4 baseplates. There are issues with anti-aliasing/sampling in the image to the right. The solution at the moment is to process each color separately. The next version of LDDMG will feature an optional nearest neighbor sampling method, which will eliminate the artifacts supposedly.

    GTIRGJW.png

     

    The result is what you see below. I still have a lot of tedious work to do, since a lot of the parts are in the correct location, but are turned around 180 degrees from what I need them to be. The output of LDDMG is a model consists completely of 1x1 plates. These need to be consolidated into larger plates and bricks as well. The road surface also needs to be lowered by a few units below the sidewalks.

    r0SmKct.png