Forum

SOLVED: Cycles IES lamp data not rendered?

02 June 2017 19:23
Solution and working test file here: https://www.blend4web.com/en/forums/post/17306/. Thanks again to all who contributed and helped!

I use a Cycles add-on that utilizes real-life photometry data from .ies files to import real-world lighting in to Blender. The add-on is here: link.

Is is possible to "bake-in" the lighting lamp data like a texture or perhaps convert it to some sort of mesh so blend4web will render the lighting photometry?
03 June 2017 04:24
You can bake all your lighting effects into a texture. I did a video on this using Blender Render.
https://youtu.be/H7bjdWu9OGs
You may want to look up a Cycles specific video for baking Cycles lighting.
06 June 2017 01:55
Thanks Will, very similar to what i have been using here: link but much, much less complicated. I am having problems with creating a proper UV map from the IES files for texture baking. I will practice with a single IES file and the default cube and report back.
06 June 2017 16:32
The lamp wire-frame data is present within the 3D preview under the B4W engine (they are defaulted to point type) but it won't render in project manager preview or html export.

Is is possible to "bake-in" the lighting lamp data like a texture or perhaps convert it to some sort of mesh so blend4web will render the lighting photometry?
Hello,

sorry for the late reply and welcome to the forum of course

area lights are not supported in blend4web for now. Using arbitrary shape area lights in real-time engines is not trivial and is a hot topic nowadays. I think we'll also investigate this task in the future.

For now baking those lights is the right way for you
Blend4Web Team - developer
Twitter
LinkedIn
06 June 2017 23:33
Thanks for reply.

area lights are not supported in blend4web for now

The imported .ies file is a point type by default, not an area type in both cycles and blend4web.

I have successfully baked a cycles test image and can clearly see the the v-shaped lighting on one side wall of the basic cube in the Texture Atlas and in the rendered result.

I used this as my guide for cycles baking: link. My render time when from ~ 3 mins down to > 30 seconds so I know its baked.

Please see the image below (above red line).



However, when I preview the scene in the browser ala SDK (same image, below the red line) the ies lighting still goes back to the generic light blob as if it was never a baked texture and the SDK preview is also missing all the texture that was saved (like the concrete pattern in the ground) in addition to the ies lighting shape.

What I am doing wrong?
07 June 2017 05:58
Did you end up with a saved image that had all your lighting effects baked on to it?
12:25 of the video you linked shows how to save this image. You should be able to open it independent of Blender and see if your lighting effects got baked onto it. Also, when you hit the 'Bake' button, did you have 'Combined' selected in the drop-down menu?
07 June 2017 10:37
What I am doing wrong?
Can you attache an example of your scene so we can find the problem?
Blend4web and that kind of thing.
07 June 2017 18:29
If the images don't come through there are inside a shared Google Photos album here: link

Reply to post of user Will Welker
You should be able to open it independent of Blender and see if your lighting effects got baked onto it.

Yes.


Reply to post of user Will Welker
Also, when you hit the 'Bake' button, did you have 'Combined' selected in the drop-down menu?

Yes.
07 June 2017 18:38
Reply to post of user Mikhail Luzyanin
Can you attache an example of your scene so we can find the problem?

Here is a Google Drive folder containing my : test files.
07 June 2017 18:58
Here is a Google Drive zip download of my working file. Happy for some PWN'age.
You need to connect to your image UVMap node with selected right UVMap in it. Blender automatically connected selected UVMap from mesh tab, but for Blend4Web you need to connect it to an Image node by yourself.
Blend4web and that kind of thing.
 
Please register or log in to leave a reply.