LDraw.org Discussion Forums

Full Version: Wrong color display in POV-Ray
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, I loaded Lego models into LDView 4.3 and exported them as POV-Ray files. I noticed that some colors are displayed incorrectly in POV-Ray. I haven't found a way to adjust the colors. In the following picture, the output of LDView can be seen in the upper part, saved as a PNG file, and in the lower part the representation in PovRay. There are particularly large deviations in the transparent colors. Am I doing something wrong or how can I adjust the colors?



[attachment=5939]




Manfred
(2020-12-09, 22:59)Manfred Schäfer Wrote: [ -> ]Hello, I loaded Lego models into LDView 4.3 and exported them as POV-Ray files. I noticed that some colors are displayed incorrectly in POV-Ray. I haven't found a way to adjust the colors. In the following picture, the output of LDView can be seen in the upper part, saved as a PNG file, and in the lower part the representation in PovRay. There are particularly large deviations in the transparent colors. Am I doing something wrong or how can I adjust the colors?

Do you have LGEO enabled for your POV export? If not, LDView should generate all the colors and have them have the same RGB as it uses internally. If so, though, it will use the LGEO colors defined in LGEO.xml, which might not match the current LDConfig.ldr file that defines LDraw colors.
(2020-12-10, 2:23)Travis Cobbs Wrote: [ -> ]Do you have LGEO enabled for your POV export? If not, LDView should generate all the colors and have them have the same RGB as it uses internally. If so, though, it will use the LGEO colors defined in LGEO.xml, which might not match the current LDConfig.ldr file that defines LDraw colors.

Thank you for your fast replay.
No, I don't enabled LGEO. In the following picture you can see the regarding part of the options.
Is there another additional menue where I have to disable LGEO?

[attachment=5940]

Manfred
(2020-12-10, 22:33)Manfred Schäfer Wrote: [ -> ]Thank you for your fast replay.
No, I don't enabled LGEO. In the following picture you can see the regarding part of the options.
Is there another additional menue where I have to disable LGEO?

No, the "Use XML mapping file" option is the only place to enable LGEO. I'm not sure what is going on. Could you email your test file to the LDView email address? I will investigate.
(2020-12-11, 0:13)Travis Cobbs Wrote: [ -> ]No, the "Use XML mapping file" option is the only place to enable LGEO. I'm not sure what is going on. Could you email your test file to the LDView email address? I will investigate.

Hello Travis,

Did you get my email?

Regards

Manfred
(2021-01-07, 12:05)Manfred Schäfer Wrote: [ -> ]Hello Travis,

Did you get my email?

Regards

Manfred

Sorry for the lack of response. I did get the mail, but haven't yet determined the source of the problem.
(2021-01-07, 18:28)Travis Cobbs Wrote: [ -> ]Sorry for the lack of response. I did get the mail, but haven't yet determined the source of the problem.

Thanks, no problem. I had already suspected that I had made a mistake sending the email. Smile

Regards

Manfred
(2020-12-09, 22:59)Manfred Schäfer Wrote: [ -> ]Hello, I loaded Lego models into LDView 4.3 and exported them as POV-Ray files. I noticed that some colors are displayed incorrectly in POV-Ray. I haven't found a way to adjust the colors. In the following picture, the output of LDView can be seen in the upper part, saved as a PNG file, and in the lower part the representation in PovRay. There are particularly large deviations in the transparent colors. Am I doing something wrong or how can I adjust the colors?

Sorry it took so long, but I finally think I figured out what is wrong. I think that the problem is caused by a difference in the way that POVRay treats colors in POVRay 3.7 and later. So I came up with a fix that I only activate if you tell LDView that you are exporting for POVRay 3.7 or later. Let me know what platform to build for (Windows 32-bit, Windows 64-bit, macOS), and I'll PM you with a link to a test build with a fix that you can test. (Note: if you need a Qt version, it will have to wait for the next Beta release.)

I also discovered that colors that have some transparency, but aren't "transparent LEGO" (like glow-in-the-dark) weren't working right either. I also attempted to fix those.
(2021-02-28, 0:33)Travis Cobbs Wrote: [ -> ]Sorry it took so long, but I finally think I figured out what is wrong. I think that the problem is caused by a difference in the way that POVRay treats colors in POVRay 3.7 and later. So I came up with a fix that I only activate if you tell LDView that you are exporting for POVRay 3.7 or later. Let me know what platform to build for (Windows 32-bit, Windows 64-bit, macOS), and I'll PM you with a link to a test build with a fix that you can test. (Note: if you need a Qt version, it will have to wait for the next Beta release.)

I also discovered that colors that have some transparency, but aren't "transparent LEGO" (like glow-in-the-dark) weren't working right either. I also attempted to fix those.

Hello Travis,
That sounds good. Smile
I am using Windows 7 (32-bit). Do you still have my email address? If not, I'll send it to the LDView email address. 

Greeting.

Manfred
(2021-02-28, 21:28)Manfred Schäfer Wrote: [ -> ]Hello Travis,
That sounds good. Smile
I am using Windows 7 (32-bit). Do you still have my email address? If not, I'll send it to the LDView email address. 

Greeting.

Manfred

Thanks. I emailed you a link to a 32-bit Windows test build.
Pages: 1 2