Profile Picture

Export from CC3 to Blender to .GLTF

Posted By codyvbrown 4 Years Ago
You don't have permission to rate!
1
2

Author
Message
Victor.Soupday
Victor.Soupday
Posted 4 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)

Group: Forum Members
Last Active: Last Week
Posts: 569, Visits: 9.0K
Basic single pass alpha blending always does a poor job for rendering hair. Blender gets away with it's alpha hashed blending, but nothing else supports that as it uses sampling overdraw to make it look good.

You could try setting it to opaque with alpha clipping, but that usually ends up look too chunky and thick.

Ideally you would need a multi-pass shader to render the hair that does some kind of opaque or depth pre-pass before rending the alpha blending on top of it. Babylon.js can do this in theory, but I've got no idea how to make it happen.
  • Duplicating the hair mesh
  • Make a copy of the hair material
  • Separate the duplicated mesh by materials and delete any duplicate scalp section
  • Set the original hair material to Alpha Blend
  • Set the duplicate hair mesh to use the copied material and set that to Alpha Clipped with quite a high clip threshold (0.7+).

This in effect creates a 2 pass hair renderer. The opaque alpha clip material effectively resolves most of the z-sorting issues and the alpha blend material draws the remaining hair with transparency.

e.g: Just rendered with alpha blend:

https://forum.reallusion.com/uploads/images/cd3d2f8c-2f5b-4472-ae9d-b989.png

Then with an opaque alpha clip mesh on top:

https://forum.reallusion.com/uploads/images/8d3f90ff-b2bf-4a18-a38e-b6a3.png

It's a little bit wasteful as it has to process the hair mesh twice, but it works at a pinch.
As most of the hair is rendered opaque, it actually renders a lot faster than with just Alpha blend.


r.mccullough
r.mccullough
Posted 4 Years Ago
View Quick Profile
Junior Member

Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)Junior Member (162 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 7, Visits: 102
Victor, thanks so much for providing your valuable feedback. Hugely appreciated. Your suggestion was right on point.  The modified result is below so I think I can call this one done.
Really appreciate the tools you've put out as well, using both CC3 and CC3 Bake. Before I found them, I was new to Reallusion and Blender and really really struggling. Its been a game changer for us. Cheers.
https://forum.reallusion.com/uploads/images/b2093a88-a78d-4df1-aa78-d6af.png
tmbpodcastoffice
tmbpodcastoffice
Posted 3 Years Ago
View Quick Profile
Junior Member

Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)Junior Member (113 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 5, Visits: 60
By any chance would you know the reason for this error here on hitting CC3 Bake:



I've tried differing locations for 'Bake Folder'.
I've been following the procedure as shown here: https://forum.reallusion.com/482999/Export-from-CC3-to-Blender-to-GLTF?PageIndex=1

Blender 2.93.1
CC3 Tools 1.1.5
CC3 Bake 0.1.3

More information can be provided. 
mila_647012
mila_647012
Posted 3 Years Ago
View Quick Profile
Senior Member

Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)Senior Member (289 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 16, Visits: 200
Hey guys,
I’m about to try all the procedure, plug-in and suggestions listed here. Just wanted to ask, before I do so, if there have been any changes that need to be taken into consideration, especially with iClone 8 and CC4? And what’s the best way to export animations and fa il animations + voice for glTF?
I’d appreciate any help on this!

1
2



Reading This Topic