Skip to content

Commit df647e4

Browse files
authored
RPRBLND-1925: Point light difference between cycles and rpr. (#375)
PURPOSE There is a huge difference by point light behavior between cycles and rpr. EFFECT OF CHANGE Fixed light power difference between cycles and RPR.
1 parent 30bd894 commit df647e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/rprblender/export/light.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from rprblender.properties.light import MAX_LUMINOUS_EFFICACY
2424
from . import mesh, image, object
2525
from rprblender.utils.conversion import convert_kelvins_to_rgb
26-
from rprblender import utils
2726

2827
from rprblender.utils import logging
2928
log = logging.Log(tag='export.light')
@@ -45,7 +44,9 @@ def get_radiant_power(light: bpy.types.Light, area=0.0):
4544
if light.type in ('POINT', 'SPOT'):
4645
units = rpr.intensity_units_point
4746
if units == 'DEFAULT':
48-
return color * math.sqrt(light.energy) # to match cycles
47+
# to match cycles: multiplying by coefficient, which was determined with experimentation
48+
default_intensity *= 0.01
49+
return default_intensity
4950

5051
# converting to lumen
5152
if units == 'LUMEN':
@@ -75,6 +76,8 @@ def get_radiant_power(light: bpy.types.Light, area=0.0):
7576
elif light.type == 'AREA':
7677
units = rpr.intensity_units_area
7778
if units == 'DEFAULT':
79+
# to match cycles: multiplying by coefficient, which was determined with experimentation
80+
default_intensity *= 0.1
7881
if rpr.intensity_normalization:
7982
return default_intensity / area
8083
return default_intensity

0 commit comments

Comments
 (0)