C3POwen

[Guide] Rendering LDraw models using POV-Ray

454 posts in this topic

GUIDE UPDATE: I have updated the LGEO-Update.zip file in the Downloads section with 3 new parts and 2 fixed parts.

LGEO-Update-2012-07-24.png

The FIXED and NEW LGEO parts as of 2012-07-24

Share this post


Link to post
Share on other sites

Ah, the long-awaited classic minifig head, at last! Thanks so much, C3POwen! :classic:

Share this post


Link to post
Share on other sites

GUIDE UPDATE: I have updated the LGEO-Update.zip file in the Downloads section with 15 new parts, 2 updated parts and 5 fixed parts.

LGEO-Update-2012-08-11.png

The FIXED, UPDATED and NEW LGEO parts as of 2012-08-11

Edited by C3POwen

Share this post


Link to post
Share on other sites

Great new additions. It's always fantastic to see new LGEO files. :classic::thumbup:

Edited by Palathadric

Share this post


Link to post
Share on other sites

When rendering Black Knights' Castle I get an error for part lg_3959 (The Minifig Torch). Does anyone else have a problem with this part as well or know what I can do to fix the problem?

Share this post


Link to post
Share on other sites

When rendering Black Knights' Castle I get an error for part lg_3959 (The Minifig Torch). Does anyone else have a problem with this part as well or know what I can do to fix the problem?

I've just tried rendering it myself, and it went through without a hitch. Which version of POV-Ray are you using, and what is the error that you get? Is it possible for you to attach a screenshot?

I tried it in POV-Ray 3.7 RC6, first without declaring a "#version" statement, and then again declaring versions 3.1, 3.6 and 3.7, and each time it was fine.

Share this post


Link to post
Share on other sites

I'm using POV-Ray 3.7 RC3. Used to use RC5, but whenever I'd open a file in it, it would automatically render it instead of opening it for editing. I couldn't find out how to do it normally, but that's probably my fault. :hmpf:

Here is the screen shot:

capture.jpg

Share this post


Link to post
Share on other sites

I'm using POV-Ray 3.7 RC3. Used to use RC5, but whenever I'd open a file in it, it would automatically render it instead of opening it for editing. I couldn't find out how to do it normally, but that's probably my fault. :hmpf:

Firstly, I'd recommend updating to RC6. When I first installed it I found that it rendered automatically too, but it seems that it does not create proper registry entries to tell you what to do when opening a file. However, I have created a registry file that should fix it, as long as you fully uninstall the previous version.

Just download and run the above file, and it should fix it. If it doesn't, just PM me the path of your POV-Ray installation and I'll PM you another version.

Here is the screen shot:

It also appears you are not using the latest version of lg_3959, as Lutz Uhlmann updated it again in 2008. Could you try this version and put it into your "lg" directory?

If that works, then I'd recommend downloading the most recent "official" LGEO files from Lutz's site and installing those. If you've installed any of my fixed or updated files, then you'd need to install those again as they would be over-written.

Share this post


Link to post
Share on other sites

The version of LGEO I was using was from the All-In-One-Installer for 2012, don't know how old the version of LGEO they have on there is, but I figured it was fairly recent.

I'm downloading the recommended version of POV-Ray.

The path I usually use these days for installing POV-Ray is D:\LDraw\POV-Ray

I suppose this file is for C:\Program Files\POV-Ray, or what? If so, since I will be uninstalling the current version and installing the new one instead, I can always change it to the correct place. Presently, I am operating with a 64-bit system though. :look:

Hope this made sense. :sceptic:

Share this post


Link to post
Share on other sites

The version of LGEO I was using was from the All-In-One-Installer for 2012, don't know how old the version of LGEO they have on there is, but I figured it was fairly recent.

I'm downloading the recommended version of POV-Ray.

As far as I'm aware, the All-In-One Installer has an older version of the LGEO library by default.

The path I usually use these days for installing POV-Ray is D:\LDraw\POV-Ray

I suppose this file is for C:\Program Files\POV-Ray, or what? If so, since I will be uninstalling the current version and installing the new one instead, I can always change it to the correct place. Presently, I am operating with a 64-bit system though. :look:

Hope this made sense. :sceptic:

The registry file is just a text file anyway, so should be easy enough to modify. I've just updated it so that the path to the default icon is easier to change.

Either 32-bit or 64-bit should be fine, as POV-Ray has a 64-bit version which installs to the same location that it would if it was on a 32-bit system. Therefore, if you install it to the default location then the registry file should work straight away.

Share this post


Link to post
Share on other sites

-snip-

It also appears you are not using the latest version of lg_3959, as Lutz Uhlmann updated it again in 2008. Could you try this version and put it into your "lg" directory?

If that works, then I'd recommend downloading the most recent "official" LGEO files from Lutz's site and installing those. If you've installed any of my fixed or updated files, then you'd need to install those again as they would be over-written.

I used the latest LGEO update and the file worked. Also I downloaded and installed RC6 and it's working great as well with your .reg file.

I've continued with renders, however an error has come up with "lg_3185: Fence 1 x 4 x 2"

Does it work fine for you?

Share this post


Link to post
Share on other sites

I've continued with renders, however an error has come up with "lg_3185: Fence 1 x 4 x 2"

Does it work fine for you?

I just ran a test render of that part by itself, and it rendered without issue.

The version of lg_3185.inc that I have installed has the following header:

/*******************************************************************************/
/*                                                                             */
/* LGEO Libray Include File     (C) lgeo@digitalbricks.org (Lutz Uhlmann)        */
/*                                                                             */
/* 19970927 Lutz Uhlmann                                                       */
/* 20041126 Lars C. Hassing   Corrected name of clear part                     */
/*                                                                             */
/* This file is in no way related to the LEGO(tm) Group.                          */
/* It is provided for private non-commercial use only.                         */
/*                                                                             */
/* lg_3185: Fence 1 x 4 x 2                                                    */
/*                                                                             */ 
/*******************************************************************************/

Is this the version you have installed?

Share this post


Link to post
Share on other sites

The one I have says this:

© Chaot!X@weird.cologne.de (Lutz Uhlmann)

Instead of this:

© lgeo@digitalbricks.org (Lutz Uhlmann)

Don't know why, I downloaded it from the LDraw site.

Edited by Palathadric

Share this post


Link to post
Share on other sites

The one I have says this:

© Chaot!X@weird.cologne.de (Lutz Uhlmann)

Instead of this:

© lgeo@digitalbricks.org (Lutz Uhlmann)

Again, it looks like an older version. Try installing all of the LGEO files from the last official release.

And if you've installed any of my files you'll need to reinstall them afterwards from my updated parts pack.

Share this post


Link to post
Share on other sites

Okay, silly me, I found what the problem is. I had the correct version of lgeo, but then I had an lgeofix.zip file, containing all these "fixes." I had downloaded this when I had downloaded the lgeo.zip file, but apparently it must have been for an older version of lgeo and not necessary for the newer version, or something. :wall:

Sorry for bothering you all the time with this, but thanks for your patience. :classic:

Share this post


Link to post
Share on other sites

GUIDE UPDATE: I have updated the LGEO-Update.zip file in the Downloads section with 12 new parts.

The part I'm most pleased to have created (from scratch!) is 30367 Cylinder 2 x 2 with Dome Top. This part never translates well using LDView's automatic primitive substitution, so the LGEO version shouldn't stand out or look out of place when rendering.

LGEO-Update-2012-08-28.png

Most of the FIXED, UPDATED and NEW LGEO parts as of 2012-08-28

Share this post


Link to post
Share on other sites

For some reason I always like that update pictures, I really don't know why, but I really like them :grin::laugh:

May I ask how you create a new LGEO part? I'm just curious.

Edited by legolijntje

Share this post


Link to post
Share on other sites

For some reason I always like that update pictures, I really don't know why, but I really like them :grin::laugh:

I'm glad someone other than me appreciates them! :laugh:

May I ask how you create a new LGEO part? I'm just curious.

LGEO parts are created using geometrical shapes: usually spheres, boxes (cubes and cuboids) and tori (plural of torus, not a girl's name :tongue:). You then use other functions that POV-Ray understands, such as "difference" and "intersection" to "sculpt" the shapes.

For instance, to make a tube, you would create a cylinder and then a second cylinder with a smaller radius. Using the "difference" function, you take the space of the smaller cylinder away from the larger cylinder, creating a tube.

LGEO includes its own definitions for sizes and distances, which makes it much easier to define shapes quickly.

Share this post


Link to post
Share on other sites

For some reason I always like that update pictures, I really don't know why, but I really like them :grin::laugh:

Same here, but I thought everyone would look at me in this: :wacko: light, if I said so. :look::laugh:

Interesting also, the part about creating LGEO parts. Good work! :thumbup:

Share this post


Link to post
Share on other sites

Interesting also, the part about creating LGEO parts. Good work! :thumbup:

Thank you!

GUIDE UPDATE: I have updated the LGEO-Update.zip file in the Downloads section with 4 fixed parts.

LGEO-Update-2012-08-30.png

The 4 FIXED LGEO parts added on 2012-08-30

There were a few parts that would not render correctly when using POV-Ray 3.6 (or higher) that brought up an error, which would only work if you specified #version 3.1; at the beginning of the POV-Ray file:

Also there seems to be an error with lg_4475.inc do you know what I can to fix this?

It turns out that all that was missing from these files were a few semicolons [;] in the right places, which broke compatibility, and I have now fixed four of the parts that I've come across. If anyone comes across any errors that highlights text that looks a bit like that shown below (usually starting with #declare), then please let me know and I should be able to fix it.

Example:

#declare ROT = 0

Share this post


Link to post
Share on other sites

It turns out that all that was missing from these files were a few semicolons [;] in the right places, which broke compatibility, and I have now fixed four of the parts that I've come across. If anyone comes across any errors that highlights text that looks a bit like that shown below (usually starting with #declare), then please let me know and I should be able to fix it.

Example:

#declare ROT = 0

Will do.

Share this post


Link to post
Share on other sites

Hello all. It's time for another small...

GUIDE UPDATE: I have updated the LGEO-Update.zip file in the Downloads section with 4 new parts.

This addition focuses on tyres, as I've added four to the parts pack (which can be seen at the top of the image). Two of the tyres are not yet available in LDraw (not even on the Parts Tracker), but as they are essentially modifications of older parts it seemed obvious to quickly add them.

LGEO-Update-2012-09-02.png

Most of the FIXED, UPDATED and NEW LGEO parts as of 2012-09-02

The two to the very right (Tyre 24 x 14 with Shallow Staggered Treads [and Centre Band]) are new to the LGEO library, and it took me some time/head-scratching to get the two tread layers looking right. They're still not perfect, but I'm pretty happy with them:

LGEO-Update-2012-09-02-tyres.png

Share this post


Link to post
Share on other sites

Wow! Those tyres are looking really good! Nice work! :thumbup:

Share this post


Link to post
Share on other sites

Was rendering this set, and was a bit...disturbed...by the colour results for the crown. I used chrome gold, but don't know if I should use a different colour or if there's some way the colour can be fixed? :sceptic:

king_leo_spear_cart_with_small.png

Share this post


Link to post
Share on other sites

I cant believe I finally got POV-Ray to work, UAC (User Account Control) was the issue and once I turned it off the rendering work straight away.

Off to make a Flickr account I go!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.