<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 26.08.2017 02:40, Vsevolod
Kremianskii wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANWL8p+6JPcP0_2FV1=-UpDsipP5oVcQYxej3U-+W8yAU=-qJg@mail.gmail.com">
<pre wrap="">Hi,
Made some progress on KotOR animations. Commit from my latest PR enables
xoreos to load position/orientation controllers from KotOR models.
Compressed quaternions and 19 data column position controllers are not
handled atm, though it seems to work OK with character models already. One
problem I noticed is that characters fall through the ground when animated.
Not sure what would be the right way to fix that (using bounding box
maybe?).
</pre>
<blockquote type="cite">
<pre wrap="">The only reasonable way to implement this is by vertex shader.
(Thats how its done in jade and probably in kotor too.)
This means we need to wait for mirv to finish his shader rework.
</pre>
</blockquote>
<pre wrap="">
As for the skeletal animation, I was thinking about making a separate
vertex buffer per each animation time key for the time being (at model
loading, no interpolation). Should I do that or better not bother?
</pre>
</blockquote>
It would be best if you could talk to mirv on IRC about this.<br>
But IMHO it is the wrong approach.<br>
Because if I understood you correctly it means to compute the
position and orientation<br>
of every vertex for every model per frame on the CPU.<br>
<br>
The only vertex buffer should be the model data.<br>
Then you add the MVP matrix, the time offset into the animation and
the<br>
position/orientation data of the animation as uniforms and let it
all compute<br>
in a vertex shader.<br>
This way only the MVP matrix and the time offset changes per
animation frame.<br>
<blockquote type="cite"
cite="mid:CANWL8p+6JPcP0_2FV1=-UpDsipP5oVcQYxej3U-+W8yAU=-qJg@mail.gmail.com">
<pre wrap="">
Regards,
Vsevolod
2017-08-26 0:36 GMT+07:00 Sven Hesse <a class="moz-txt-link-rfc2396E" href="mailto:drmccoy@drmccoy.de"><drmccoy@drmccoy.de></a>:
</pre>
<blockquote type="cite">
<pre wrap="">On 2017-08-25 19:22:47 +0200, Farmboy0 wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Actually most of the values for the Kotor model files are known.
</pre>
</blockquote>
<pre wrap="">
Ah, okay, then I am just misremembering things. My bad. :)
_______________________________________________
xoreos-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xoreos-devel@xoreos.org">xoreos-devel@xoreos.org</a>
<a class="moz-txt-link-freetext" href="https://xoreos.org/mailman/listinfo/xoreos-devel">https://xoreos.org/mailman/listinfo/xoreos-devel</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
xoreos-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xoreos-devel@xoreos.org">xoreos-devel@xoreos.org</a>
<a class="moz-txt-link-freetext" href="https://xoreos.org/mailman/listinfo/xoreos-devel">https://xoreos.org/mailman/listinfo/xoreos-devel</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>