ExportLDraw icon indicating copy to clipboard operation
ExportLDraw copied to clipboard

Recognize l3p's light.dat as a Blender light

Open elfprince13 opened this issue 1 year ago • 5 comments

It would be very helpful if light.dat was imported as light object instead of a mesh object.

elfprince13 avatar May 25 '23 20:05 elfprince13

I've actually been working on the LDraw light parts. I'll add this to the task.

cuddlyogre avatar May 25 '23 21:05 cuddlyogre

I've read through: https://www.ldraw.org/forums/thread-21721.html?highlight=light.dat http://www.hassings.dk/l3/l3p.html

Blender has point, sun, spot, and area lights. Rotation and color look to work the same as any other part. But I have a couple questions.

How do you specify what kind of light it is meant to be? How do you specify the brightness?

cuddlyogre avatar May 28 '23 04:05 cuddlyogre

it should correspond to a point light as far as I know - and I think points have a radius which can be inferred from scale. Not sure how the brightness would work - might have to check through the l3p source?-- ~Thomas

elfprince13 avatar May 28 '23 18:05 elfprince13

I've implemented lights for my (LPub3D) instance of LeoCAD - see blenderldrawrender.

Lights

Cheers,

trevorsandy avatar Jun 03 '23 01:06 trevorsandy

Hi @cuddlyogre I am wondering if you've had time to look at this issue again recently?

elfprince13 avatar Oct 30 '23 17:10 elfprince13