PDA

View Full Version : Swapping heads from FaceGen


JRodrigoF
02-02-2016, 06:47 AM
Hello,

I've been using Facegen to generate custom heads that I later replace and use in the avatars. I compute the neck vertices and autoscale the heads in PeopleMaker, etc. Everything works OK except when I use hair models from Facegen on female heads. In these cases, again all looks OK both in Facegen and Peoplemaker, but when I use my new head (.vzf) and load it in Vizard, the hair appears to cover either entirely, or partially the face. I've tried so far the 3D modeller version of Facegen, which they have told me uses transparencies in the textures and might be a cause of the problem, and have also used the 3D Print version, which does not use transparencies. This is slightly better, but still has the same problem. Here below images of avatars with a hair models for male, and using female hairs with both 3D modeller and 3D print.

Any feedback on this issue would be great,
Best,
Rodrigo

Jeff
02-02-2016, 07:21 AM
Try enabling alpha-to-coverage. This is explained in the transparency (http://docs.worldviz.com/vizard/#transparency.htm) page.

JRodrigoF
02-04-2016, 04:20 AM
Thanks.

I've tried enabling alpha-to-coverage for the the room, the head and the body once the head is swapped. Separately for each and also enabling alpha-to-coverage in all objects at the same time. Unfortunately none of these options has worked. The code I use is like this:

import viz

viz.setMultiSample(4)
viz.go()

model = viz.addChild('gallery.osgb')
#model.enable(viz.SAMPLE_ALPHA_TO_COVERAGE)
#model.disable(viz.BLEND)

Body = viz.add('vcc_female.cfg')
Head = viz.addFace('avatars\pictures\p_09\FG\p09H.vzf')

Head.enable(viz.SAMPLE_ALPHA_TO_COVERAGE)
Head.disable(viz.BLEND)

Body.setFace(Head, 'Bip01 Head', 'Bip01 Neck')
#Body.enable(viz.SAMPLE_ALPHA_TO_COVERAGE)
#Body.disable(viz.BLEND)


Indeed if I only place the head it looks OK. But once I replace it in the avatar body it doesn't. Pictures attached. Any further feedback sorry?

Best,
Rodrigo

Jeff
02-04-2016, 09:33 PM
We're following up in the support ticket.

JRodrigoF
02-22-2016, 10:09 AM
Many thanks for the assistance with this issue. Now it is solved. Just for the record:

The problem was being caused because by mistake I was computing neck vertices also for geom_0 in the facegen head. This geom corresponds to the hair, therefore all the hair was being pulled down towards the avatar's neck. De-selecting all the computed vertices for the neck solves the issue.