Jump to content


[Guide] Rendering LDraw models using POV-Ray

LDraw POV-Ray Rendering render

  • Please log in to reply
430 replies to this topic

#176 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 24 July 2012 - 08:24 PM

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

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



#177 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 24 July 2012 - 10:07 PM

Ah, the long-awaited classic minifig head, at last! Thanks so much, C3POwen! :classic:
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#178 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 12 August 2012 - 02:45 PM

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.

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


Edited by C3POwen, 12 August 2012 - 04:13 PM.


#179 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 12 August 2012 - 09:11 PM

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

Edited by Palathadric, 12 August 2012 - 09:12 PM.

They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#180 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 14 August 2012 - 12:51 AM

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?
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#181 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 14 August 2012 - 07:57 AM

View PostPalathadric, on 14 August 2012 - 12:51 AM, said:

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.

#182 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 14 August 2012 - 01:26 PM

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:
Posted Image
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#183 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 14 August 2012 - 05:39 PM

View PostPalathadric, on 14 August 2012 - 01:26 PM, said:

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.

View PostPalathadric, on 14 August 2012 - 01:26 PM, said:

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.

#184 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 14 August 2012 - 09:36 PM

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:
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#185 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 15 August 2012 - 08:04 AM

View PostPalathadric, on 14 August 2012 - 09:36 PM, said:

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.

View PostPalathadric, on 14 August 2012 - 09:36 PM, said:

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.

#186 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 20 August 2012 - 01:15 PM

View PostC3POwen, on 14 August 2012 - 05:39 PM, said:

-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?
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#187 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 20 August 2012 - 05:06 PM

View PostPalathadric, on 20 August 2012 - 01:15 PM, said:

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?

#188 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 20 August 2012 - 05:23 PM

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, 20 August 2012 - 05:23 PM.

They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#189 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 20 August 2012 - 05:46 PM

View PostPalathadric, on 20 August 2012 - 05:23 PM, said:

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.

#190 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 20 August 2012 - 09:17 PM

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:
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#191 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 28 August 2012 - 08:02 PM

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.

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



#192 legolijntje

legolijntje

    Posts: 2027
    Joined: 06-June 10
    Member: 11214
    Country: The Netherlands

Posted 28 August 2012 - 08:47 PM

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, 28 August 2012 - 08:47 PM.


#193 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 28 August 2012 - 09:55 PM

View Postlegolijntje, on 28 August 2012 - 08:47 PM, said:

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:

View Postlegolijntje, on 28 August 2012 - 08:47 PM, said:

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.

#194 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 28 August 2012 - 11:18 PM

View Postlegolijntje, on 28 August 2012 - 08:47 PM, said:

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:
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#195 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 30 August 2012 - 08:58 PM

View PostPalathadric, on 28 August 2012 - 11:18 PM, said:

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.

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

View PostPalathadric, on 11 May 2012 - 08:51 PM, said:

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


#196 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 30 August 2012 - 09:48 PM

View PostC3POwen, on 30 August 2012 - 08:58 PM, said:

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.
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#197 C3POwen

C3POwen

    Posts: 405
    Joined: 01-November 10
    Member: 14029
    Country: United Kingdom

Posted 02 September 2012 - 10:05 PM

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.

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

Posted Image



#198 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 03 September 2012 - 08:24 AM

Wow! Those tyres are looking really good! Nice work! :thumbup:
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#199 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5371
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 23 September 2012 - 07:38 PM

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:
Posted Image
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#200 Shroud

Shroud

    Posts: 120
    Joined: 06-April 10
    Member: 10165
    Country: Australia

Posted 26 September 2012 - 05:37 PM

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!
Posted Image





Also tagged with one or more of these keywords: LDraw, POV-Ray, Rendering, render

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users