Camera, lights


RE: Camera, lights
#6
(2016-11-06, 12:34)Tore Eriksson Wrote:
(2016-08-22, 14:00)Michael Horvath Wrote: Just want to add that light.dat by itself is not enough for spotlights. Which is why it would be nice to specify them as a pair.

This could be done with my Datshine program, but it takes knowledge in POV-Ray coding and inlining POV code into LDraw files.

This is not a spotlight, but a general illumntion "Light Brick" I made with DatShine of a 1x4 plate. In ML-Cad and LDView, it looks like a normal clear 1x4 plate. but in POV-ray, it emitts light. I know there is POV code for spotlights, too, but I never experimented with it.

Code:
0 Plate  1 x  4 Clear with POV Light
0 Name: 3710L47.dat
0 // Generated by DatShine v2.01
0 Author: Tore Eriksson
0 Unofficial LDraw Part
0 // based on work by James Jessiman
0 // Credits to Anders Isaksson and Tim Gould
0 // http://news.lugnet.com/cad/ray/?n=2764

0 L3P IFPOV
0 light_source {
0     <0, 0, 0>
0     color rgb 0.4*<0.9,0.9,0.9>
0     // fade_distance 60.0
0     // fade_power 1.6
0     looks_like {_3710_dot_dat texture {
0         pigment { rgbf <0.9,0.9,0.9,0.90> }
0         finish { ambient 0.6 diffuse 0 phong 0.5 phong_size 40
0             reflection 0.9
0             refraction 1 ior 1.25
0             }
0         }
0 }    }
0 L3P ELSEPOV
1 47  0 0 0  1 0 0  0 1 0  0 0 1  3710.dat
0 L3P ENDPOV

0

It works with L3P, with or without L3PAO, but I'm not sure if it works with LDView. Here's the result:

[Image: moonbaselarger_Q2.png]
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Camera, lights - by Michael Horvath - 2016-08-21, 13:05
RE: Camera, lights - by Roland Melkert - 2016-08-21, 17:18
RE: Camera, lights - by Travis Cobbs - 2016-08-22, 4:26
RE: Camera, lights - by Michael Horvath - 2016-08-22, 14:00
RE: Camera, lights - by Tore Eriksson - 2016-11-06, 12:34
RE: Camera, lights - by Tore Eriksson - 2016-11-06, 16:03
RE: Camera, lights - by Michael Horvath - 2016-11-07, 15:41
RE: Camera, lights - by Tore Eriksson - 2016-11-07, 16:14
RE: Camera, lights - by Michael Horvath - 2016-11-07, 17:18
RE: Camera, lights - by Tore Eriksson - 2016-11-08, 0:13
RE: Camera, lights - by Michael Horvath - 2016-11-09, 6:00
RE: Camera, lights - by Michael Horvath - 2016-11-17, 9:49

Forum Jump:


Users browsing this thread: 1 Guest(s)