LDraw.org Discussion Forums
LPub3D 1.3.0 Released ! - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: LPub3D 1.3.0 Released ! (/thread-18614.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


LPub3D 1.3.0 Released ! - Trevor Sandy - 2016-01-08

Greetings,

Just in time for the new year ! Lots of enhancements in this version.

I had some difficulty with adding multiple search directories (essentially allowing for any number of Ldraw libraries) which took me longer than I anticipated. In fact, I had to write an enhancement for ldglite - not so easy updating old c code.

As before, you can download from sourceforge.net or check for updates in your existing installation.

Here are some key enhancements:

[attachment=1932]

Full release notes - Happy Reading !

LPub3D 1.3.0.504.2

Features and enhancements
------------
-Add/CHANGE line type attribute to border configuration
0=none,1=solid,2=dash,3=dot,4=dashDot,5=dashDotDot. So an old meta line like this:
0 !LPUB PLI BORDER GLOBAL ROUND Black 0 15 MARGINS 0.472439 0.07
should be updated to this:
0 !LPUB PLI BORDER GLOBAL ROUND 1 Black 0 15 MARGINS 0.472439 0.07
Another example:
0 !LPUB BOM BORDER GLOBAL NONE MARGINS 0.05 0.05
should be updated to this:
0 !LPUB BOM BORDER GLOBAL NONE 0 MARGINS 0.05 0.05

-Add dialog to print or export to image all pages, current page and custom range of pages (e.g. 1,3,5,7-9)

-Add ability to detect additional ldraw content search directories using ldrawini c api
I implemented the ldrawini c api to maintain compatability with LPub3D 3rd Party renderers - LDView, L3P(PovRay) and Ldglite. Additional directories must have either the same tree as LDraw Unofficial directory (i.e. parts and/or p subdirectories...) or alternatively, content can be deposited at the root of the additional directory (i.e. C:/ldrawFiles/*.dat). Content from all defined ldraw search directories are archived in the ldrawunf.zip archive and loaded into memory - enabling access to the 3DViewer.
If no ldraw.ini file is detected. LPub3D will automatically search all subdirectories under the ldraw/Unofficial directory - except directories p and parts. Unofficial subdirectories p and parts as well as official p and parts subdirectories are never searched because they are automatically loaded during default behavior during startup.
There are 2 ways to define search directories: 1. using the Ldraw.ini file (there is now a menu button to edit the ldraw.ini file) and 2. editing the 'Ldraw Content Search Directories text edit dialog under the 'Other' tab in Preferences. If you are using an LDraw.ini file, the preferences dialog will be read only - you must use the menu edit button under 'Configuration' to edit the ldraw.ini file. The ldraw.ini edit button only appears if a ldraw.ini file is detectected. If you are not using ldraw.ini, it is possible to add,remove and reset to the default search directories in the Preferences tab.
ldglite renderer updated with the ability to process additional directories beyond official/unofficial parts, p and Model. I implemented this enhancement to allow all 3 LPub3D renderers(LDView, Ldglite, L3P/PoV Ray) the same functionality supporting additional ldraw content search directories. LPub3D now passes 2 env variables to ldglite - LDRAWDIR and LDSEARCHDIRS. LdView and L3P already uses the ldrawini.c library. They can also be configured to detect additional ldraw content search directories if no ldraw.ini file is configured. I also upgraded ldglite's openGL API from glut (deprecated) to freeglut 3.0 released in June 2015. Ldglite os not versioned at 1.3.0 (from 1.2.7).

-Add ability to manage additional ldraw content search directories whether using Ldraw.ini or not.
If not using Ldraw.ini file, automatically detected search directories are limited to those under the Unofficial directory. The user has the ability to exclude and reset search directories within this edit list. Unofficial P and Parts directories are automatically excluded from the search directory list as they are loaded automatically by the application.
-Add Rotate Icon - indicate that the builder should "flip" the model

-Add PLI/BOM part substitution - substitute modeled part in PLI/BOM with alternate
This feature is useful when you have a modeled part (e.g. Power Functions Light) that will
take alot of space in the BOM/PLI, you can substitute the modeled version with an alternate
representation that is suitable for the PLI/BOM view. This feature is complementary to LDCad's
template functionality which allows you to model adjustable parts as needed. To use this
functionality, simply edit the substituation list from Configuration= BOM/PLI Substitute Parts List

-Add LDCad PART/UNOFFICIAL PART meta to recognize LDCad template generated parts

-Add gradients to background options

-Add Change local page background - colour, gradient, picture, submodel, none

-Add memu item 'Refresh Unofficial Parts' which downloads and replaces the ldrawunf.zip archive
in the Ldraw/LPub3DVoiewer-Library. LPub3D places all search directory parts in the ldrawunf.zip archive so they
can be made available for the LPub3D Viewer. This feature allows you to reset the archive file to
it's latest default content if desired. The ldrawunf.zip unofficial archive is used, along with the complete.zip,
by the 3DViewer.

-Add menu item 'Reset Fade Files Cache' which deletes all generated fade files. Fade files automatically
generated as needed when you open a model with the 'Enable Fade Steps' preference option checked.

-Update 3DViewer to LeoCAD build 1867

-Remove PartsList class, use instead lcPiecesLibrary class to verify parts and capture part title. This is a consolidation to
improve the application's performance.

-Move process fade colour parts to separate thread.

-Move fade parts directory from under LDraw/Unofficial/parts and LDraw/Unofficial/p to as single directory
under LDraw/Unofficial. So from this version of LPub3D, the fade directory will be autogenerated and populated
as LDraw/Unofficial/fade. Old fade directories under Unofficial/parts and p must be manually removed if desired.

-Redesign color part list and archive classes - rename and separate generage color parts list

-Cosmetic and performance updates

-Fix: Changing step number attributes on multi-step pages are now working

-Fix: PLI/BOM sort routine, sort on 'part colour' part(s) appear out of place relative to part size and colour.

-Fix: Do not create instruction page(s) for unofficial part

-Fix: Create s/8/48 subdirectory in lpub/tmp directory when needed. This fix will resolve the issue of LPub3D not being able to create inline unofficial subparts and 8/48 primitives when rendering models where these parts are defined in the model file.
-CHANGE: In previous versions of LPub3D, custom and fade parts were loaded under the Unofficial directory allowing detection by all renderers and the 3D viewer. From this version of LPub3D (v1.3.0), the fade directory will reside at the root of the the Unofficial directory. Custom content added to Unofficial P and Parts directories will not detected by LPub3D.

-CHANGE: Change part count routine to use ldraw archive files to look at '!LDRAW ORG...' part type meta tag. I think there are still some issue with this routine however - especially with large complex models using in-lined unofficial parts that may not be in ldrawunf.zip.

-CHANGE: Change 'Reset All Caches' to 'Reset Image and Model' Caches

-CHANGE: BOM default sort to sort by colour then size, previous default was size only (PLI default sort by size)

-CHANGE: Change 'Update' tab in preferences dialog to 'Other'.

Cheers !


Re: LPub3D 1.3.0 Released ! - Jaco van der Molen - 2016-01-08

Wow, Trevor, you've been working hard. Thanks for your effort!
I will try the new features which I am very happy with!


Re: LPub3D 1.3.0 Released ! - Merlijn Wissink - 2016-01-08

Nice work! There are some really nice features there Smile
Is the rotation-icon automatic (is it being placed when a rotstep is detected) or do you have to add it manually?

I was quietly hoping you would also include Jaco's local page orientation, but I don't need it now, so no problem Wink

Thanks for the work on LPub3D.


Re: LPub3D 1.3.0 Released ! - Trevor Sandy - 2016-01-08

Many thanks !

The rotation icon is placed using the right-click context menu. Just right-click on a CSI image and select 'Add Rotate Icon.'

I completely forgot about Jaco's page orientation request. Indeed, it's quite possible and straightforward to add local page orientation. Look for it soon.

Cheers,


Re: LPub3D 1.3.0 Released ! - Jaco van der Molen - 2016-01-10

Great stuff there Trevor! Tnx.

Although the gradient background is difficult to comprehend, I am getting results!
Is it possible to create a horizontal gradient with one color on top fading to another color at the bottom?
So far I only got a mirrored gradient.

I am really grateful for the rotation icon. Though the placement does things I do not expect. Perhaps we can take a look?

Here is an example of what I am doing currently:
https://drive.google.com/file/d/0B_DiVpCVltmhQ0VCTkhVUU1tNnc/view?usp=sharing


Re: LPub3D 1.3.0 Released ! - Trevor Sandy - 2016-01-10

Hi Jaco,

Many thanks.

Jaco van der Molen Wrote:Is it possible to create a horizontal gradient with one color on top fading to another color at the bottom?

I think you can. Select Linear Gradient and play with the Color Editor. Perhaps you want to use the Pad Spread.

Jaco van der Molen Wrote:I am really grateful for the rotation icon. Though the placement does things I do not expect. Perhaps we can take a look?

What placement behavior were you expecting ?

Cheers,


Re: LPub3D 1.3.0 Released ! - Jaco van der Molen - 2016-01-10

Ok, I'll give that some more try.
I will show what I did and expected tomorrow and where it goes wrong (I think).


Re: LPub3D 1.3.0 Released ! - Jaco van der Molen - 2016-01-10

P.S. I am making LPub3D instructions for a friend for this moc:
http://www.eurobricks.com/forum/index.php?showtopic=93462
He cannot run LDD...


Re: LPub3D 1.3.0 Released ! - Jaco van der Molen - 2016-01-11

Here is the unexpected behaviour of the rotation icon placement. See this folder:
https://drive.google.com/folderview?id=0B2IPxkamTq2bb1RNTDZDaTh5QW8&usp=sharing
In it there is the MPD and 2 png files of 2 pages.
The settings for PLI and stepnumber are:
Code:
0 !LPUB MULTI_STEP PLI PLACEMENT TOP LEFT ASSEM OUTSIDE
0 !LPUB MULTI_STEP STEP_NUMBER PLACEMENT BOTTOM LEFT PLI OUTSIDE
The placement of the rotation icon in step 3 is:
Code:
0 !LPUB MULTI_STEP ROTATE_ICON PLACEMENT TOP LEFT ASSEM OUTSIDE
But I want the icon te be right under the stepnumber, so I change it to:
Code:
0 !LPUB MULTI_STEP ROTATE_ICON PLACEMENT BOTTOM LEFT STEP_NUMBER OUTSIDE
However then on the next page (step 4) on screen (see screenshot) the stepnumber is under the assem, but when I export as png it is where I expect it to be right under the PLI. But then, when I reload (clear cache) and export as either PNG of PDF the stepnumber is under the assem?

I think it has something to do with the hierarchy of the LPUB metacommands, but I cannot be sure.

The problem is alo illustrated in steps 12 and 13 (page 7)


Re: LPub3D 1.3.0 Released ! - Jaco van der Molen - 2016-01-11

Hi Trevor,

I have another suggestions:

Would it be possible to sort the LPUB metacommands by type?
When working on a file I make settings to the page, the PLI, assem, stepgroup, etc. where I see fit and to try various things.
LPub3D creates a line with the metacommand for global setting on top of the file, but it does that in the order that one makes the settings it. Which is logic.

Once hapy with all settings I "sort" all commands by type and "group" them by adding command zero's between every section.
Here is a pice of LDraw code lines of a model I have and should illustrate what I mean:

Code:
0 FILE name.ldr
0 Name
0 Name: name.ldr
0 Author: Jaco van der Molen
0 Unofficial Model
0
0 !LPUB PAGE BACKGROUND GLOBAL COLOR "#55aaff"
0 !LPUB PAGE SIZE GLOBAL 11.6929 8.2677
0 !LPUB PAGE MARGINS GLOBAL 0.3937 0.3937
0
0 !LPUB PAGE DOCUMENT_AUTHOR DISPLAY GLOBAL TRUE
0 !LPUB PAGE DOCUMENT_AUTHOR PLACEMENT BOTTOM_LEFT PAGE INSIDE
0 !LPUB PAGE DOCUMENT_AUTHOR FONT "Arial,12,-1,5,75,0,0,0,0,0"
0 !LPUB PAGE DOCUMENT_AUTHOR COLOR "#323232"
0 !LPUB PAGE DOCUMENT_AUTHOR CONTENT GLOBAL "All about LDraw - www.binarybricks.nl"
0
0 !LPUB PAGE DOCUMENT_TITLE_FRONT DISPLAY GLOBAL TRUE
0 !LPUB PAGE DOCUMENT_TITLE_FRONT PLACEMENT GLOBAL TOP_LEFT PAGE INSIDE
0 !LPUB PAGE DOCUMENT_TITLE_FRONT COLOR GLOBAL "#000000"
0 !LPUB PAGE DOCUMENT_TITLE_FRONT FONT "Arial Black,48,-1,5,87,0,0,0,0,0"
0 !LPUB PAGE DOCUMENT_TITLE_FRONT CONTENT GLOBAL "Naam"
0
0 !LPUB PAGE MODEL_DESCRIPTION DISPLAY GLOBAL TRUE
0 !LPUB PAGE MODEL_DESCRIPTION PLACEMENT GLOBAL TOP LEFT MODEL_PIECES OUTSIDE
0 !LPUB PAGE MODEL_DESCRIPTION COLOR GLOBAL "#000000"
0 !LPUB PAGE MODEL_DESCRIPTION FONT GLOBAL "Arial,24,-1,5,75,0,0,0,0,0"
0 !LPUB PAGE MODEL_DESCRIPTION CONTENT GLOBAL "Model design by..."
0
0 !LPUB PAGE DOCUMENT_COVER_IMAGE DISPLAY GLOBAL FALSE
0 !LPUB PAGE DOCUMENT_COVER_IMAGE FILE GLOBAL "D:/MJ/LEGO Related/Models/name.png"
0 !LPUB PAGE DOCUMENT_COVER_IMAGE PLACEMENT LOCAL CENTER PAGE INSIDE 0 0.025
0 !LPUB PAGE DOCUMENT_COVER_IMAGE SCALE  1
0
0 !LPUB PAGE MODEL_PIECES DISPLAY GLOBAL TRUE
0 !LPUB PAGE MODEL_PIECES PLACEMENT GLOBAL LEFT PAGE INSIDE
0 !LPUB PAGE MODEL_PIECES COLOR GLOBAL "#000000"
0 !LPUB PAGE MODEL_PIECES FONT "Arial,24,-1,5,50,0,0,0,0,0"
0 !LPUB PAGE MODEL_PIECES CONTENT GLOBAL "xxx Pieces"
0
0 !LPUB PAGE MODEL_ID DISPLAY GLOBAL FALSE
0 !LPUB PAGE MODEL_ID PLACEMENT GLOBAL BOTTOM LEFT DOCUMENT_TITLE OUTSIDE
0 !LPUB PAGE MODEL_ID COLOR GLOBAL "#000000"
0 !LPUB PAGE MODEL_ID FONT GLOBAL "Arial,18,-1,5,75,0,0,0,0,0"
0 !LPUB PAGE MODEL_ID CONTENT GLOBAL "somename.ldr"
0
0 !LPUB PAGE DOCUMENT_AUTHOR_FRONT DISPLAY GLOBAL TRUE
0 !LPUB PAGE DOCUMENT_AUTHOR_FRONT PLACEMENT GLOBAL BOTTOM_LEFT PAGE INSIDE
0 !LPUB PAGE DOCUMENT_AUTHOR_FRONT COLOR GLOBAL "#000000"
0 !LPUB PAGE DOCUMENT_AUTHOR_FRONT FONT GLOBAL "Arial,18,-1,5,50,0,0,0,0,0"
0 !LPUB PAGE DOCUMENT_AUTHOR_FRONT CONTENT GLOBAL "Model instructions by: Jaco van der Molen"
0
0 !LPUB INSERT COVER_PAGE FRONT
0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
0 STEP
0 !LPUB ASSEM MODEL_SCALE GLOBAL  0.8
0 !LPUB MULTI_STEP BEGIN
0
0 !LPUB CALLOUT SEPARATOR GLOBAL 0.0312498 #000000 0.0499998 0.0499998
0 !LPUB CALLOUT BORDER GLOBAL ROUND #ffffd8 0.0312498 10 MARGINS 0.0499997 0.0499997
0 !LPUB CALLOUT PLI PER_STEP GLOBAL FALSE
0 !LPUB CALLOUT BACKGROUND GLOBAL COLOR "#ffffd8"
0
0 !LPUB PLI MODEL_SCALE GLOBAL  0.7000
0 !LPUB PLI BORDER GLOBAL ROUND #aaffff 0.0312494 10 MARGINS 0.128739 0.12874
0 !LPUB PLI BACKGROUND GLOBAL COLOR "#aaffff"
0 !LPUB PLI INSTANCE_COUNT FONT GLOBAL "Arial,18,-1,5,75,0,0,0,0,0"
0 !LPUB PLI ANNOTATION DISPLAY GLOBAL TRUE
0 !LPUB PLI ANNOTATION USE_TITLE_AND_FREE_FORM GLOBAL TRUE
0 !LPUB PLI ANNOTATE FONT_COLOR GLOBAL "#5500ff"
0 !LPUB PLI ANNOTATE FONT GLOBAL "Arial,16,-1,5,75,0,0,0,0,0"
0 !LPUB PLI PLACEMENT GLOBAL TOP_LEFT PAGE INSIDE
0
0 !LPUB STEP_NUMBER FONT GLOBAL "Arial Black,48,-1,5,87,0,0,0,0,0"
0 !LPUB STEP_NUMBER PLACEMENT GLOBAL BOTTOM LEFT PLI OUTSIDE
0
0 !LPUB MULTI_STEP STEP_NUMBER FONT GLOBAL "Arial Black,48,-1,5,87,0,0,0,0,0"
0 !LPUB MULTI_STEP STEP_NUMBER PLACEMENT BOTTOM LEFT PLI OUTSIDE
0 !LPUB MULTI_STEP PLI PLACEMENT TOP LEFT ASSEM OUTSIDE
0

So I wonder if it is possible to force LPub to kind of sort the metacommands that go together in a certain group? For instance starting with page settings, then assembly, stepnumber multistep, PLI, callout, etc. (not the way I sorted above example btw)