Bloated mesh data example (multires CD_MDISPS hanging around without a multires modifier) #98249
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#98249
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?
System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68
Blender Version
Broken: version: 3.2.0 Beta, branch: master, commit date: 2022-05-16 16:16, hash:
a2dacefb46
Worked: Unknown
Short description of error
Mesh data seems bloated when saving a blend file. I have an example file attached with one mesh object with 400 faces that is around 6mb when saved to disk. This is a super simple example.
I noticed inconsistencies when saving out lots of different character mesh combinations with compression, some files on disk were ~700kb and some as high as ~48,000kb for essentially the same face counts.
I did some tests (with the attached scenes), by exporting the mesh as an OBJ and bringing it back in again and saving as a new file. This saves around 5mb.
I can't see the difference between the two the meshes, so I can't account for the 5mb of bloat. Is this a Bug? Is there a work around?
For now I think I'll have to write a tool to 'clean' the meshes by exporting and re-importing them.
Exact steps for others to reproduce the error
See the attached files; bloated mesh.blend, mesh.obj, imported obj mesh.blend.
Not much to reproduce, I guess it is a case of why is the 'bloated mesh.blend' file so large.
Much appreciated, Mal
example_files.zip
Added subscriber: @reed2000
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Hm, can confirm, will check
Hm, there is an unnamed customdata layer on the loops (seems to be multires data).
If I exclude this from file writing, the filesize goes down again:
P2962: T98249_snippet
Not sure how that ended up there (dont think this was created from python? -- those customdata layers usually have a name enforced...)
@reed2000: any idea how this happened? got a way to reproduce from scratch? Is this an old file?
EDIT: there is a way to get rid of the multires data again, just add a new multires modifier and remove it again
Changed status from 'Confirmed' to: 'Needs User Info'
So we will need to find a way to reproduce this borked multires data hanging around
Bloated mesh data exampleto Bloated mesh data example (multires CD_MDISPS hanging around without a multires modifier)Ah, we had this before...
So, it is a duplicate of #88144 (Multires modifier data (CD_MDISPS) can remain on a (once shared) mesh, bloats filesize, adding a new multires modifer will already have its levels then), will merge reports...
Closed as duplicate of #88144
Hi Guys,
Multires is part of my workflow, I have a mesh I setup and UV'd, then add a multires and sculpt. Sometimes the multires is applied at a high level to capture the sculpt data then a new one added and unsubdivided. I'm fairly lose with the application of this method of working.
Whatever data is left around, could we not have an actionable step to remove that data once all modifiers are removed and the artists wants a clean mesh for export?
The data is usually removed alongside the modifier.
But there is this special case when you switch an object's mesh to a mesh that has a multires modifier.
In this case you end up with the data on the mesh (even though you dont even have a modifier on the object).
That is the limitation of the current design, just keep that in mind.
Does that answer your question?
Yeah it does, thank you, that is really useful to know how to fix it.
Just wondering if the mesh cleanup tools or similar should offer a fix for example, as it's easy to get a twist.
Cheers.
For anyone else who finds themselves here: