Free Add-on for Blender
Scrubs a commencé cette discussion dans Model Export and Render
Avatar de Scrubs
Administrateur

Mecabricks Add-on for Blender

About this thread
You will find in this section everything needed to easily make photorealistic renderings of Mecabricks models with Blender.

Software and files needed
Blender
Blender Add-on by Mecabricks
• Environment images [e.g. zbyg Packs]

653 réponses · Page 1 sur 33
Avatar de Scrubs
Administrateur

Change Log

See product description page for change log.

That look awesome but my computer crash everytime i do a render of my biggest creation.
The render will run for about 30 mins and crash.
I have a pretty good i7 and 8go of ram, my pc should not be a problem...
That pretty annoying, i never had the same problem with POVray or Luxrender 😕

Also, can you add other light with the HDR image ? I switch to Mecabrick and blender because i wanted more flexibility. I'm a complete Blender noob i only use modo a few years back and i'm really lost in Blender interface.

Avatar de Scrubs
Administrateur

Hello,

Yes, Blender is not the easiest to understand at first. There are lots of shortcuts to learn!

Do you use Blender 2.74?

Can you try to run it with Open Shading Language checkbox unticked? - It is located a couple of lines under the Render button.
If you want to render faster for testing purposes, you can try to decrease the number of render samples in the Sampling section to something like 100.

Can you also try with smaller dimensions (either by changing X and Y and simply by turning down the percentage scale number).

What kind of graphic card do you have? Is it a NVidia CUDA capable?

Yes you can also add as many lights as you want even with a HDR lighting. Add button (or Shift+A) and choose type of lamp.
You can also attach/mix an emission shader to a mesh. Create a new material and select Emission.

You can also only render part of the image. In the camera viewport, press Ctrl+B and select the area of the camera you want to render. (Ctrl+Alt+B to cancel).

Let me know how it goes.

Chapeau!
✌️ 💘 😎

Thank you for your advice !

The render did not crash when I unticked "Open Shading language" but I can't show it because I've stupidly close the Blender console and the whole software close with it.

So yeah, my experience with Blender is not great so far, but I've made some progress !

My render had some problem, the image was a little grey, and grainy.
I tried to add a sunlight but apparently that did not work.
How do I add a little bit of gain on the HDR image ? It's pretty easy to do while rendering in Luxrender but I didn't find the big "Add intensity to the light" button in Blender.

For the grain on the picture, I think it's because the samples were to low. The samples for my render were set to 1200. How many do I need in average to have a clear smooth render ?

I have a GTX970 graphic card, so it's more than enough to handle my model.

Thanks in advance for your help !

Avatar de Scrubs
Administrateur

Hello,

The reason why I asked for the graphic card is that there is an option to tick in Blender to use the GPU instead of the CPU for rendering. It is much faster but doesn't work with all types of shaders. I think yours shall be compatible.

OSL shaders only run on CPU. I use it for the shader rounding the edges. If it is unticked, you won't get them but the rest shall be fine. It is weird that it crashes after a bit... Did you try to set the dimensions maybe to 25% to see if you can render a smaller complete image before it crashes?

To increase the intensity of the lighting provided by the HDR image, simply increase the strenght - currently set to 1.000.
In the video tutorial, go the sequence where I explain how to open the HDR image. This is the node called Background between Environment Texture and World Output.

This is a challenge to reduce the noise! I tried to set the settings so that it limits the number of samples. It really depends on your image - I generally use something between 800 and 1000. I noticed that with my settings, clear materials are more noisy than dark ones but generally still acceptable. It also depends on the quality of the HDR image you use.

  • I set the transparent materials so that caustics can be disabled.
  • I clamped the samples
  • I enabled Multiple Importance for the environment map.
  • etc

It can still be tweaked though.

The easiest is to increase the number of samples but it will increase the render time proportionally.

Thanks again for your help !

I didn't have any crash today, with a render at 25% ( [url]http://i.imgur.com/ecPsQdL.png[/url] ) and one at 720p ( [url]http://i.imgur.com/DFSgEol.png[/url] ).
Now that i think about it, my crash probably happen when i was trying to watch a youtube vidéo on my second screen.

Anyway, thank you for your help, i can't way to start building more !
I'm still a bit unhappy with the noise but i have some idea on how to get rid of it, I'll update if I find a good and easy solution !

Avatar de Scrubs
Administrateur

No worries 😃

I can see the noise mainly on the white wall of the house. If you find a solution for it, don't hesitate to share.

P.S. You should release the model you used for your test. It looks awesome on the rendering! 💗

I will release the model as soon as i finish it. I'm not quite happy with it, some area are still too empty.

For the noise, i was thinking of rendering the white part with super high sample but i also have a few idea with photoshop.
I also want to try to export the model on Luxrender and see how it goes. I'll update when i'll have something interesting !

I’m having a similar problem as SaitoGray the computer is a MAC and does not have a graphic card just a chip set on the mother board. When I hit render or chance window view to render it crashes at the first tile. I have reduced Resolution to 25% and samples to 100 without change. The only thing that works is not checking OSL. I have my own template that uses the OSL for its “bevel shader”. Also if I click the material button to look at the objects color setting it crashes. Any ideas?

In studying you script on color i not the hex do not match the RGB setting found in the db.lif file. Where did you get the color data?

Avatar de Scrubs
Administrateur

Hello,

I develop on a mac too so I don't think that the issue is here.
It looks different than SaitoGray as he could actually start the rendering.
There is something that your CPU doesn't like somewhere in the scene. It is even more interesting when you say that you can use OSL for other applications with the bevel shader.

Can you confirm that the version of the bevel shader script you use is exactly the same as in the template, lines for lines? It would be very useful to know that.

Hi
I started to look into my crash problem with OSL checked. The script that works for me comes from the same tread you noted in you tutorial but the first post by VarkenVarken on 05-mar-14 (first page). Your script is found on pager 5 by Piotr 26-May-14. He also has an early post on 06-Mar-14. Both crash my blender. It will take me some time to understand the scripts. My OS is MAC OS X 10.6.8, Python Interpreter is 2.6.1, Blender is 2.74. My next step is to replace Piotr script with VarkenVarken’s. This will take me time.
Thanks

I had to watch the video 4 times to do it, but i got my first render done! Thanks for the great work scrubs! 😃

Avatar de Scrubs
Administrateur

@OLDNUT I have the latest version of Yosemite on my iMac. I chose the most advanced/fastest version to include in my nodes but I'm not skilled enough to write or modify this bit of code myself. Hope you will find something that works for you 😃

@UmbraManis I jut saw your rendering. Looks good! We can just see that you added the background later because of the thin white edge around the minifig. Is it the first time you used Blender?

It is my first time using Blender. I did the background with GIMP.

Avatar de Scrubs
Administrateur

Well, It's pretty good. Blender is normally quite hard to understand when you open it the first time. Template seems to be not too bad even for new Blender users with a bit of work.

Avatar de Scrubs
Administrateur

Did you delete the background of the rendered image in GIMP, or did you render the image in Blender with a transparent background?

Had the same issue as SatioGray, but unchecked the Open Shading box and rendered my first model! (Zaptor, built by Scrubs, here --> http://www.mecabricks.com/en/models/L0Qa3MWjMol#nbz1qD ) It was my first time using Blender, and I really enjoyed it! Thank you for the great video and template, Scrubs!

I removed the rendered background in GIMP.

My renders all seem to be in kind of dim light. Is there an easy way to change that?

So, I still crash when i try to render 2 of my model ( [url]http://www.mecabricks.com/en/models/907vNk3gaAm[/url] and [url]http://www.mecabricks.com/en/models/B9P2kQrZvon[/url] )

I have no error message in the console and all the part appear fine when i trick "progressive render" box but Blender still crash after a pretty short amount of time (a few minutes).

I really don't know what causing them, i found nothing on Internet, i have enough ram and my CPU is not max out (i always disable one or two thread so i can still use my PC without lag)

Can someone try a render of the models and see if the source of the crash is my computer or the model itself ?
Thanks in advance !

Précédent
1
33
Suivant
Publicité
160 participants
Avatar de Scrubs
Avatar de NGCHunter2
Avatar de wlange
Avatar de ArmoredBricks
Avatar de Masman8675
Avatar de StepsiPepsi
Avatar de LoneCoyote
Avatar de zanna
Avatar de SaitoGray
Avatar de LukeSkywalker
Avatar de _deleted_
Avatar de TheGecko7
Avatar de UmbraManis
Avatar de Legosim
Avatar de Sealund
Avatar de adambrickover
Avatar de MARTIXTAPEATTACKER
Avatar de kl3w_lego
Avatar de [deleted]
Avatar de SiMaI
Avatar de nu_montag
Avatar de dtriangle
et d'autres

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.