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! ![smiling-heart-shaped-eyes]()
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?
![smiling-heart-shaped-eyes](/static/pybb/emoticons/smiling-heart-shaped-eyes.png)
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.
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.Hello,
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?
sorry for the late reply and welcome to the forum of course
![smiling](/static/pybb/emoticons/smiling.png)
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
![smiling](/static/pybb/emoticons/smiling.png)
06 June 2017 23:33
Thanks for reply.
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?
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).
![](https://lh3.googleusercontent.com/RGCn227mEHiFdq2v1Qgxrx6WmiUQuXCQpIdcByNLsGeyv8v0vFacUzOvtBCb70AQhruRJkSWdHvKlaKOGO9Ytzg942Kc294oMrIimY4JyprehcL48G0mtIdhgbOrUNBL6xIO2aLVJMi13qunHgZ0d_fjpxsbsFtS6lCCrK6T6XtQNkHFOrG3UekBU8GTYjjxVTKKs5fxxNo0c7ufLHoF8UQgkYFYdW0_kxd9ouIAXxDw_dD6y5P9ohJQeeRsVEQiw4Y8K1rRmSzDcepn82xVMWtnQSsootHvW3auGA-ruwPQtyr4kmku26VLClKeYSnl0Tg_I_TqELc5bLOo00idHLN1EmHGidRKytsrTQTFLg_7hBlVxumX17Ngu97GYtg0CuTMxd66GzzzoRABxUReIYfT7tePGHopahS8sbnJyI5yZFEfoslqvAyHz9Q6yv82XtqYdMX8w8oerfUMfOxqxuiF3Fgtl_FWbw4CVBLEZ7HVTjSXWMyys6zBp0iNMkVtuUczRgGAvbFBQdkJCr_f9ihSqIRYD-0J-Y9jCbazgKTRSodKTqe9l1PtvAZMGnyfe6th-_7gYawaLQX8HCX-FbDuTQ91RJ2koPbVcbyk1tHNTE0LyRdky9Q9wwgW1xVXOZwAlTedwNIo6Y1d4jR6M-Pxw2cqxxikMQzDvfwOvA=w845-h1168-no?.jpg)
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?
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
07 June 2017 18:29
If the images don't come through there are inside a shared Google Photos album here: link
Yes.
![]()
Yes.
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.
![](https://lh3.googleusercontent.com/9s1Mig62maf6QaKq2-gN6iPlX82Ah_TUeN2sp5zbjCFcuxBhUbzxKynwc0QDD4TPmmx6gA7HoHBAvPDpGVnzqfno1of5N2U3swCeOtM4sGB4ja2McTfxwDYW5Ig1q-RrHgZ6wl_W_pDmzbjpmgmiEi7uQXTxEGWEEc3D0rh7vMzYrmzpZLPVHtfo2KpdC2UFw5Yqc5k6YeLCe9KG09-Tn9YCEPAco4NaR3iaJf_3wuCOOXan_IrZ6kXJo3PRX2f0rspXaqWCVWy7zBAdaKAVDKT2xdeAKCk2HKka7S0ZXYKBtC8FS8RG0FUJ10XQrwk3Nrwe9C0HAz0Vd5L-qO7eNwBhSbIYv7wmcPGE9dG4dEMtAnIDBOmcNMf8RGYNdt0-nXNl6mKHHUzKbBvaLRUQBsOmEKgksBc8GwAYp4YyW-l9MBjC2U9qC3XFU_MShkJX_sYXSo6ZVvoqpx3HnDrlE4MxNI-E6av-zSsxTOcMhmye0SZdy8Df9TqqqfDUZ70QTUJmAd20A7EdudwjDpPaQ1UOewSDzjAH2-xpN0_oRLhkKQE49a6-64JE0NNMT-9BzqejU9u8hxAEnz11EJXZSw2yfi15azfJWZLt7hvJld_txntv74G3yWX11d5IQtvgxklcatgLZGeGpk88pMa7P6x5EAYB6LL6UzU24JT53g=w421-h202-no?.jpg)
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.
![](https://lh3.googleusercontent.com/Z0FITDwKLq2BZYKyEjTbZCObOqPk5-nreVCKMmWDsAHaNrUuh2Zum4fnFSFaJMQj8Vt6-0LKMyhS1ZdIZVKbdRqxHFYLMPd727pudR4bnLoEqOAk49Nm4oXihOyX2OgEGKvfLj23TqdyegzHv0R1OjgnmnAIQQOfW1XqVSeYWyssrf4jLJZsrcIbNb2aZtxGkcStpn4MXzZ7ldeblwbwdiUWojrB_gnppSodaHvs2UwLptGfQ5kot8wi2hRQDMxdQO95a3Zr81LZA41BjvkI0mqshmIhBbJHM7sUrmJnI1377ZZWnVm10rO5UHMgD3rH4TGtw5DuNF3keFM41gsviHm174vLkoRUR_rJ4w9oaWVJNA1uwepMJpuuuMVvRrl_M__RHO1MTZPsinOz_vvauMhEYIosCNLlWVvlFrLlb2fK0W3UufhFBRaMVS7t1jEfosFYGgYe9TvvHmcYIKB7piHgmueyqNbvMvDcfmNEg4X9ix416Z_GiLMYOOhiPa_SJtK5Dx6CNlE9M9kJJe2oOJkmrmtM-GdLNCPPygGaOrYY9zK1MNRwBrhJzoryR_co_Y6y3NOd_NeUxEcEa3WXRrJVf0uKm7lI4cMrQ9Vb76Tx1_WOHa7-RHAanJit_dh8fYeBaiG5hvoozk130z6L6VdE0aYMUTpuGF2BN-SofQ=w261-h364-no?.png)
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.