I think the code change in the first section needs to be as follows instead of what I posted above.
I did more testing and the code change seems to work with Direct Lighting, Photon Mapping, Path Tracing, Bidirectional Path Tracing, and SPPM. Light Portals work in combination with an HDRI in Ambient lights.
I still have to do more testing to figure out how to control the direction that photons are emitted from the light portal. At this time they always emit along the -X axis of the light portal. There must be some other value needed in the YafaRay xml code to control the direction (X,Y,Z)
oort
Quote:lightportal ->
println(F," "),
println(F, "<light name=\"~s\">",[NameStr]),
println(F, "<type sval=\"bgPortalLight\"/>"),
println(F, "<power fval=\"~.10f\"/>",[Lightportal_Power]),
println(F, "<samples ival=\"~w\"/>",[Lightportal_Samples]),
println(F, "<object ival= \"~w\"/>",[Id]),
println(F, "<with_diffuse bval=\"~s\"/>",[Lightportal_Diffusephotons]),
println(F, "<with_caustic bval=\"~s\"/>",[Lightportal_Causticphotons]),
println(F, "<photon_only bval=\"~s\"/>",[Lightportal_Photon_Only]),
println(F, "</light>"),
println(F, "<mesh id=\"~w\" vertices=\"~w\" faces=\"~w\" has_uv=\"~s\" type=\"0\">",[Id,length(Vs),length(Fs),HasUV]),
println(F," ")
end,
export_vertices(F, Vs),
I did more testing and the code change seems to work with Direct Lighting, Photon Mapping, Path Tracing, Bidirectional Path Tracing, and SPPM. Light Portals work in combination with an HDRI in Ambient lights.
I still have to do more testing to figure out how to control the direction that photons are emitted from the light portal. At this time they always emit along the -X axis of the light portal. There must be some other value needed in the YafaRay xml code to control the direction (X,Y,Z)
oort