LDraw.org Discussion Forums
Rendering instructions, old-style - 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: Rendering instructions, old-style (/thread-13382.html)



Rendering instructions, old-style - Luc Miron - 2014-07-06

Greetings. :-)

This is my first post on these forums, so hello to you all. I'm about to start studying LDraw, SR 3D Builder, and everything else that I need to learn about, in order to produce custom Lego instructions. I'm keeping my fingers crossed that all these tools are going to work properly under Windows 8.1...

I have a sort of introductory question, as someone who is completely new to all this. I see that there are some very nice rendering tools to create instructions, but is there a particular tool among them that allows configurable old-style rendering? My definition of "old-style rendering" is:

- All studs with black sides regardless of the brick color
- Black pieces rendered in different shades of dark grey depending on the surface angle (like it's done in the official Blacktron and Blacktron II Lego instructions) except for tires where the surface color is pure black with white outlines.

As you can guess, I would like to create instructions that look "authentic" in an old-style kind of way. If not, I guess I'll have to make due without it... Sorry if that has been discussed before, although I did search for it and found nothing.

Thanks in advance for any tips and/or general information on this topic.


Re: Rendering instructions, old-style - Willy Tschager - 2014-07-06

Hi Luc,

welcome to the forum. Sounds like you should have a look at:

http://bugeyedmonkeys.com/lic_info/

Bye, w.


Re: Rendering instructions, old-style - Travis Cobbs - 2014-07-06

LDView can do the black stud sides, but requires a custom parts library in order to do that, and to the best of my knowledge, that custom library has never been made public. (Note that it's a whole lot more complicated than simply making the sides of the studs black; there are in fact a whole bunch of other bits that are black.) This is done via an OBI (Old/Original Building Instructions) extension. When using this, you would also change the color that "black" is drawn via ldconfig.ldr, so that the "black" used for parts would be lighter, but the "black" used for the stud sides would be black.

If Joshua Delahunty wants to make his OBI version of the LDraw library public, I'll post instructions on enabling OBI in LDView. However, I don't think he plans to do that. You can find more background on this here.


Re: Rendering instructions, old-style - Luc Miron - 2014-07-07

I had a look at Lic, and it is oh so close to what I'm looking for. I would gladly use it as a PDF generator if black parts weren't so dark, and if flex parts were supported (which they are not, apparently).

I had to take out the proverbial sword and shield to get LPub to work on my Windows 8.1 PC. I'm still studying it, but from what I've seen so far, the rendering has the same problem as Lic, namely that black parts come out way too dark. If I print instructions with lots of black Lego parts on paper, all I will see are black blobs instead of identifiable parts.

I have to say that getting all these tools to work properly has been a chore. It took me a long while to figure out the interface of SR 3D Builder, but I think I got the hang of it now. There's a French video that explains how to go from SR3D to MLCad to LPub (is it still true that rotation steps and flexes defined in SR3D are not exportable to the renderers? I haven't checked this yet) and LPub on my PC doesn't look anything like what I'm seeing in the video, so I'm trying to figure out what's happening there.

Anyway, thanks for the information, guys. :-)


Re: Rendering instructions, old-style - Luc Miron - 2014-07-07

Never mind, I just figured out that I was using an old version of LPub. I just installed version 4 and I will study it tomorrow. Time to go to bed now. :-)


Re: Rendering instructions, old-style - Travis Cobbs - 2014-07-07

Note that the color you get for black in LPub4 is going to depend on the data in ldconfig.ldr (assuming you haven't disabled ldconfig.ldr usage in LDView). You can tweak the RGB value used for black by editing ldconfig.ldr and changing the VALUE RGB and the EDGE RGB to whatever you want.

I seem to remember that official instructions used a special edge color for black parts to let you know they were black instead of dark gray. Since you have control over both the color and the edge color in ldconfig.ldr, you can tweak them both to your heart's content until you find something that matches what you want. And you can do this for all the colors in there if you want. So if you find that black and dark gray look too similar, but black is how you want it to be, you can tweak dark gray. (Make sure to back up your file if you make any changes, because installing a library update will overwrite your existing one.)


Re: Rendering instructions, old-style - Luc Miron - 2014-07-07

I had a look at LPub4 this morning, and noticed that it doesn't use POV-Ray anymore. That's too bad, but I guess I can always revert back to that older version of LPub I was using before if I want to do any POV rendering.

I also had a closer look at Lic, and it supports ambient light adjustment which helps with making the details of black parts more visible. I can also change the color of black parts to "Metallic Black" which improves things even more.

That leaves the problem of flex parts, and I sent an e-mail to the author of Lic about it. The web site hasn't been updated since 2010, so it's definitely a long shot, but luck favors the bold, as they say. :-)

For now I'll keep studying LPub 4. Thanks for the tip, Travis!


RE: Rendering instructions, old-style - Joshua Delahunty - 2018-01-24

(2014-07-06, 14:45)Luc Miron Wrote: Greetings.  :-)

This is my first post on these forums, so hello to you all. I'm about to start studying LDraw, SR 3D Builder, and everything else that I need to learn about, in order to produce custom Lego instructions. I'm keeping my fingers crossed that all these tools are going to work properly under Windows 8.1...

I have a sort of introductory question, as someone who is completely new to all this. I see that there are some very nice rendering tools to create instructions, but is there a particular tool among them that allows configurable old-style rendering? My definition of "old-style rendering" is:

- All studs with black sides regardless of the brick color
- Black pieces rendered in different shades of dark grey depending on the surface angle (like it's done in the official Blacktron and Blacktron II Lego instructions) except for tires where the surface color is pure black with white outlines.

As you can guess, I would like to create instructions that look "authentic" in an old-style kind of way. If not, I guess I'll have to make due without it... Sorry if that has been discussed before, although I did search for it and found nothing.

Thanks in advance for any tips and/or general information on this topic.


Hi Luc,

If you check the second page of the Bill of Materials shown in this article
http://www.technicbricks.com/2011/07/unofficial-building-instructions.html

You can see that I achieved most of what you are looking for.  Because we were building a set of TECHNIC instructions for that project, I chose to stick with non-lit elements, with uniform coloring. This was not due to lack of technology, but rather a desire for a specific look matching TECHNIC BI style at the time.  Had I used a light source in my image generation, we could have approached exactly what you're looking for.

That's the good news.  

___

The bad news is, I didn't use a specific application to achieve these results.

First, as Travis mentions in the thread, I have an OBI enabled library that achieves the "shaded stud" look, and I used LDView to generate all my views, both images in BOMs and assembled partial models in steps.

I also have specific LDView commands that shut off lighting (deliberately -- this could have been done differently had I wanted that lit look), set the viewpoint (and achieve uniform scale), and enable OBI.

Finally, I used command line unix scripts to post-process the .ldr files (after saving from the modeling program) to recolor specific black parts (for example, 6558) from the color 30026 to a local color code "901".  901 is a magic-number-pulle-from-a-hat called PURE_BLACK, and has an RGB of 000000 and an edge of ffffff in my ldconfig.ldr file.  That allows those parts (they would be tires in your example) to render in a different black from the "normal" rather-dark-grey TLG black.  Again, during this period, TLG BI would render some black in dark-dark grey color, and other black in the black-body/white-edges style.  As it happens, I have a bit in my database for each design that marks the right parts for that treatment, making my command-line scripts adaptable in their use (not just a hard-coded "for 6558, or 3705, or 3706, change to...").
______

Since that time, I've built a full items/ library in my LDRAW folder and all my rendering is now done via items rather than designs.  The bit in the database for each design means that items based on designs that have traditionally always rendered as PURE_BLACK now always render as PURE_BLACK for me, whereas others render as TLG black.  My database also generates all the assemblies from loose parts, so the same coloring rules apply to parts that would normally have hard-coded colors applied in normal use of the LDRAW library.

_____

I'll be keen to see if you're able to get what you want with existing toolsets.  I wasn't able to, and had to craft my own.

     -- joshua