Realflow Alembic mesh smoothing. #50255

Closed
opened 2016-12-15 15:05:54 +01:00 by Minne Danhieux · 7 comments

Dear Kévin,

it's nice to see how smooth realflow meshes are working in Blender with alembic.
I ran into a weird problem... My smoothing on the mesh isn't working.smoothing_problem_alembic_realflow.JPG

I tried everything I know about smoothing and normals... maybe I'm doing something wrong, or its broken somehow.
I marked it as a bug but it could also not be a bug.

  • I push smooth shade button.
  • Autosmooth is disabled
  • I checked custom split normal data, there is none.
  • I tried with Autosmooth on and different angles
  • No succes.
  • Also tried sub-d modifier and edgesplit and some combinations, but it stays flat shaded.

Here is the mesh sequence in alembic format. meshes.rar

WIN 7 64b B27.8a

Thx for looking into this.

Regards,

Minne

Dear Kévin, it's nice to see how smooth realflow meshes are working in Blender with alembic. I ran into a weird problem... My smoothing on the mesh isn't working.![smoothing_problem_alembic_realflow.JPG](https://archive.blender.org/developer/F418159/smoothing_problem_alembic_realflow.JPG) I tried everything I know about smoothing and normals... maybe I'm doing something wrong, or its broken somehow. I marked it as a bug but it could also not be a bug. - I push smooth shade button. - Autosmooth is disabled - I checked custom split normal data, there is none. - I tried with Autosmooth on and different angles - No succes. - Also tried sub-d modifier and edgesplit and some combinations, but it stays flat shaded. Here is the mesh sequence in alembic format. [meshes.rar](https://archive.blender.org/developer/F418162/meshes.rar) WIN 7 64b B27.8a Thx for looking into this. Regards, Minne
Kévin Dietrich was assigned by Minne Danhieux 2016-12-15 15:05:54 +01:00
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @MinneDanhieux

Added subscriber: @MinneDanhieux

The issue probably comes from the fact that meshes are empty when importing Alembic objects and the data is generated by the modifier. For smooth normals to be applied through the modifier, it needs to be applied on the mesh before it gets fed through the modifier stack, but since meshes are empty before going through the modifiers, the smooth normal data can not be carried.

As a temporary solution, you could try to create a dummy object (like a cube), and add the Mesh Sequence Cache modifier to it, properly setting the cache file and the object path. Then smooth normals should work.

Normals in Alembic are a bit of a hassle since they can be stored in different ways, and it is not as straightforward to handle them on the Blender side as it seems (a lot depends on how other software output their normal data). Perhaps I could add a user setting to the modifier to tell to set smooth normals flag on the mesh's polygons?

In any case, I had to reinstall my OS, and I haven't yet reinstalled the Blender related stuff, let alone the compilers and general development stuff, so this will have to wait a bit before I can take action.

The issue probably comes from the fact that meshes are empty when importing Alembic objects and the data is generated by the modifier. For smooth normals to be applied through the modifier, it needs to be applied on the mesh before it gets fed through the modifier stack, but since meshes are empty before going through the modifiers, the smooth normal data can not be carried. As a temporary solution, you could try to create a dummy object (like a cube), and add the Mesh Sequence Cache modifier to it, properly setting the cache file and the object path. Then smooth normals should work. Normals in Alembic are a bit of a hassle since they can be stored in different ways, and it is not as straightforward to handle them on the Blender side as it seems (a lot depends on how other software output their normal data). Perhaps I could add a user setting to the modifier to tell to set smooth normals flag on the mesh's polygons? In any case, I had to reinstall my OS, and I haven't yet reinstalled the Blender related stuff, let alone the compilers and general development stuff, so this will have to wait a bit before I can take action.
Author

Thx for the clear explanation and more importantly: a working solution!

It would be nice to have the option flag for sure.

What about this : Importing the sequence with a mesh that is not empty? I'm guessing 1 triangle would do the trick.
When you create the "dummy mesh" you could add 1 triangle(or wathever is needed) before adding the modifier.
Dono if such a solution is acceptable design wise...

In any case thx again for the fast response and the "good enough for me" solution. :)

Thx for the clear explanation and more importantly: a working solution! It would be nice to have the option flag for sure. What about this : Importing the sequence with a mesh that is not empty? I'm guessing 1 triangle would do the trick. When you create the "dummy mesh" you could add 1 triangle(or wathever is needed) before adding the modifier. Dono if such a solution is acceptable design wise... In any case thx again for the fast response and the "good enough for me" solution. :)

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This doesn't seem to be an issue in current Blender any more:

image.png

It probably was fixed in e9c149d911.

This doesn't seem to be an issue in current Blender any more: ![image.png](https://archive.blender.org/developer/F7687041/image.png) It probably was fixed in e9c149d911.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#50255
No description provided.