(2016-09-07, 16:53)Roland Melkert Wrote: I've been working on POVRay export for LDCad 1.6 but it is more animation orientated.
Is camera.dat an offical part? I can't seem to find it though.
I've been (mis)using the below combined with scripts in my current tests:
Code:0 FILE camera.ldr
1 0 0 25 -37 -1 0 0 0 1 0 0 0 -1 30148.dat
This places the 'lens' at the part origin pointing into the local z-axis but you still need to set the zoom fov etc manually (through script also) same goes for lights if you want anything else besides point lights.
I believe I'm the only one using the private and highly unofficial files camera.dat and look_at.dat. Those are supported by L3PAO and LDA. It doesn't matter what content they have, the only thing that really matters is their file names. These are my files:
Code:
0 ~Camera Position
0 Name: Camera.dat
0 Author: Tore Eriksson
0 Un-official part
2 24 -40 0 0 40 0 0
2 24 0 -40 0 0 40 0
2 24 0 0 -40 0 0 40
0 L3P IFNOTPOV
1 0 0 25 -37 -1 0 0 0 1 0 0 0 -1 30148.dat
0 L3P ENDPOV
0
Code:
0 ~Look_at Position
0 Name: look_at.dat
0 Author: Tore Eriksson
0 Un-official part
2 24 -20 0 0 20 0 0
2 24 0 -200 0 0 20 0
2 24 0 0 -20 0 0 20
0 L3P IFNOTPOV
1 42 0 16 0 1 0 0 0 1 0 0 0 1 30153.dat
0 L3P ENDPOV
0
Code:
0 Example
0 Name: example.ldr
1 0 100 -80 0 1 0 0 0 1 0 0 0 1 camera.dat
1 0 64 -40 10 1 0 0 0 1 0 0 0 1 look_at.dat
1 7 0 0 0 1 0 0 0 1 0 0 0 1 model.ldr
0
L3PAO uses default camera settings...
![[Image: before.png]](https://dl.dropboxusercontent.com/u/15954981/tmp5/before.png)
... until you click on the button marked "Get Camera and Look At settings from model file", and the program does just what the button says.
![[Image: after.png]](https://dl.dropboxusercontent.com/u/15954981/tmp5/after.png)