March 28, 2024, 03:45:45 PM

Username
Password

Pages: 1 ... 5 6 [7] 8   Go Down
Print
Author Topic: Portrait meshes  (Read 138185 times)
0 Members and 1 Guest are viewing this topic.
olly
Global Spokesperson
*
Offline Offline

Posts: 2268



View Profile
« Reply #90 on: March 25, 2018, 06:59:37 PM »

Thanks!

Smiley
Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
EvgenS
Ghoul
*
Offline Offline

Posts: 57



View Profile
« Reply #91 on: March 30, 2018, 09:39:55 PM »

I haven't checked the forum for awhile and just noticed your sneaky conversation.
Great progress Dougie!
Logged

Dark Omen Reborn remake project
https://blackdogs.atlassian.net/wiki/spaces/DOR/overview

"- Our steam tank has been damaged, can you help us?
- I'm not a mechanic..."
https://youtu.be/Xg6zzI4BxoU?t=27m6s
dougie
Night Goblin Archer
*
Offline Offline

Posts: 27


View Profile
« Reply #92 on: March 30, 2018, 11:38:27 PM »

Thanks Evgen, I hope to have some screenshots and a working application with the coming weeks
Logged
dougie
Night Goblin Archer
*
Offline Offline

Posts: 27


View Profile
« Reply #93 on: April 16, 2018, 03:48:42 PM »

Things are looking good here, but I have a few concerns like whether the system I'm making will run smoothly on slower computers, I'll have to test that out.  but otherwise I've got lighting to work with render targets.  I'll post screenshots of the grissburg scene that I'm creating.
Logged
dougie
Night Goblin Archer
*
Offline Offline

Posts: 27


View Profile
« Reply #94 on: April 16, 2018, 06:32:17 PM »

Logged
olly
Global Spokesperson
*
Offline Offline

Posts: 2268



View Profile
« Reply #95 on: April 16, 2018, 07:46:28 PM »

Very nice! Well done

Smiley
Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
dougie
Night Goblin Archer
*
Offline Offline

Posts: 27


View Profile
« Reply #96 on: April 16, 2018, 08:08:33 PM »

Cheers  Smiley, I'll keep going with it till I've got some levels implemented, probably
Logged
dougie
Night Goblin Archer
*
Offline Offline

Posts: 27


View Profile
« Reply #97 on: April 29, 2018, 10:32:55 AM »

An update on the portraits implementation. The animations are looking pretty good
like the original, First scene is working with clicks.

Here's a screenshot.


I'm about to start on some ui elements, arrow buttons basically

I maybe need help working out which animation sets are used by each
character, there are a multitude 0-64
so it's a time consuming task

For example Clouse has animation set 26 immediately when he starts talking.

All the animation sets currently are in 0.seq

code looks like this:
Code:
c->SetBodyAnimation(26, this); or
for example
c->SetBodyAnimation(0, this);
Logged
dougie
Night Goblin Archer
*
Offline Offline

Posts: 27


View Profile
« Reply #98 on: April 29, 2018, 11:01:28 AM »

just realized, I might have edited that 0.seq a while back, could be less than 64 Smiley
Logged
olly
Global Spokesperson
*
Offline Offline

Posts: 2268



View Profile
« Reply #99 on: April 29, 2018, 07:38:36 PM »

Looking good!

Smiley
Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
devast3d
Developer
*
Offline Offline

Posts: 31


View Profile
« Reply #100 on: January 18, 2019, 01:12:17 PM »

Picking up the work. Did some tests on the 1.seq using 0 animation (that is charge).

13 XX XX XX
Seems to be the same as 03 XX XX XX, but only occurs as the first command in the animation

03 00 XX XX or 03 04 XX XX
Second byte seems to be controlling interpolation somehow. By changing 04 -> 00 and recording the videos I see some minor differences during the movement, but nothing really dramatic, only slight diff. Probably we can ignore this.

01 XX XX XX
Is connected somehow to the mouth animation (0A). By removing it from the charge the mouth animation started a lot earlier. Not sure it always works like this because sometimes 01 appears after 0A. Need more investigation. This flag appears rather unfrequently though.

02 00 00 00
Appears before 08 00 00 00 in the end of the animation. Only tested on charge. By removing it from the list mouth animation ended much-much earlier, so it again is connected to mouth (and/or sound) somehow. Need more investigation.

I've written the tool to edit SEQ files
* seqreplaceui.exe (18 KB - downloaded 270 times.)
. Here's the interface

* seqeditor.jpg (312.6 KB. 1920x692 - viewed 533 times.)
.

Open - select source and destination SEQ files
Save - save current state to the destination SEQ
MakeStatic - copies first frame of the animation all over the animation (kinda deprecated due to the next feature)
Edit - allows to edit the bytes manually, very handy. Bytes are in hex, each one should be separated by the whitespace/newline
ResetEdit - reverts the string to the original state


* seqreplaceui.exe (18 KB - downloaded 270 times.)
Logged
olly
Global Spokesperson
*
Offline Offline

Posts: 2268



View Profile
« Reply #101 on: January 18, 2019, 05:18:35 PM »

Excellent Thanks!

Smiley
Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
devast3d
Developer
*
Offline Offline

Posts: 31


View Profile
« Reply #102 on: January 26, 2019, 10:13:00 AM »

More KEY stuff.

Quick reminder:
- each file starts with header byte (num of items)
- each item is 12 bytes long (first 6 is body, second 6 is head)
- each rotation consists of 2 bytes
- second byte has more influence

New stuff:

These 6 bytes represent Pitch, Yaw, Roll respectively in the 1st, 2nd and 3d byte pair. E.g. if you only want Roll you write
00 00 00 00 RR RR

Now, second pair byte always has first digit 0! I.e. actually only 3 digits matter: XX 0X

As was mentioned second byte has more influence. By doing some simple replacements I've figured out the following:

Second byte
- 04 gives 90 deg rotation
- 08 gives 180 deg rotation
- that means 01 of the second is 22.5 deg of rotation

First byte
- Logic says that FF of the second byte should be equal to 01 of the first byte
- This seems to be true from my tests
- i.e. 01 of the first byte is 22.5/256 deg of rotation (let's call it UR - unit of rotation)

So basically they have quantized 360 deg using 2 bytes. Also animation is done via shortest arc, i.e. going from 00 to 07 will go one way, from 00 to 09 the other way (google SLERP on this). Checked this by experiments:

- 00 00 to 01 08 (that's 180deg+1UR) one way
- 00 00 to FF 07 (that's 180deg-1UR) other way
- Going from 00 00 to FF 0F (360deg-1UR) practically shows no movement, although theoretically it should be 1UR of rotation (0.087890625 in degrees), probably too small to be noticed.

That's all for now.
Logged
olly
Global Spokesperson
*
Offline Offline

Posts: 2268



View Profile
« Reply #103 on: January 26, 2019, 09:44:50 PM »

Awesome!
Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
devast3d
Developer
*
Offline Offline

Posts: 31


View Profile
« Reply #104 on: February 04, 2019, 10:19:42 AM »

About 01 XX 00 00 command.

It's simply the delay command. The animation playback in DO will wait certain amount of time (controlled by the second byte XX, not sure the exact conversion rate though) before issuing commands that follow, i.e. everything is still executed in the linear fashion.

=====

Although, everything is not really that linear. E.g. 06 sequence (all is lost) looks like this

13 04 14 03
03 04 14 07
0A 02 00 00
01 05 00 00
05 00 00 00
02 00 00 00
08 00 00 00

05 command (close eyes) happen during the body/head animation (03 command). Not right away, but after some time (01 command).

=====

OK, I think I got it after twiddiling with SEQ files for couple of hours.

01 command actually isn't simple delay. It's a parallel command! Let me elaborate.

First, 01 command is dependent on 03 commands. 03 has its own time of animation. Basically all the animation happens between 03 commands. Let's call single 03 command execution time a segment. So 01 command starts parallel execution in the current segment (i.e. relative previous 03 command) after specified delay. But, 01 also has time! From my experiments if 01 time is less than its 03 time, then current segment's length is unchanged. However, if 01 time is larger than 03 time, then current segment is extended! It doesn't really makes sence to use this since it'll simply introduce pause in the animation (because 03 will already finish its job).

Second, 01 is used in conjunction with 05 and 0A commands. Its main job is to delay these commands relative to nearest 03 command (by specifying 01 time less than its 03 time). This will make eyes/mouth/sound play during the current animation segment.

Third, time scale of the 01 command seems to be the same as in 03 command.

Not sure if all this 100% correct, but at least it fits into my current tests without breaking anything.

BTW, for some reason 05 command is ignored if there's no 0A command in the sequence! At least this happened in my tests with battle SEQ files.
« Last Edit: February 04, 2019, 11:56:53 AM by devast3d » Logged
Pages: 1 ... 5 6 [7] 8   Go Up
Print
Jump to: