Jump to content
THIS IS THE TEST SITE OF EUROBRICKS!
THIS IS THE TEST SITE OF EUROBRICKS!

Featured Replies

Posted

G'day. Can anyone help me to fix this problem with a model that I have done. It was a MLCad file>LDview>then export to povray. I get this error

// 0 BLACK / 26 BLACK [ORIGINAL LGEO srgb]

// LDRAW

// PEERON <27,42,52> (LOOKS TOO BLUE)

#declare lg_black = texture {

pigment { color srgb <33,33,33>/255 } (this line is highlighted yellow)

finish { lg_solid_finish }

Its under the "solid color" heading

At the bottom of the Povray window it says

Parse Error: No Matching } in 'pigment', undeclared identifier 'srgb' found instead

Ive used the all in one installer for MlCad.

thank you

Edited by jono.rocky

The "srgb" bit is only recognized by POV-Ray 3.7.

I have to admit that this is probably due to an oversight on my part when submitting my last batch of LGEO files for inclusion in the LDraw All-in-One-Installer (AIOI).

The AIOI only includes POV-Ray 3.6 as, at the time, 3.7 was not released as a finalised version and the LDraw team would only release an AIOI with a finalised version of POV-Ray. I had been using 3.7 for a long time prior to this, so the colour file was optimized for 3.7.

So, there are two solutions:

  1. Install POV-Ray 3.7 (which is now the official release as of 6th Nov 2013).
  2. Use Notepad to replace "srgb" with "rgb" in the "lg_color.inc" file.

Personally, I would strongly advise that you upgrade -- 3.7 removes a lot of issues and peculiarities from 3.6. It also supports multi-core processing, which means (relatively) faster rendering, and that can only be a Good Thing™. :grin:

Incidentally, if the AIOI installs all of the files I supplied, there should be a "read me" file somewhere which goes into a little more detail about the RGB/SRGB change.

For quick access, I have uploaded a version of that file here: C3POwen's LGEO Update Pack

  • Author

That sounds like an easy fix. Ill update Pov Ray to 3.7. Thank you for every ones help here. Ill reply here if this fix's the issue.

Cheers Jono

Edited by jono.rocky

  • Author

Thank you both again. this worked. I updated to 3.7 but now pov ray wont render the technic 16 gear clutch smooth gear it stops when it gets to

}

object {

LDX_48_slash_4_dash_4ri100_dot_dat

matrix <0.17,0,0,0,0,-1,0,0.17,0,0,0,10>

jono

This appears to be an issue with how LDView converts the file to the POV-Ray format, and it's happened before in a few other instances.

Your quickest fix for this would be to use the "Search > Replace" option within POV-Ray to fix this. In the "Search" field enter:

LDX_48_slash_4_dash_4ri100_dot_dat_in_part

and in the "Replace with" field enter:

LDX_48_slash_4_dash_4rin100_dot_dat_in_part

Now click "Replace All" and try again. You should now find that your render will run.

I can pass this issue on to LDView's creator Travis, as he has fixed similar issues in the past.

  • Author

This appears to be an issue with how LDView converts the file to the POV-Ray format, and it's happened before in a few other instances.

Your quickest fix for this would be to use the "Search > Replace" option within POV-Ray to fix this. In the "Search" field enter:

LDX_48_slash_4_dash_4ri100_dot_dat_in_part

and in the "Replace with" field enter:

LDX_48_slash_4_dash_4rin100_dot_dat_in_part

Now click "Replace All" and try again. You should now find that your render will run.

I can pass this issue on to LDView's creator Travis, as he has fixed similar issues in the past.

Thank you this fix worked....... until I got to the next problem. It actually went from being stumped at the beginning to making it half way. Dont think Im sposed to render this technic truck. Thanks again. Jono

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.
Sponsored Links