Profile Picture

Character hair importing correctly in the import window, but not in the game.

Posted By music_20140911111126304 7 Months Ago
You don't have permission to rate!

Character hair importing correctly in the import window, but not in...

Author
Message
music_20140911111126304
music_20140911111126304
Posted 7 Months Ago
View Quick Profile
Junior Member

Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)

Group: Forum Members
Last Active: 4 days ago
Posts: 13, Visits: 343
Using CC version 4.4, Unity 2021.3.20f1, and the 1.6.0 URP pipeline plugin.

When I use the plugin to import my character into Unity, from the plugin window he looks great:

50% of original size (was 1005x87) - Click to enlarge

But when I add the imported prefab into the actual game, this is what comes out:
50% of original size (was 1005x87) - Click to enlarge50% of original size (was 1005x87) - Click to enlarge
The skin and clothes came out fine, but for some reason his hair and beard are all completely black and VERY pixelated. Not sure what I'm doing wrong - I assume it's probably a shader property I overlooked, since it looks fine in the preview window but not the actual game, but not sure what it is I overlooked.
Victor.Soupday
This post has been flagged as an answer
Victor.Soupday
Posted 7 Months Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)

Group: Forum Members
Last Active: 2 minutes ago
Posts: 555, Visits: 8.2K
It's a lighting bug.it seems. If there are no realtime lights on the material (or the light intenisity is less than 0.001) the lighting colour returned by the core lighting functions is a large negative number, and as the final lighting result is all the lighting calculations added together it wipes out all the colour from the ambient light.

For now you can prevent it happening by adding a directional light to the scene with an intensity of at least 0.001. But I'm going to have to rework all the URP shaders and probably the built in too to sanitize the Light colour values.


music_20140911111126304
music_20140911111126304
Posted 6 Months Ago
View Quick Profile
Junior Member

Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)

Group: Forum Members
Last Active: 4 days ago
Posts: 13, Visits: 343
Ah, yeah this is a horror game, so lightning is next-to-non-existent, lol, so that tracks. I'll play around with directional lights, thanks for the tip!
Edited
6 Months Ago by music_20140911111126304
music_20140911111126304
music_20140911111126304
Posted 6 Months Ago
View Quick Profile
Junior Member

Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)

Group: Forum Members
Last Active: 4 days ago
Posts: 13, Visits: 343
I suspect this may be a similar issue as the hair we discussed previously, but lighting doesn't seem to affect this one, so maybe not. For some reason, the character model's hands are disappearing during gameplay.

If you look at the hands in the Scene or Game view while editing, they appear as normal:
https://forum.reallusion.com/uploads/images/537fc0e0-476e-458f-aa42-0d61.png
https://forum.reallusion.com/uploads/images/90bfce4f-c664-4052-9ef8-a532.png

But once you start Gameplay mode, they disappear (both in Game View and Scene View):

https://forum.reallusion.com/uploads/images/960c8d35-f1e1-43e2-bcfa-5d3c.png
https://forum.reallusion.com/uploads/images/b7a49710-b13c-4da2-8108-9540.png

https://forum.reallusion.com/uploads/images/f19c8c02-1a00-489f-87fd-d357.png
https://forum.reallusion.com/uploads/images/474b819f-2fb9-46dc-af52-26f4.png
About three minutes into the following demo video is where you can see this animation in action: 

I "chopped off" copies of each arm of the model to use for the in-camera arms (for holding weapons, tools, etc), and the hands appear on those models:

https://forum.reallusion.com/uploads/images/3683fb14-4552-47c1-a9e3-2540.png
https://forum.reallusion.com/uploads/images/12623b91-0efc-4af2-b073-ea76.pnghttps://forum.reallusion.com/uploads/images/ea67129b-7a00-4f5c-b373-ca06.pnghttps://forum.reallusion.com/uploads/images/cecbd3ee-de8b-4554-a5d8-a439.pnghttps://forum.reallusion.com/uploads/images/9e092044-284e-45c7-a2db-591d.pnghttps://forum.reallusion.com/uploads/images/755fb8e8-446a-47f7-8c27-9925.pnghttps://forum.reallusion.com/uploads/images/bfbd3656-c9e7-4b63-8590-165d.png

It's just the main model that they disappear from, so I'm a bit flummoxed as to what's causing this.
Victor.Soupday
Victor.Soupday
Posted 6 Months Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)Distinguished Member (5.6K reputation)

Group: Forum Members
Last Active: 2 minutes ago
Posts: 555, Visits: 8.2K
Most likely getting culled due to bounding box issues with the camera being so close. It uses simple bounding box calculations to determine if an object is on the screen. But if the camera is very close and the object is a complex skinned mesh, it can get it wrong.

Easy way to tell: turn on "Update When Offscreen" in the skinned mesh renderer. See if that fixes it.
music_20140911111126304
music_20140911111126304
Posted 5 Months Ago
View Quick Profile
Junior Member

Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)Junior Member (173 reputation)

Group: Forum Members
Last Active: 4 days ago
Posts: 13, Visits: 343
Yep, that did it. Thank you again!



Reading This Topic