Camera.dat workflow


RE: Camera.dat workflow
#9
Photo 
(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
The usage is simple. You put the both file references in your model file with the desire positions and fire up L3PAO.
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]


... 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]
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Camera.dat workflow - by Michael Horvath - 2016-09-06, 21:33
RE: Camera.dat workflow - by Travis Cobbs - 2016-09-06, 23:53
RE: Camera.dat workflow - by Travis Cobbs - 2016-09-07, 4:37
RE: Camera.dat workflow - by Roland Melkert - 2016-09-07, 16:53
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-06, 21:43
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-06, 17:41
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-06, 21:01
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-07, 11:51
RE: Camera.dat workflow - by Magnus Forsberg - 2016-11-07, 23:13
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-07, 23:51
RE: Camera.dat workflow - by Travis Cobbs - 2016-11-08, 3:39
RE: Camera.dat workflow - by Magnus Forsberg - 2016-11-08, 16:27
RE: Camera.dat workflow - by Philippe Hurbain - 2016-11-08, 19:33
RE: Camera.dat workflow - by Tore Eriksson - 2016-11-09, 0:44

Forum Jump:


Users browsing this thread: 2 Guest(s)