Page 2 of 2

Re: Make_obj (C source)

Posted: Wed Oct 31, 2018 12:41 pm
by asphyxiazation
shakotay2 wrote:
asphyxiazation wrote:so, out of curiosity, what are the other contents of the prefab file that its size reaches 1.829kb while the actual mesh is only 126kb
It's normals which I usually skip; and weight data, I guess; there's positions and rotations for the skeleton bones, and some other data that would require a deeper look.
thanks for the insight, shakotay2! 8)

Re: Make_obj (C source)

Posted: Sat Dec 22, 2018 10:57 am
by leyme
shakotay2 wrote:Scion of Fate, 101.YOM tested only (may fail on others, adding of unrecognized FI blocks to the source is required then).
Make_obj.zip
yeah, that's not nice: all objects are clumped together. Maybe there's offsets in the 101.txt file to move them into correct positions (position in World Matrix is a candidate).
Also uvs of some objects seem to be missing.

You have the source, so don't complain, improve it.
Image
Please help me.
Some files cause problems

Re: Make_obj (C source)

Posted: Sun Dec 23, 2018 1:42 am
by shakotay2
thanx for reporting, leyme! :)
Here's an update for the SuperHeroGeneration auto correction (which had a problem; checked hg009_0001_01_m01.mbg only!):
Make_obj-ZoE.zip
(no source update this time because ZoE source part is not ready for release and I'm too lazy to cut it from the actual source)

Re: Make_obj (C source)

Posted: Sun Dec 23, 2018 9:59 am
by leyme
shakotay2 wrote:thanx for reporting, leyme! :)
Here's an update for the SuperHeroGeneration auto correction (which had a strange bug; checked hg009_0001_01_m01.mbg only!):
Make_obj-ZoE.zip
(no source update this time because ZoE source part is not ready for release and I'm too lazy to cut it from the actual source)
Image
Thanks shakotay2.
Other files are error.
https://www.mediafire.com/file/j322x7ag ... g.zip/file

Re: Make_obj (C source)

Posted: Sun Dec 23, 2018 3:02 pm
by shakotay2
well, too bad. The "bug" was not a bug, it worked as expected but I didn't get the real problem so far (need more time, next year, I assume (: )

I made a workaround (see updated zip in my previous post) so that you can load the meshes at least into blender for example. Then erase the spoiled submeshes (hopefully one intact one will remain):
SHeroGen-probs.png

Re: Make_obj (C source)

Posted: Mon Dec 24, 2018 4:48 am
by shakotay2
well, thing is, there's unrecognized vertex blocks:
hg010_0002-SM02.png

Re: Make_obj (C source)

Posted: Tue Dec 25, 2018 12:59 am
by leyme
shakotay2 wrote:well, thing is, there's unrecognized vertex blocks:
hg010_0002-SM02.png
wow.I salute you for your enthusiasm

Re: Make_obj (C source)

Posted: Tue Dec 25, 2018 3:18 pm
by shakotay2
yeah, I'm totally surprised, too. :D (made an update to the previous zip) But I really need a break here.

Still some spoiled meshes, with er045_0001_02_m01.mbg for example.
You may check out for yourself (using hex2obj for example) which correction might be false;
or maybe vBlock and FIblock pairs don't fit together.

(abbreviations: vCnt= vertex count; FIcnt= face indices count)
# start of vertices
#0 59e
# UV01 0x7859c (2574) (name is uv01, but appears to be a vertex block for me)
#1 b6517
#2 c30de
#3 d202d
#4 e933a
#5 13cd61
# UV01 0x1db03f (2574)
#6 233baa
#7 247c2c
#8 270d6e

# FIs at:
# 0x70819
# 0xb36c9
# 0xc1d74
# 0xc3783
# 0xd12d9
# 0xe8058
# 0x10a80d
# 0x1acfdc
# 0x21616c
# 0x23f407
# 0x25dc57
# 0x292241
# SubMesh count and FIs block count are different!
Some SM may be missing. 11 != 12
#0 vCnt: 7461 (at 0x496), FIcnt: 21738
correction counts: 4887 / 16002
#1 vCnt: 502 (at 0xb6413), FIcnt: 2292
corr: FIcnt 5736
#2 vCnt: 613 (at 0xc2fd6), FIcnt: 1557
corr: FIcnt 2292
#3 vCnt: 959 (at 0xd1f29), FIcnt: 2226
corr: FIcnt 42
#4 vCnt: 1451 (at 0xe9236), FIcnt: 6603
corr: FIcnt 1515
#5 vCnt: 7461 (at 0x13cc59), FIcnt: 21738
corr: 4887 / 2226
#6 vCnt: 502 (at 0x233aa6), FIcnt: 2292
corr: FIcnt 6603
#7 vCnt: 959 (at 0x247b28), FIcnt: 2226
corr: FIcnt 16002
#8 vCnt: 1451 (at 0x270c6a), FIcnt: 6603
corr: FIcnt 5736

Re: Make_obj (C source)

Posted: Wed Jul 10, 2019 12:18 pm
by wjj162446
Thanks sir,they are helpful

Re: Make_obj (C source)

Posted: Mon Sep 09, 2019 7:47 pm
by shakotay2
"One for all" pmd models, tested chr_body_rank_104_a_slender.pmd only!
Make_obj-pmd.zip
(no source code update this time because the pmd2obj code is dead ugly :eek: )

last source code version (without .pmd support) to be found in the opening post:
shakotay2 wrote:
Mon Mar 06, 2017 11:01 am