X-Plane / XPlane2Blender

Scenery & Aircraft export addon for Blender and X-Plane
GNU General Public License v3.0
190 stars 67 forks source link

Cannot use candela (cd) as intensity unit #720

Closed xrotors closed 1 year ago

xrotors commented 1 year ago

When attempting to set candela (cd) as intensity unit for a light source (eg. airplane_nav_pm or bb as param for X-plane 12) the exporter stops and xplane2blender.log returns ERROR: Parameter 4 (250cd) of nav left is not a number.

xrotors commented 1 year ago

These are the params I am trying to export with the _airplane_navpm light

0 1 0 0 250cd 1.0 -0.01 -0.01 0.4

xrotors commented 1 year ago

I see there's a commit on this topic, but apparently is not working on 4.2.0-rc2 and Blender 3.3.1 69f1466cf1cf2061205e1b02797c09d360c20f8d

bsupnik commented 1 year ago

Please post a picture of your light properties inspector so we can see how you have set up the photometric nav light. PLease use airplane_nav_pm as referred in the previous comment.

xrotors commented 1 year ago
immagine
xrotors commented 1 year ago

I cannot set it to 250cd but I have to use just the number, then I have to edit the .obj file manually.

bsupnik commented 1 year ago

Don't use the deprecated manual param light mode. Set the light mode to automatic; when you pick a photometric light you'll get an "intensity" parameter. Set 250 and don't suffix CD (intensity is always cd) and it will work./