hm..in my .conf file there is no / at the end.u3dreal wrote:
make sure your path is some like " /home/jarsek/indigo "
no / at the end.
i should work works well here on kubuntu..
greetz,
jur
Code: Select all
emesh = Blender.Mesh.Get(meshname)
faces = emesh.faces
farea = 0.0
amulti = 1.0
for face in faces:
farea += face.area
if farea > 0:
amulti = 1/farea
str += "\t\t<spectrum>\n"
if (mat0.translucency > 0):
str += "\t\t\t<peak>\n"
str += "\t\t\t\t<peak_min>%.4g</peak_min>\n" %(mat0.translucency*1000)
str += "\t\t\t\t<peak_width>%.4g</peak_width>\n" %(mat0.amb*1000)
str += "\t\t\t\t<base_value>0</base_value>\n"
str += "\t\t\t\t<peak_value>%.4g</peak_value>\n" %(mat0.emit*1e9*amulti)
str += "\t\t\t</peak>\n"
elif (mat0.translucency == 0 and mat0.amb > 0):
str += "\t\t\t<blackbody>\n"
str += "\t\t\t\t<temperature>%.0f</temperature>\n" %(mat0.amb*10000)
str += "\t\t\t\t<gain>%.10f</gain>\n" %(mat0.emit*1000*amulti/(7.5659e-16*pow(mat0.amb*10000, 4)))
str += "\t\t\t</blackbody>\n"
elif (mat0.translucency == 0 and mat0.amb == 0):
str += "\t\t\t<rgb>\n"
gain = mat0.emit*1e9*amulti
str += "\t\t\t\t<rgb>%.3f %.3f %.3f</rgb>\n" %(mat0.R*gain, mat0.G*gain, mat0.B*gain)
str += "\t\t\t</rgb>\n"
Code: Select all
emesh = Blender.Mesh.Get(meshname)
faces = emesh.faces
farea = 0.0
amulti = 1.0
for face in faces:
farea += face.area
if farea > 0:
amulti = 1/farea
amulti *= 1e9 # sky-light compensation (because sky-gain currently dont work)
str += "\t\t<spectrum>\n"
if (mat0.translucency > 0):
str += "\t\t\t<peak>\n"
str += "\t\t\t\t<peak_min>%.4g</peak_min>\n" %(mat0.translucency*1000)
str += "\t\t\t\t<peak_width>%.4g</peak_width>\n" %(mat0.amb*1000)
str += "\t\t\t\t<base_value>0</base_value>\n"
str += "\t\t\t\t<peak_value>%.4g</peak_value>\n" %(mat0.emit*amulti)
str += "\t\t\t</peak>\n"
elif (mat0.translucency == 0 and mat0.amb > 0):
str += "\t\t\t<blackbody>\n"
str += "\t\t\t\t<temperature>%.0f</temperature>\n" %(mat0.amb*10000)
str += "\t\t\t\t<gain>%.10f</gain>\n" %(mat0.emit*100*amulti/(5.6705e-8*pow(mat0.amb*10000, 4)))
str += "\t\t\t</blackbody>\n"
elif (mat0.translucency == 0 and mat0.amb == 0):
str += "\t\t\t<rgb>\n"
gain = mat0.emit*amulti
str += "\t\t\t\t<rgb>%.3f %.3f %.3f</rgb>\n" %(mat0.R*gain, mat0.G*gain, mat0.B*gain)
str += "\t\t\t</rgb>\n"
str += "\t\t</spectrum>\n"
Without blackbody compensation, a 3000K lamp is about 20 times darker that a 6500K lamp. With compensation, there are quite the same (3000K is still a bit less bright).u3dreal wrote:but it is very nice btu is it physical correct as a 3000K light bulb
seems lower than a 6500K lanp .. or well it's still thecase.
Putting something like this in the wrapper should help:Quote:
Thats a know problem .... maybe you can find a solution
the " won't help.. ;(
install blender to none " " space dir..
Code: Select all
'\"C:/Program Files/monExe.exe\"'
well you still have to check the global exposure for that ..zuegs wrote: For Peak-light you can add a multiplier... in documation there's noted that values in RGB-lights and peak-lights are of "W/m^2" unit so i thought that they should act equal
regards zuegs
Users browsing this forum: No registered users and 35 guests