0
$\begingroup$

I'm using command line blendering an obj+mtl file to PNG this question. However, it takes 2 seconds to render a scene.

Is there a faster way to do so? Because, I need to render hundreds of output with the same scene, different texture?

Generally, my task is to render hundred of output every time user put a new logo on a t-shirt model on web interface, so I need a quick rendering method.

Here is my updated blender file .blend and with_texture.blend

Follow @edna suggestion, I have turned off anti-aliasing. It still takes ~2s to render.

bpy.context.scene.render.use_antialiasing = False

Here is my output for rendering enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Do you know where the time is being spent? E.g. how long to load obj, read texture from disc, actually render? $\endgroup$
    – Sazerac
    May 13, 2019 at 2:09
  • 1
    $\begingroup$ Hi @Sazerac, I use python to measure the time spent, and this line of code bpy.ops.render.render(write_still=True) takes the most $\endgroup$
    – Jackie
    May 13, 2019 at 2:12

2 Answers 2

1
$\begingroup$

We can't help you without knowing what it is in your scene that is taking the time. Two seconds is almost nothing, so presumably it is a very simple scene and rendered using the Eevee or Internal engine.

Simplest answer is to lower the resolution. Beyond that, I would suggest that this question would be better on BlenderArtists, where there is more room to discuss things like render settings and their impact on the final image.

Regardless, I suggest you post an example file here: PasteAll.org

$\endgroup$
6
  • $\begingroup$ Hi @edna, I have attached the blender file to my question. $\endgroup$
    – Jackie
    May 13, 2019 at 2:00
  • $\begingroup$ Okay, I've had a look, though the texture isn't packed into the file (go to File/External Data/Automatically then resave and upload) so I can't assess its impact. On my computer it renders in 1s, but that reduces to 0.3s if I turn off antialiasing under render settings, 0.2s if I also reduce the image size to 80%, 0.15s if I change the image size to 1080x1080 and move the camera closer so that the t-shirt is the same size as before. I reckon that is about the best you can do other than simplifying the mesh which I suspect would be of limited benefit relative to the extra work. $\endgroup$
    – edna
    May 14, 2019 at 4:35
  • $\begingroup$ Hi @edna, I'm not sure if I miss some parts. I turned off anti-aliasing in blend file then resave. And, I run the script again, it took Time: 00:01.72 (Saving: 00:00.25) $\endgroup$
    – Jackie
    May 15, 2019 at 1:50
  • $\begingroup$ I also found these tips video $\endgroup$
    – Jackie
    May 15, 2019 at 8:04
  • 2
    $\begingroup$ @edna blend-exchange is preferred over pasteall. $\endgroup$
    – sambler
    May 19, 2019 at 6:03
-2
$\begingroup$

Have you heard to talk about E_cycle? It's 7% faster than the regular release but this build is only useful if you use multiple GPUs in your PC.

You can find it on Gumrod or on Blender market, but for a better result, you have to download the last Nvidia content creator driver that has excellent performance with the last RTX GPUs.

$\endgroup$
3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .