BlendLuxCore icon indicating copy to clipboard operation
BlendLuxCore copied to clipboard

LOL shows no previews

Open MarioPeper opened this issue 4 years ago • 28 comments

Sometimes LOL shows no thumbnails, sometimes only the first row, sometimes also the 2nd, but then it stops and doesn't load further. Are these server problems. I usually have a good internet connection. I wonder if anyone else has?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

MarioPeper avatar Sep 01 '20 13:09 MarioPeper

I never got that working either, so I downloaded (cloned) the repo https://github.com/LuxCoreRender/LoL and extracted everything manually. Not very elegant but it's working now.

foreachthing avatar Sep 03 '20 04:09 foreachthing

Ahh... Thanks for the hint. But apparently it works for everyone else. A little weird?!

MarioPeper avatar Sep 03 '20 05:09 MarioPeper

Are there any error messages in the console?

Theverat avatar Sep 03 '20 10:09 Theverat

Yes I attach it as .txt. Looks like it can not write and then it hangs in a loop. LOL_error.txt

MarioPeper avatar Sep 03 '20 11:09 MarioPeper

Could be just another drawback of using Blender image datablocks. The solution proposed in #559 would fix this, too.

Theverat avatar Sep 03 '20 11:09 Theverat

Okey thanks, but blenderkit works fine. However, I remember that there was something like that. But it was a bit ago.

MarioPeper avatar Sep 03 '20 11:09 MarioPeper

Ok!!! Newest Version of everything seems to work! :+1: Blender 2.83.5 and latest BlendLuxCore does download models and material. Thumbnails are being created.

foreachthing avatar Sep 03 '20 12:09 foreachthing

Unfortunately not for me. It seems that something has changed during loading. The preview pictures of the first two rows are already downloaded. I don't know what LOL downloads but this is my network history after the start of LOL. network history

MarioPeper avatar Sep 03 '20 13:09 MarioPeper

No changes with the last update. Am I really the only one who has this problem? Is there an easier way to tell LOL to only look at my hard drive so I can work with it? (simple changes to the addon code) LOL_a LOL_b

MarioPeper avatar Sep 21 '20 15:09 MarioPeper

Can you check the console output of the blender addon? Are there any error messages? I have an idea what could be the problem but it need some time to implement the fix. Did you try to download the github repository of the online library https://github.com/LuxCoreRender/LoL and place the model and material files inside the LuxCoreOnlineLibrary_data?

neo2068 avatar Sep 21 '20 20:09 neo2068

Yes I attach it as .txt. but looks like the same i put in the post to @Theverat. And i download the repository like @foreachthing suggest me. LOL_22_09_20.txt These are the errors after activating the LOL Asset bar.

MarioPeper avatar Sep 22 '20 14:09 MarioPeper

If you have the thumbnails on your PC, it will not load them from the server. There have to be another problem then. It seems you are on Linux? Where do you store the LoL files you downloaded from the repository?

neo2068 avatar Sep 22 '20 14:09 neo2068

Yes I am on Linux, they are in: /home/pepi/LuxCoreOnlineLibrary_data/ I thought this is the default folder?

MarioPeper avatar Sep 22 '20 15:09 MarioPeper

It is the default folder and should be correct. I have pushed a fix for manually placing the preview files in the preview directory. Can you test if it works for you with the latest BlendLuxCore?

neo2068 avatar Sep 27 '20 12:09 neo2068

Yes thanks, now the small previews for the models work. But not the big ones. If I click on one of them nothing happens (it stops at 0% download). The material previews do not work yet. Maybe I did not use the right folders. The exact hierarchy would be interesting. I wonder if it has something to do with write rights of Linux. But i don't think i am the only one here who uses luxcore with linux. But now I know from which file I can append something, so thank you. I'm sure that all this didn't work under 2.4 ,first. And then it did in the final version. And as I said before, with BlenderKit everything works, so when this is based of it ?!?

MarioPeper avatar Sep 27 '20 15:09 MarioPeper

Hi! The preview image handling is one thing which were changed after adapting the blenderkit addon because of the big memory consumption. The folder structure is like the following.

LuxCoreOnlineLibrary_data
   |--model                              => model asset .blend files
   |    |--local                         => local model asset .blend files
   |    |--preview                       => low res (!28x128) preview images
   |           |--full                   => full size preview images, (e.g. 1080x1080)
   |               |--local              => full size preview images for local files
   |           |--local                  => low res (!28x128) preview images for local files  
   |--material
         |-- same structure as in model

It is strange that the big preview images are not available. But as you said perhaps it is some problem with write permission in the 'full' folder.

neo2068 avatar Sep 27 '20 19:09 neo2068

Thanks, i don't have the small previews for the material and also have a "scene" folder below "LuxCoreOnlineLibrary_data" which contains "preview" and "full" but without content. Maybe it makes sense to delete the whole "LuxCoreOnlineLibrary_data" and install Blendluxcore again. Because if it would be a write permission problem, other Linux people would have it too.

MarioPeper avatar Sep 28 '20 09:09 MarioPeper

There are only the full preview files on the server and the small previews are generated on the fly. With the latest version it should be possible to copy the full res thumbnails in the 'preview' folder as in the github repository and the addon will copy it to the 'full' folder and save a downscaled version in the 'preview' folder. This step is not working on your side. Can you check if the files in the 'preview' folder has full resolution or 128x128 pixels? The folder are generated by the addon, too. Therefor the access rights for the folders should be sufficient. Did you use the latest BlendLuxCore version from here https://github.com/LuxCoreRender/BlendLuxCore/releases/tag/blendluxcore_v2.4 ?

neo2068 avatar Sep 28 '20 09:09 neo2068

No, I'm using the latest version 2.5. Since I fixed the hierarchy something seems to have changed. It loads the small thumbnails for models from disk but for material from the net (but at every start). Almost all (but only almost) :-). The big ones are not showing up (but are there). The cpu is very busy working in material view. And the download only works up to 99% for material, then it hangs or crashes. But the file is in the folder and works. So way better now, thank you. Edit: It looks more like the small material previews are generated on every start.

MarioPeper avatar Sep 28 '20 10:09 MarioPeper

Yes, I meant the latest 2.5 release. I linked the wrong version. I have to investigate why it behaves different on material assets. It uses the same code internally.

neo2068 avatar Sep 28 '20 19:09 neo2068

I do not understand why nobody else has this problem. Well, it works like this after starting blender: no net traffic, no cpu action. After activating asset bar, download for about 20-30 seconds and a 20%-30% cpu usage. After activation of material button: 1 cpu core 100% the rest 10%-20%, takes about 2-3 minutes. And at the same time another 20-30 seconds download as described above. The last 2 rows of thumbnails of material are not loaded. With model 2 rows of thumbnails are not in the middle. The big ones are not displayed even if they are in the right folder. Hope the description helps so far. But thanks so I can at least do something with LOL.

MarioPeper avatar Sep 29 '20 07:09 MarioPeper

I do not understand why nobody else has this problem.

Well I do @mario on OpenSuse :). LOL is downloading and overwriting the preview and full size images, whenever I activate the asset bar in a new .blend file. The thumbnails show up, the large previews not.

joc11 avatar Jan 02 '21 23:01 joc11

@joc11 Can you post the console output? Are there any error messages?

neo2068 avatar Jan 02 '21 23:01 neo2068

@neo Some at the end, yes: mylog0.txt

joc11 avatar Jan 04 '21 17:01 joc11

@joc11 good to see that someone else has this problem. Maybe this will help the developers to find out what it is all about. To me, your error messages look exactly like mine.

MarioPeper avatar Jan 05 '21 10:01 MarioPeper

Fixed for me with latest dayly build on blender 3.0.

joc11 avatar Jan 06 '22 19:01 joc11

Having the same issue. "Thumbnail not ready" for any file from the library. No errors were shown. I still can download assets, I just can't see what am I downloading. Blender 3.0, the latest build downloaded today (07.02.2022)

inegvin avatar Feb 08 '22 00:02 inegvin

@inegvin Can you give more information? What OS do you use? Are there any messages on the Blender console? What is the content of the LuxCore Online Library Directory. You can find the path in the preferences menu under global files directory.

neo2068 avatar Feb 12 '22 20:02 neo2068