Page 1 of 2

Knights Contract Noesis Model Import Script (PS3) .hxt .txb

Posted: Fri Jan 06, 2017 5:08 am
by chrrox
Here is a script to import these models with textures.
If someone wants to work on the skeleton ill add support for it into the script.
Just move the texture file (.txb) in the same directory as the model (.hxt)
and it will load it if they are named the same example (chr272.hxt / chr272.txb).
Image
Image
Image

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Sat Jan 07, 2017 1:40 am
by chrrox
updated script for some more fancy effects and fixed normal's. (Thanks to Mr adults for help on this)
ImageImage

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Sun Jan 08, 2017 10:30 pm
by Tosyk
thanks for this! is it possible to get bones and weights?

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 2:49 am
by chrrox
Tosyk wrote:thanks for this! is it possible to get bones and weights?
If someone figures out bone parenting the rest will be very easy.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 8:10 am
by Tosyk
chrrox wrote:
Tosyk wrote:thanks for this! is it possible to get bones and weights?
If someone figures out bone parenting the rest will be very easy.
if bones have names paranting could be done with maxscript, I mean hardcoded. I did that many times.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 2:31 pm
by chrrox
there are no bone names.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 2:37 pm
by Tosyk
chrrox wrote:there are no bone names.
can bones and weights be added without parenting? at least we could parent them manualy.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 2:41 pm
by chrrox
The skeleton is local.
I could add bones and weights but the bones are in a pile at the models feet and would need to be moved to the correct position.
That is why i needed the bone parenting to transform the bones to the correct position.
If you want to try to move the skeleton to the correct position ill add it for you it might help find what bones are what.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 2:47 pm
by Tosyk
chrrox wrote:The skeleton is local.
I could add bones and weights but the bones are in a pile at the models feet and would need to be moved to the correct position.
That is why i needed the bone parenting to transform the bones to the correct position.
If you want to try to move the skeleton to the correct position ill add it for you it might help find what bones are what.
if adding bones/weights it's a trivial thing at the point and you can add them today I might do that and post my researches here.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Mon Jan 09, 2017 4:36 pm
by chrrox
Here you can try it.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Tue Jan 10, 2017 12:43 am
by Tosyk
chrrox wrote:Here you can try it.
thanks, I managed to raw re-map bones for chr053. here it is:
Image

I've been surprised when I first opened model file in noesis — bones were not in the scene zero. Look at the finger bone groups for both palms — I didn't touch them, just moved in place. these groups makes me think that for bone mapping integers are used, although fractional numbers need to be used instead. I don't know where the right numbers are, maybe they rounds by some noesis function.

I have seen this before — sometimes it happened on early stage of format parsing on the mesh (when it looks too geometrical) and weights (when they are all red or out of place/order).

You should understand that math is not my best side neither the english language. I hope these thoughts helps you to find correct bone mapping.

p.s.: also bones for different models have different names. for ex: head bone name for chr053 is '22' however for chr079 this bone name is '79'.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Tue Jan 10, 2017 2:59 am
by chrrox
you should send some of the files so I can see them in max.

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Tue Jan 10, 2017 6:32 pm
by eri619
could you please update your noesis scriping tutorial with images? the images are dead, you have ignored my bumps in that topic
viewtopic.php?f=29&t=7760

Same is the case with Very Basic model format conversion (Shaiya)

viewtopic.php?f=29&t=3739

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .

Posted: Tue Jan 10, 2017 7:46 pm
by Tosyk
chrrox wrote:you should send some of the files so I can see them in max.
sure (max ver. 2009)
https://dl.dropboxusercontent.com/u/9919707/chr053.7z

Re: Knights Contract Noesis Model Import Script (PS3) .hxt .txb

Posted: Fri Jul 12, 2019 11:11 pm
by akderebur
Weird bone mapping/ordering indeed. I think I got it mostly working with some little hacks included :D Not perfect always, but might be better than nothing. I have attached the updated script.

Image

This script can probably be adapted to "Clash of the Titans" PS3 game too. Almost identical format.