(2019-10-19, 6:49)Arjan Wrote: I'm trying to convert LDraw ldr-files first to a POV-Ray pov-file using pyldraw and then to a png using POV-Ray.
On a Mac I have installed pyldraw using pip and POV-Ray using Homebrew.
As a first simple test I have tried to convert the car.pov from the testdata from pyldraw to png using POV-Ray (basically just using "povray car.pov"). Unfortunately I get the following error message:
Code:==== [Parsing...] ==========================================================
File '~/repos/pyldraw-0.8.2/tests/test_data/car.pov' line 7979:
Parse Warning: Should have at least 2 objects in csg.
File '~/repos/pyldraw-0.8.2/tests/test_data/car.pov' line 11261:
Parse Warning: Should have at least 2 objects in csg.
File '~/repos/pyldraw-0.8.2/tests/test_data/car.pov' line 16690:
Parse Error: Expected 'object or directive.', float function 'float constant'
found instead
Fatal error in parser: Cannot parse input.
Render failed
I have spent quite some time on Google to find a solution to this but I'm not finding anything closely related. Does anyone know what I'm doing wrong?
Hi
Do you really want to use Pov-ray or could it also be a other program?
Why do not you use Studio2. 0 for rendering?
If you want use Pov-ray, you could also use LDCad to export the model to a .pov file and then render with Pov-ray. You also can use LDCad and export directly to a .png File.
If nothing goes right, go left.