# Cinder-Skinning : FacialMorphTargets example rendering but not morphing

**URL:** <https://discourse.libcinder.org/t/cinder-skinning-facialmorphtargets-example-rendering-but-not-morphing/440>\
**Category:** CinderBlocks\
**Created:** [December 9, 2016, 3:20pm UTC](https://discourse.libcinder.org/t/cinder-skinning-facialmorphtargets-example-rendering-but-not-morphing/440 "2016-12-09T15:20:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![herc](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@herc](https://discourse.libcinder.org/u/herc)\
**Post date:** [December 9, 2016, 3:20pm UTC](https://discourse.libcinder.org/t/cinder-skinning-facialmorphtargets-example-rendering-but-not-morphing/440/1 "2016-12-09T15:20:10Z")

</div>

First i would like to thank num3ric for creating the very nice Cinder Skinning block.

i managed to compile the code with only one minor change (changing from boost to std::experimental::filesystem::exists ).  
i also managed to compile the very promising FacialMorphTargets example and could still download the “Jane” asset from [http://www.facegen.com/sampleExports.htm](http://www.facegen.com/sampleExports.htm) .

The head gets nicely displayed, but the morphing does not work.  
I enabled the console and get the following warning:

|warning| cinder::gl::VboMesh::buildVao[477] Batch GlslProg expected an Attrib of USER\_DEFINED, with name vPositionDiff2 but vertex data doesn’t provide it.

maybe thats the reason the mesh doesnt morph ?  
i tried some debugging, but unfortunately i cannot make sense of the warning.

could maybe someone help out ? i would really love to get the face-morphing to work.

thanks alot in advance !

---

<div class="post-metadata">

**Author:** ![herc](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@herc](https://discourse.libcinder.org/u/herc)\
**Post date:** [December 9, 2016, 3:23pm UTC](https://discourse.libcinder.org/t/cinder-skinning-facialmorphtargets-example-rendering-but-not-morphing/440/2 "2016-12-09T15:23:04Z")

</div>

p.s. some information:  
running under windows 8.1 , using visual studio 2015 update 3  
using a very recent Cinder 0.9.1dev

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [January 15, 2017, 6:51am UTC](https://discourse.libcinder.org/t/cinder-skinning-facialmorphtargets-example-rendering-but-not-morphing/440/3 "2017-01-15T06:51:03Z")

</div>

Try changing the `ABatchSection` construction initializer in `AMeshSection.h` from

```auto
mBatch( ci::gl::Batch::create( ci::gl::VboMesh::create( *source ), shader, mapping ) )

```

to

```auto
mBatch( ci::gl::Batch::create( *source, shader, mapping ) )

```

---

<div class="post-metadata">

**Author:** ![herc](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@herc](https://discourse.libcinder.org/u/herc)\
**Post date:** [January 20, 2017, 12:14pm UTC](https://discourse.libcinder.org/t/cinder-skinning-facialmorphtargets-example-rendering-but-not-morphing/440/4 "2017-01-20T12:14:42Z")

</div>

gabor, thank you VERY MUCH ! this did the trick - it now works fine !  
cheers !
