Page 1 of 1
Bidirvm
Posted: Fri Feb 28, 2020 5:35 pm
by Sharlybg
hi guys just want to know how i can enable back Bidirvm engine in Luxcore ?
Just remenber that in the past there was earlier support and dev for that. just currently doing test to compare thing and render mode in different scenario cases. I need bidirvm to be include in my test.
Re: Bidirvm
Posted: Fri Feb 28, 2020 7:34 pm
by B.Y.O.B.
You can change the renderengine.type here:
https://github.com/LuxCoreRender/BlendL ... fig.py#L52
You might want to also set some of the other properties of bidirvm:
https://wiki.luxcorerender.org/LuxCore_ ... ng_engines
Re: Bidirvm
Posted: Mon Mar 02, 2020 1:44 pm
by Sharlybg
Make thoses change :
Code: Select all
# Common properties that should be set regardless of engine configuration.
definitions.update({
"renderengine.type": BIDIRVMCPU,#luxcore_engine,
"sampler.type": sampler,
"film.width": width,
"film.height": height,
"film.filter.type": filter_type,
"film.filter.width": config.filter_width,
"lightstrategy.type": light_strategy,
"scene.epsilon.min": config.min_epsilon,
"scene.epsilon.max": config.max_epsilon,
})
and got :
Re: Bidirvm
Posted: Mon Mar 02, 2020 2:01 pm
by CodeHD
Try putting "BIDIRVMCPU" in quotation marks. Otherwise Python will interpret it as a variable.
Re: Bidirvm
Posted: Mon Mar 02, 2020 2:32 pm
by Sharlybg
CodeHD wrote: Mon Mar 02, 2020 2:01 pm
Try putting "BIDIRVMCPU" in quotation marks. Otherwise Python will interpret it as a variable.
Please it still doesn't work can you modify and show me code example i can copy. Here is modification :
Code: Select all
# Common properties that should be set regardless of engine configuration.
definitions.update({
"BIDIRVMCPU": Bidirvcm,
"renderengine.type": luxcore_engine,
"sampler.type": sampler,
"film.width": width,
"film.height": height,
"film.filter.type": filter_type,
"film.filter.width": config.filter_width,
"lightstrategy.type": light_strategy,
"scene.epsilon.min": config.min_epsilon,
"scene.epsilon.max": config.max_epsilon,
})
This one throw error .
Re: Bidirvm
Posted: Mon Mar 02, 2020 2:41 pm
by CodeHD
Code: Select all
# Common properties that should be set regardless of engine configuration.
definitions.update({
"renderengine.type": "BIDIRVMCPU",#luxcore_engine,
"sampler.type": sampler,
"film.width": width,
"film.height": height,
"film.filter.type": filter_type,
"film.filter.width": config.filter_width,
"lightstrategy.type": light_strategy,
"scene.epsilon.min": config.min_epsilon,
"scene.epsilon.max": config.max_epsilon,
})
I meant like so, although I'm currently trying it and get another error. Try it yourself in your setup, though...
Edit: It does seems to work, but I don't have a test scene at hand to spot differences.
Re: Bidirvm
Posted: Mon Mar 02, 2020 2:47 pm
by Sharlybg
This way can't get Luxcore available in render engine selection slot anymore.
Re: Bidirvm
Posted: Mon Mar 02, 2020 2:52 pm
by CodeHD
Did you copy/paste the code from here in the forum into the code file? Make sure that you keep the indentation (i.e. white spaces at the beginning of each line), didn't forget the comma between "BIDIRVMCPU" and the hash-symbol, or the brackets at the end.
Re: Bidirvm
Posted: Mon Mar 02, 2020 3:05 pm
by CodeHD
here is how it looks in a text editor
Re: Bidirvm
Posted: Mon Mar 02, 2020 3:12 pm
by Sharlybg
Code: Select all
# Common properties that should be set regardless of engine configuration.
definitions.update({
"renderengine.type": "BIDIRVMCPU",#luxcore_engine,
"sampler.type": sampler,
"film.width": width,
"film.height": height,
"film.filter.type": filter_type,
"film.filter.width": config.filter_width,
"lightstrategy.type": light_strategy,
"scene.epsilon.min": config.min_epsilon,
"scene.epsilon.max": config.max_epsilon,
})
Thanks a lot it is working Now !
