LuxCore: BACKGROUND_IMG image pipeline plugin

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: Dade, jromang, tomb, zcott, coordinators

LuxCore: BACKGROUND_IMG image pipeline plugin

Postby Dade » Tue Dec 22, 2015 9:28 am

I have added a new image pipeline pulgin: BACKGROUND_IMG

It can be used to compose a background image with the rendering (using alpha channel):

Code: Select all
# Film image pipeline plug-ins

film.imagepipeline.0.type = TONEMAP_LINEAR
##
film.imagepipeline.1.type = BACKGROUND_IMG
film.imagepipeline.1.file = scenes/simple-mat/sky.exr
film.imagepipeline.1.gamma = 2.2
film.imagepipeline.1.storage = byte
##
film.imagepipeline.2.type = GAMMA_CORRECTION
film.imagepipeline.2.value = 2.2

# Film outputs

# Alpha channel is required by BACKGROUND_IMG
film.outputs.0.type = ALPHA
film.outputs.0.filename = luxball_ALPHA.png


back.jpg


Quite trivial stuff, it is mostly useful for on-the-fly image composing with real-time rendering.
User avatar
Dade
Developer
 
Posts: 8356
Joined: Sat Apr 19, 2008 6:04 pm
Location: Italy

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby SATtva » Tue Dec 22, 2015 9:30 am

Cool!
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 7162
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby pciccone » Sun Feb 07, 2016 7:17 am

This has been requested for a long time by Reality users, it's very useful.

Thank you.
User avatar
pciccone
Developer
 
Posts: 1579
Joined: Wed Jan 13, 2010 11:02 am
Location: South Carolina

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby B.Y.O.B. » Sun Feb 07, 2016 10:51 am

What happens when the background image does not match the film size?
Maybe there should be additional "scale" and "offset" properties? Something like an auto-fit would also be nice:
Attachments
Unbenannt.png
Unbenannt.png (8.66 KiB) Viewed 2050 times
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby Dade » Sun Feb 07, 2016 11:01 am

B.Y.O.B. wrote:What happens when the background image does not match the film size?


It is stretched.

B.Y.O.B. wrote:Maybe there should be additional "scale" and "offset" properties? Something like an auto-fit would also be nice:


It would require a not small amount of coding that is trivial to avoid using Gimp/Photoshop.
User avatar
Dade
Developer
 
Posts: 8356
Joined: Sat Apr 19, 2008 6:04 pm
Location: Italy

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby B.Y.O.B. » Sun Feb 07, 2016 11:22 am

Dade wrote:t would require a not small amount of coding that is trivial to avoid using Gimp/Photoshop.

I see, no problem. So the background image is stretched to match the film size, or the other way around? (edit: dumb question, sry)
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby B.Y.O.B. » Sun Feb 07, 2016 2:01 pm

This is now supported by LuxBlend.
Attachments
Unbenannt.PNG
User avatar
B.Y.O.B.
Developer
 
Posts: 5135
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby pciccone » Tue Jul 05, 2016 7:53 am

Is there any way this can be used in LuxClassic?
User avatar
pciccone
Developer
 
Posts: 1579
Joined: Wed Jan 13, 2010 11:02 am
Location: South Carolina

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby Dade » Tue Jul 05, 2016 2:58 pm

pciccone wrote:Is there any way this can be used in LuxClassic?


Nope, Lux classic has a static hard-coded image pipeline: it isn't a very flexible solution.
User avatar
Dade
Developer
 
Posts: 8356
Joined: Sat Apr 19, 2008 6:04 pm
Location: Italy

Re: LuxCore: BACKGROUND_IMG image pipeline plugin

Postby pciccone » Tue Jul 05, 2016 3:03 pm

Thank you. I meant the LuxCore modes in LuxClassic. We can access many LuxCore features from there using the config string. Isn't there anything that can be done to backport this to LuxClassic?
User avatar
pciccone
Developer
 
Posts: 1579
Joined: Wed Jan 13, 2010 11:02 am
Location: South Carolina

Next

Return to Architecture & Design

Who is online

Users browsing this forum: No registered users and 2 guests