RE: LDView povray export
2019-06-21, 21:56 (This post was last modified: 2019-06-21, 21:58 by Michael Horvath.)
2019-06-21, 21:56 (This post was last modified: 2019-06-21, 21:58 by Michael Horvath.)
(2019-06-21, 2:04)Travis Cobbs Wrote: I'm not going to change this, because I don't really agree, and your suggested change will change the behavior for everyone else. If you want to define your own camera, #declare LDXSkipCamera to anything, and the generated POV will omit defining a camera. If you want to use the defined camera, don't define LDXSkipCamera (or #undef it instead of setting it to false if you define it in multiple places). Similarly, I will add #ifndef (LDXSkipBackground) around the background definition, so you can define that (to any value) to have LDView's POV omit its background declaration.
I did a quick test rendering the following scene:
Code:
// -------------------------------------------------------------
// Test code
#undef LDXSkipCamera
// -------------------------------------------------------------
// LDView models
#include "ldv_nice_dune_rover_new.pov"
POV-Ray issues a warning, but thankfully does not halt the render with an error.
Quote:line 5: Parse Warning: Attempt to undef unknown identifier