<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="margin: 0px;" class=""><font color="#bb2ca2" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">In order to achieve augmented reality in VES I’ve resorted to bypassing the vesCamera and updating the projection and model
 view of representations directly. I know this value has been updated based upon the subsequent variable, but nothing moves on screen. </span></font></font></div>
<div style="margin: 0px;" class=""><font color="#bb2ca2" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class="">
</span></font></font></div>
<div style="margin: 0px;" class=""><font color="#bb2ca2" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">When using a transform on an actor the calls all end in setBoundsDirty and the object moves. So what needs to change to achieve this
 result?</span></font></font></div>
<div style="margin: 0px;" class=""><font color="#bb2ca2" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class="">
</span></font></font></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class=""><br class="">
</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">void</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span>vesKiwiCameraImagePlaneDataRepresentation<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">::setProjectionMatrix(</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">const</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span>vesMatrix4x4f<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> &projectionMatrix)</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">{</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    <span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">cout</span> <<
<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">endl</span> <<
<span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">
"Projection matrix"</span> << <span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">endl</span> << projectionMatrix <<
<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">endl</span>;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">
this</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">_internal</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">_projectionMatrix</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">set</span>(projectionMatrix);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">}</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">void</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span>vesKiwiCameraImagePlaneDataRepresentation<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">::setModelViewMatrix(</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">const</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">
</span>vesMatrix4x4f<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> &modelViewMatrix)</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">{</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//    std::cout << std::endl << "Model view matrix" << std::endl << modelViewMatrix << std::endl;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//    vesSharedPtr<vesUniform> currentModelViewMatrixUniform = this->_internal->_modelViewMatrix;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//    vesMatrix4x4f currentModelViewMatrix;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//    currentModelViewMatrixUniform->get(currentModelViewMatrix);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//    vesMatrix4x4f updatedModelViewMatrix;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class="">
//    updatedModelViewMatrix = modelViewMatrix * currentModelViewMatrix;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">
this</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">_internal</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">_modelViewMatrix</span>-><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">set</span>(modelViewMatrix);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    <span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">
vesMatrix4x4f</span> subsequent;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">   
</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">this</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">-></span>_internal<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">-></span>_modelViewMatrix<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">-></span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">get</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(subsequent);</span></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">    <span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">cout</span> <<
<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">endl</span> <<
<span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">
"Model view matrix"</span> << <span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">endl</span> << subsequent <<
<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">
std</span>::<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">endl</span>;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">}</div>
<div class=""><br class="">
</div>
</body>
</html>