C3POwen, on 27 May 2012 - 11:39 AM, said:
Rendering LDraw models using POV-Ray
#126
Posted 27 May 2012 - 11:38 PM
Won in Sandy's Mafia School: "A Bedtime Story", as Alladin: Scum (Role Cop)
Lost in Masked Builder's "Jedi Temple" Mafia Game, as Obi-Wan Kenobi: Town (Vanilla)
Lynched on Day 2 of Bob's "Excalibur 2.0" Mafia Game as Ensign Brian Pewter: Town (Vanilla)
Won in TinyPiesRUs' "Ragnarok Now" Mafia Game, as Patrekr the Red: Town (Paranoid Axe Owner)
Killed by the Vigilante in Bob's "The Pearl" Mafia Game as Timothy: Tow (Vanilla)

Playing in Heroica as Monk Pretzel and his 99 Pieces, a Level 11 Cleric
Heroica Stats
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic
#127
Posted 28 May 2012 - 09:34 AM
Palathadric, on 27 May 2012 - 11:38 PM, said:
If you need to download a different version again, I'll make sure it's clear.
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#128
Posted 28 May 2012 - 09:55 AM
Nah! I didn't really use many transparent neon colours.
Edited by Palathadric, 28 May 2012 - 09:55 AM.
Won in Sandy's Mafia School: "A Bedtime Story", as Alladin: Scum (Role Cop)
Lost in Masked Builder's "Jedi Temple" Mafia Game, as Obi-Wan Kenobi: Town (Vanilla)
Lynched on Day 2 of Bob's "Excalibur 2.0" Mafia Game as Ensign Brian Pewter: Town (Vanilla)
Won in TinyPiesRUs' "Ragnarok Now" Mafia Game, as Patrekr the Red: Town (Paranoid Axe Owner)
Killed by the Vigilante in Bob's "The Pearl" Mafia Game as Timothy: Tow (Vanilla)

Playing in Heroica as Monk Pretzel and his 99 Pieces, a Level 11 Cleric
Heroica Stats
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic
#129
Posted 28 May 2012 - 01:55 PM
Palathadric, on 21 May 2012 - 10:18 PM, said:
LDView Travis, on 22 May 2012 - 12:31 AM, said:
If it's of use, I've attached a zip file containing a corrected LDraw DAT file.
Attached Files
Edited by C3POwen, 28 May 2012 - 02:02 PM.
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#130
Posted 28 May 2012 - 03:54 PM
Won in Sandy's Mafia School: "A Bedtime Story", as Alladin: Scum (Role Cop)
Lost in Masked Builder's "Jedi Temple" Mafia Game, as Obi-Wan Kenobi: Town (Vanilla)
Lynched on Day 2 of Bob's "Excalibur 2.0" Mafia Game as Ensign Brian Pewter: Town (Vanilla)
Won in TinyPiesRUs' "Ragnarok Now" Mafia Game, as Patrekr the Red: Town (Paranoid Axe Owner)
Killed by the Vigilante in Bob's "The Pearl" Mafia Game as Timothy: Tow (Vanilla)

Playing in Heroica as Monk Pretzel and his 99 Pieces, a Level 11 Cleric
Heroica Stats
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic
#131
Posted 28 May 2012 - 06:20 PM
Palathadric, on 28 May 2012 - 03:54 PM, said:
No. C3POwen just rotated the studs, not the rest of the part. Rotating the rest of the part would cause it to no longer match the official one, which would break any models using it. The LGEO part is wrong, so my posted LGEO.xml fix is still needed.
C3POwen's fix is only visible if you have stud logo textures enabled in LDView, or have a custom stud primitive that includes the "LEGO" text.
#132
Posted 28 May 2012 - 06:38 PM
Palathadric, on 28 May 2012 - 03:54 PM, said:
LDView Travis, on 28 May 2012 - 06:20 PM, said:
If you want a fixed LGEO part, I have modified the default "lg_2539.inc" file to rotate the entire part by 90 degrees, so should now match the official part when exporting models directly from LDView to POV-Ray.
All you need to do is download the below file and save it to the "C:\Program Files\LDraw\LGEO\lg" folder (or wherever LGEO is installed), overwriting the previous version. This means you don't have to modify the LGEO.xml file, but if you reinstall LGEO, it will overwrite my modified version.
DOWNLOAD: lg_2539.inc
If it's useful, I can post any other "broken" LGEO files that I come across and am able to fix. The actual POV-Ray language it's written in is a bit beyond me, but I can often work out what needs to be changed to fix a file.
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#133
Posted 28 May 2012 - 11:49 PM
Yes, it probably would be great if there were any other files that need fix-ups. If I run into any errors, I will definitely let you know.
Won in Sandy's Mafia School: "A Bedtime Story", as Alladin: Scum (Role Cop)
Lost in Masked Builder's "Jedi Temple" Mafia Game, as Obi-Wan Kenobi: Town (Vanilla)
Lynched on Day 2 of Bob's "Excalibur 2.0" Mafia Game as Ensign Brian Pewter: Town (Vanilla)
Won in TinyPiesRUs' "Ragnarok Now" Mafia Game, as Patrekr the Red: Town (Paranoid Axe Owner)
Killed by the Vigilante in Bob's "The Pearl" Mafia Game as Timothy: Tow (Vanilla)

Playing in Heroica as Monk Pretzel and his 99 Pieces, a Level 11 Cleric
Heroica Stats
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic
#134
Posted 03 June 2012 - 12:02 PM
I also plan on adding render time, and have added a note at the beginning of the tutorial in regards to this.
I'm also toying with changing the example model to something a bit more recent/complex.
EDIT: I think I'm going to use the tipper from 4201 Loader and Tipper.
EDIT 2: I have also added some fixed and new LGEO parts to the guide.
Edited by C3POwen, 04 June 2012 - 10:23 AM.
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#135
Posted 06 June 2012 - 04:22 PM
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#136
Posted 06 June 2012 - 04:43 PM
Do you think the guide could be considered "complete" now, even if still a work in progress?
#137
Posted 06 June 2012 - 05:08 PM
Calabar, on 06 June 2012 - 04:43 PM, said:
Do you think the guide could be considered "complete" now, even if still a work in progress?
I would say it is pretty much complete. The only other thing that could be added is a section about HDR lighting, but I've yet to get this working to my satisfaction yet.
For those that are wondering what HDR lighting is, it involves creating a giant sphere around that model and mapping an image on to the sphere, and using this as part of the light source so that you get realistic-looking reflections.
The test renders that I've tried this with come out with colours that look too dark and washed out, and adding extra lights does not seem to help.
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#138
Posted 06 June 2012 - 09:16 PM
Won in Sandy's Mafia School: "A Bedtime Story", as Alladin: Scum (Role Cop)
Lost in Masked Builder's "Jedi Temple" Mafia Game, as Obi-Wan Kenobi: Town (Vanilla)
Lynched on Day 2 of Bob's "Excalibur 2.0" Mafia Game as Ensign Brian Pewter: Town (Vanilla)
Won in TinyPiesRUs' "Ragnarok Now" Mafia Game, as Patrekr the Red: Town (Paranoid Axe Owner)
Killed by the Vigilante in Bob's "The Pearl" Mafia Game as Timothy: Tow (Vanilla)

Playing in Heroica as Monk Pretzel and his 99 Pieces, a Level 11 Cleric
Heroica Stats
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic
#139
Posted 07 June 2012 - 08:27 AM
PS: I usually copy these lines after camera settings, replace the original lights created by Ldraw. I rendered the model in 3200x2400 and then resize it with Photoshop bicubic option to 1600x1200.
//Radiosity
global_settings{
assumed_gamma 1.4
max_trace_level 10
radiosity
{
pretrace_start 0.08
pretrace_end 0.005
count 800
nearest_count 1
error_bound 0.02
recursion_limit 1
low_error_factor 0.2
gray_threshold 0
minimum_reuse 0.015
brightness 1.0
adc_bailout 0.01/2
}
}
//Light
light_source {
<1.5*LDXRadius,-2*LDXRadius,-1.5*LDXRadius> + LDXCenter
color rgb .4
area_light 200, 200, 10, 10
adaptive 1
jitter
circular
orient
}
//HDRI lighting
sphere {
<0,0,0>,10000
pigment {
image_map { hdr "rnl_probe.hdr" once interpolate 2 map_type 7 }
}
finish { ambient 1 diffuse 0 }
hollow
}
Edited by Calabar, 07 June 2012 - 05:47 PM.
Added "code" tag
#140
Posted 07 June 2012 - 05:28 PM
whitew0lf, on 07 June 2012 - 08:27 AM, said:
Note: you should be able to put this code into an include file, set that file as the top include in LDView's export settings, and then add the following to the include file to have LDView's generated lights be ignored:
#declare LDXSkipLight1 = 1; #declare LDXSkipLight2 = 1; #declare LDXSkipLight3 = 1;
#141
Posted 07 June 2012 - 06:00 PM
whitew0lf, on 07 June 2012 - 08:27 AM, said:
// Radiosity
global_settings {
assumed_gamma 1.4
}Your settings are also almost identical to the Radiosity_Final macro included with POV-Ray, but with a few tweaks. I'll have to give them a go and see how they turn out!
LDView Travis, on 07 June 2012 - 05:28 PM, said:
#declare LDXSkipLight1 = 1; #declare LDXSkipLight2 = 1; #declare LDXSkipLight3 = 1;
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#142
Posted 16 June 2012 - 02:11 PM
When I complete my model in MLCad , I convert it to .pov file & then ready to render it but ...
The trouble is : POV-Ray often render image in low-res : 320x240 ( although I set resolution to 1280x1024 - [1280x1024, AA 0.3] )
Low-res problem ?

LDView :

Hope you guys will help me , " I'm Noob " ...
Edited by FMP, 16 June 2012 - 02:28 PM.
#143
Posted 17 June 2012 - 11:06 AM
FMP, on 16 June 2012 - 02:11 PM, said:
The trouble is : POV-Ray often render image in low-res : 320x240 ( although I set resolution to 1280x1024 - [1280x1024, AA 0.3] )
You should be able to do this from Tools > Edit resolution INI file within POV-Ray.
[You may also want to resize the images you posted, so they stay within the 800x600 limit on Eurobricks.]
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#144
Posted 17 June 2012 - 12:47 PM
C3POwen, on 17 June 2012 - 11:06 AM, said:
You should be able to do this from Tools > Edit resolution INI file within POV-Ray.
[You may also want to resize the images you posted, so they stay within the 800x600 limit on Eurobricks.]
@C3P - Thank for your reply ...
Can you explain more detail ? - I'm using default quickres.ini of POV-Ray
Sometimes POV-Ray render with nice result - " rarely " ( high-res ) & sometime it render with low-res ,I don't know why ?
I try to render your model with same result :
Edited by FMP, 17 June 2012 - 12:54 PM.
#145
Posted 17 June 2012 - 03:08 PM
FMP, on 17 June 2012 - 12:47 PM, said:
I try to render your model with same result
Looking at the file will help me determine if it's a declaration in the file that's causing a problem, or POV-Ray itself.
Could you also copy the details of the "Messages" pane into a text document (open the "Messages" tab, go to Edit > Copy Pane and then paste into a text file) and include that in the zip file as well?
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#146
Posted 17 June 2012 - 03:43 PM
C3POwen, on 17 June 2012 - 03:08 PM, said:
Looking at the file will help me determine if it's a declaration in the file that's causing a problem, or POV-Ray itself.
Could you also copy the details of the "Messages" pane into a text document (open the "Messages" tab, go to Edit > Copy Pane and then paste into a text file) and include that in the zip file as well?
Thank for your help ...
This is my files : [199KB] - http://www.mediafire...1sl1b83rjb15gfj
Hope that you will reply soon ...
#147
Posted 17 June 2012 - 04:33 PM
FMP, on 17 June 2012 - 03:43 PM, said:
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#148
Posted 17 June 2012 - 06:30 PM
C3POwen, on 17 June 2012 - 04:33 PM, said:
Sorry man , my bad ...
" Render -> Edit Settings\Render -> INI File - Clear " & then " Render " ? This is your mean , right ?
This is 2nd message file : [Attachments File] -
Message II.txt 1.78K
2 downloads
#149
Posted 17 June 2012 - 07:01 PM
Output Options Image resolution 320 by 240 (rows 1 to 240, columns 1 to 320). Output file: C:\Users\admin\Documents\6941 Battrax.bmp, 24 bpp (system format) Graphic display......On (gamma: 2.2) Mosaic preview.......Off CPU usage histogram..Off Continued trace......OffCan you go to Render > Edit Settings/Render and under INI File click on Browse and select the "quickres.ini" file. Now from the dropdown to the right of Section select the resolution you want to use (e.g. 1280x1024, No AA) and click on the Set but don't render button. This will close the window.
Now render the image and, if it does not render at a size higher than 320x240, can you please attach the subsequent "Messages" information.
Rendering tip: The LDraw colour palette contains definitions for rubber colours. If tyres are set to colour 256 (Rubber Black), they will look more like rubber when it comes to rendering.
#150
Posted 17 June 2012 - 08:06 PM
C3POwen, on 17 June 2012 - 07:01 PM, said:
Output Options Image resolution 320 by 240 (rows 1 to 240, columns 1 to 320). Output file: C:\Users\admin\Documents\6941 Battrax.bmp, 24 bpp (system format) Graphic display......On (gamma: 2.2) Mosaic preview.......Off CPU usage histogram..Off Continued trace......OffCan you go to Render > Edit Settings/Render and under INI File click on Browse and select the "quickres.ini" file. Now from the dropdown to the right of Section select the resolution you want to use (e.g. 1280x1024, No AA) and click on the Set but don't render button. This will close the window.
Now render the image and, if it does not render at a size higher than 320x240, can you please attach the subsequent "Messages" information.
Thank man but no change ??? ...
This is the best " crazy " problem I have never met before ...
Message III : [Attachments File] -
Message III.txt 1.95K
4 downloadsHey man, I have just known that there are more way to render " .ldraw " models ( by using : L3P + MLCAD + POV-Ray [Old] - MLCAD + LDView + POV-Ray [Your Way] - LEOCAD + Blender [3] - LEOCAD + MLCAD + Blender [4] )
Well , see you later ...
Edited by FMP, 17 June 2012 - 08:09 PM.
Also tagged with one or more of these keywords: LDraw, POV-Ray, Rendering, render
Themes →
LEGO Licensed →
Rise of the Iron MenStarted by hjmediastudios , 04 Feb 2013 |
|
|
||
Themes →
LEGO Technic, Mindstorms & Model Team →
Technic pickup truck + building instructionsStarted by Hedgie , 31 Jan 2013 |
|
|
||
Themes →
LEGO Town →
MOC: Modular "Bishop's Palace" in DebrecenStarted by Yooha , 26 Jan 2013 |
|
|
||
Themes →
LEGO Train Tech →
Where are PF tracks in Bricksmith / LDraw?Started by robt , 17 Jan 2013 |
|
|
||
Themes →
LEGO Sci-Fi →
[LDD] Hawken-like MechStarted by -N13OS- , 16 Jan 2013 |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











