New Material Preview #57683
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
26 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#57683
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With the addition of Eevee, we had to update our built-in material preview, which didn't work with it. This has prompted a larger update to the material preview.
The project makes use of work done by Robin Marin (Tuqueque) who put together some new material preview shapes. This has been adapted for use in the material preview.
List of changes
Here are some images that give an idea of what the new preview looks like. In this case Blender is set to Eevee:
Patch:
material_preview_3.diff
Preview blend file:
preview_cycles-5.blend
Special thanks to Robin Marin (Tuqueque) who supplied the new preview shapes.
I would welcome some testing on this material preview with many types of materials.
Added subscriber: @WilliamReynish
Here are some additional examples of various types of materials using this new material preview. These are all examples using Eevee:
Here are some examples that show the improved preview of displacement:
Added subscribers: @fclem, @brecht
Added subscriber: @Scaredyfish
These look great! Would it be worth making those scenes or objects available in the 'Add' menu of the 3D view, so you could easily get a large version for developing materials.
Added subscriber: @GavinScott
The number of pixels in the frame that are actually covered by the previewed material seems a bit small. What about having an additional button like [2X] or [Zoom] that would toggle the preview to show the middle 1/4 of the frame at 2x resolution (or maybe 3x would work better) to give a close-up view to see things more clearly? I think I'd use that a lot.
My 2 cents:
I think the blender logo is kind of getting in the way on the preview shapes. On the Maxwell Ball "ripoff" it's kindof okayish but it is not readable enough with the current lighting setup. But on the liquid I would have prefered something simpler. Maybe no pedestal at all. And for the cloth I don't see the point of having one. The shapes are here to have clear readability of the shading not to have some sort of branding.
On the eevee side, the cubemap shape should be Box with fade set to 0 and make the bound of the box correspond with the scene boundaries. You can put the probe a bit higher than the sphere. This will make the reflections/refractions much more accurate.
@GavinScott: the reason it doesn’t go full edge to edge, is so you can see displacement. But even so I could probably zoom in a wee bit more.
@fclem: Yes, the fluid one is a bit excessive and doesn’t need a Blender logo, I agree. I also think that it’s probably too complex - it could be a simple drop or puddle. I will ask Robin Marin if he wants to make a new one.
For the cloth, we could omit it. But the point of these shapes is to better test your shading on something vault representative of the type of material you are creating. Robin Marin also made a hard surface preview object, which is somewhat interesting.
For the shader ball, the rationale is that the grey part is middle grey, so that you have something to compare to. It’s also become a convention that different apps have different cutouts.
Here's Robin Marin's Hard Surface preview shape, for reference:
I agree about the Blender logo getting in the way of the cloth, particularly if you're trying to see a texture pattern. On the shader ball the curves on the logo help to see what the material does, for the cloth the logo is not using the material, it's just a grey spot in the middle of the preview.
File size is a bit of a concern, this is .blend file is still 13MB compressed. I don't think the base meshes need to have that many polygons if subsurf was used, but maybe be a lot of work to remodel, I'm not sure.
@brecht: Yes, I will update to remove the Blender logo on the cloth and to remove the base there too. Maybe Tuqueque has a version without the Blender-shaped hole.
I mean, we don't put a Blender logo on the sphere, and the hair doesn't work the outline of the Blender logo either :)
One of things that make the file large is the complex and detailed fluid object. I agree with @fclem that it's too complex. Something smaller, simpler, more blobby would work well for fluid I think.
A few updates:
I think this can still be better though.
Added subscriber: @lsscpp
What is the scale of the scene? I mean, how one of those squares on floor is big? 1 BU?
It would be great if one could set the scale of the preview, to se how mataerials react at arbitrary size
Added subscriber: @Nick_w
i think the ball should remain under the cloth to help visualize transparency
Added subscriber: @JasonClarke
@Nick_w Yes I agree with this. The checkerboard texture you have there helps with this. I will add that.
Added subscriber: @0o00o0oo
Updated the scene with an assortment of smaller changes.
This could still be much better, but it is a start.
Update: New liquid splash preview shape by Tuqueque included.
This looks good to commit, except maybe the file size. The latest version is 30MB uncompressed / 4.8MB compressed.
That consists of roughly:
The EEVEE light cache could be left out and computed on the fly probably, but would need some code changes.
@WilliamReynish will look at reducing the mesh sizes.
Updated the preview blend file.
It's less than half the size with no apparent visual difference
Update: Purged some lingering unused data for more space saving
If it needs to be smaller, I can also retopo the fluid object fo save even more space.
I think this is small enough. The shader ball base seems to have gone missing?
I've updated the patch with some changes:
Updated the file and added back the base, which was deleted by mistake when the hard surface object was deleted.
@brecht: tested the World toggle, but it seems to do nothing - does it require changes to the preview blend?
Eg, make the World background neon green, enable material mode World toggle. Appears to be no change in appearance
It doesn't have much visible effect in the default startup file:
I don't think hiding the floor would be ideal, for a lot of environment textures the bottom part is not useful to look at. We could disable the area lights. But it really depends on the scene if the world by itself provides enough lighting by itself.
So not sure what to do here, though it's a bit confusing that by default this option seems to have no influence.
Actually it seems a bug snuck into the patch, will fix.
Ah yes, it does work I see - just not very visible with Eevee because the lighting is baked via the probe :)
But for Cycles it does indeed work.
It's a conundrum with the lights. I would say probably it makes the most sense to hide them when World is on? Otherwise the built-in lights will drown out whatever HDRI map you are using to test your materials. If you want to preview using the World HDRI, you probably want to only see that, otherwise the World toggle is not so useful I think.
Should I organize the preview blend differently for this, or can you programmatically disable lights when World is on?
I am not entirely happy with the fluid preview shape. I don't like the stem so much in the way it pours down from outside the view.
For this reason, I have been trying various alternative shapes.
Current fluid shape:
Alt 1:
Alt 2:
Alt 3:
Alt 4:
Alt 5:
Comments appreciated.
Added subscriber: @ManuelGrad
I really like Alt 4!
Alt 1 is also nice.
Added subscriber: @moisessalvador
I like Alt 3. My main problem Current and Alt 1, and to an extent with all of them, is that the thin parts don't look realistic. Maybe an actual simulation with flip fluids would be nice
Added subscriber: @AFWS
I also kinda like Alt 4. Not a fan of the thickness at the bottom though. Maybe the shape of Alt 4 with the thickness of Alt 1 ,which would give more room for maybe a few more drops at the back?
@AFWS Good point, I might try that.
Updated preview blend above with an updated fluid scene. It is lighter, with a greatly reduced poly count.
Added subscriber: @masinisa89
@masinisa89 I don't get it. This is already how it works. Did you try the patch?
i am sorry
It's just a It's just a proposal
i did not try the patch
Added subscriber: @aiiro
Added subscriber: @oxben
Added subscriber: @DanielPaul
Added subscriber: @wevon-2
Looking for an object to visualize the transparent and translucent materials, I think you could find something with grace, that as Suzanne could be imported by default. Suzanne not being flat does not rest well on the surface and always has to adjust its position a bit and does not always fit.
It is only a sketch, if interested you can work better and optimize.
Added subscriber: @elm19087
Added subscriber: @machieb
Very nice, when will it be implemented in Blender 2.8?
Added subscriber: @Jaydead
Robin Marin has contributed an alternative fluid preview primitive here:
We could perhaps add this to replace the other fluid primitive.
Added subscriber: @Momotron
How about NPR and toon shaders? Is here anyone utilizing them? What would be the best preview material for super flat shaders?
@Momotron These are just preview shapes. You can use them with any material, obviously.
Regarding file size. After discussion with Campbell the proposed solution is to put this file in a git submodule, for example
release/datafiles/assets
. In the future this could then also contain asset .blend files once we bundle them.The other options would be to use svn or git lfs, but it seems simplest to stick to what we already use elsewhere.
Added subscriber: @1D_Inc
For fliud there should be variation that includes
So it can be Alt1 with Alt4 splash bubbles, maybe in invisible petri dish
This issue was referenced by
f5ea1fc4fb
Changed status from 'Open' to: 'Resolved'
Committed, considering this resolved. Further tweaks to the shapes are always possible later.
Added subscriber: @MarkoBr
Added subscriber: @gusdleon
Added subscriber: @AditiaA.Pratama