LDraw.org Discussion Forums
LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html)
+--- Thread: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 (/thread-11863.html)

Pages: 1 2


LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Michael Horvath - 2014-01-09

I've created a wiki page showing the difference between renders done in POV-Ray 3.62 versus POV-Ray 3.7, and created using LDView versus L3P.exe. You can find it here:

https://code.google.com/p/datsville/wiki/TestRenders

The lighting is the same in all twelve renders; and a change in lighting might be better suited to some renders than others.


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Roland Melkert - 2014-01-09

I'm running Travis' Datsville pos at the moment, and the first time it derailed on a 3.6 -> 3.7 issue. So you might want to mention that somewhere too.

3.7 won't accept float declare's without a trailing ';' anymore.

It's in some of the lgeo files.


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Travis Cobbs - 2014-01-09

Thanks. My export code has provisions for version-wrapping individual files, but there has to be a directive in LEGO.xml to trigger it, and I can't remember what that directive is off the top of my head. My intention is for that directive to be present for known problem LGEO files, and not for others.


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Michael Horvath - 2014-01-09

Crap.

There are a lot of LGEO files that would need fixing...


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Travis Cobbs - 2014-01-09

Actually, I was wrong about this. It is functionality that I meant to add, but haven't yet. It's another thing on my list of fixes I need for 4.2. Right now, LGEO.xml has a <POVFilename> element that specifies an inc file. I want to add POVVersion as an attribute of that element (for instance, <POVFilename POVVersion="3.6">lg_2345.inc</POVFilename>), but I haven't done that yet. Once I have that working, I need to somehow come up with a list of "broken" LGEO include files.


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Roland Melkert - 2014-01-09

Up to now it only stopped for 71173 which I corrected.

Now it's almost running for 2 hours and it's still going, there are some 'possible parse error' messages scrolling by though, but it's not stopping for them. Bit weird if you think about it why exit on one, and ignore others?


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Michael Horvath - 2014-01-09

What happens after you add the attribute to the part? You know you can't mix and match different #version directives in POV-Ray.


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Travis Cobbs - 2014-01-10

Actually, I'm pretty sure you can switch it on the fly. I already have code to do this in another situation (although I haven't been able to track down what I can do to trigger the code). The output looks something like so:

Code:
#if (version > 3.6) #version 3.6; #end
#include "somefile.inc"
#if (version < LDXOrigVer) #version LDXOrigVer; #end



Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Michael Horvath - 2014-01-10

I thought they stopped this in POV 3.7? Anyway I posted a note in their newsgroups asking them to clarify.


Re: LDView vs. L3P.exe, POV 3.62 vs. POV 3.7 - Travis Cobbs - 2014-01-10

They may have stopped supporting this in 3.7. Since I can't figure out how to trigger the code that generates that output, I can't really test. You could use the "broken" LGEO part in a small model, then put the above code around its #include to see what happens, I suppose. (I can do this also; I'll have to, since adding support for POV version-specific LGEO includes will be pointless if it doesn't work in POV 3.7.)