Blender Git Loki

Git Commits -> Revision 272412f

Revision 272412f by Sergey Sharybin (master)
November 22, 2016, 11:00 (GMT)
Cycles: Implement texture size limit simplify option

Main intention is to give some quick way to control scene's memory
usage by clamping textures which are too big. This is really handy
on the early production stages when you first create really nice
looking hi-res textures and only when it all works and approved
start investing time on optimizing your scene.

This is a new option in Scene Simplify panel and it acts as
following: when texture size is bigger than the given value it'll
be scaled down by half for until it fits into given limit.

There are various possible improvements, such as:

- Use threaded scaling using our own task manager.

This is actually one of the main reasons why image resize is
manually-implemented instead of using OIIO's resize. Other
reason here is that API seems limited to construct 3D texture
description easily.

- Vectorization of uchar4/float4/half4 textures.

- Use something smarter than box filter.

Was playing with some other filters, but not sure they are
really better: they kind of causes more fuzzy edges.

Even with such a TODOs in the code the option is already quite
useful.

Reviewers: brecht

Reviewed By: brecht

Subscribers: jtheninja, Blendify, gregzaal, venomgfx

Differential Revision: https://developer.blender.org/D2362

Commit Details:

Full Hash: 272412f9c0d26f630c5e1e7d07d4ff417b7218e5
Parent Commit: 927a168
Lines Changed: +365, -40

1 Added Path:

/intern/cycles/util/util_image_impl.h (+167, -0) (View)

10 Modified Paths:

/intern/cycles/blender/addon/properties.py (+24, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+24, -13) (Diff)
/intern/cycles/blender/blender_sync.cpp (+14, -0) (Diff)
/intern/cycles/render/image.cpp (+89, -19) (Diff)
/intern/cycles/render/image.h (+25, -6) (Diff)
/intern/cycles/render/mesh.cpp (+2, -0) (Diff)
/intern/cycles/render/scene.cpp (+1, -1) (Diff)
/intern/cycles/render/scene.h (+4, -1) (Diff)
/intern/cycles/util/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/util/util_image.h (+14, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021