Page 15 of 36
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Sun Oct 03, 2010 5:18 pm
by ultimaespio
I may be pushing it a bit, but...is there any chance of getting KH1 maps? They look really interesting, I'd like to have a play around with them.
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Sun Oct 03, 2010 5:26 pm
by revelation
Well in KH there are some errors with vertices that have multiple weighted position values. These are usually found in models with high-poly faces.
With BBS in most of those models the faces are actually still flipped, which should hopefully be easier to remedy. There are also issues where the offsetting of the vertex data based on the flags as i had listed earlier in the thread; seem to be off with some models. Still need to check my code to ensure i have implemented it all correctly. Some models do have uv issues, but i think that may be due to the incorrect offsets causing errors in the data retrieval and flipped faces.
Will have to see how it goes.
Edit:
Ok, fixed the flipped faces, heh. Forgot to check a flag, silly me.
Still think the offset issue is there, but i will be testing more and see what i can make of it.
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Mon Oct 04, 2010 12:02 am
by valvoga
wow that is aweeeeeeeeeeesome revelation
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Mon Oct 04, 2010 12:51 am
by Zerox
So revelation your working on your own converter for both then huh?
It seems to me it'd be beneficial to all of you working on converters if you coordinated your findings. Though this is not my place to say. I think it's awesome you found the flipped face issue. That's been one of the biggest issues so we've had without any idea on how to fix it.
Although I think I see what you mean about your converter not being 100% error free yet. Looks like Braig's eyes are disfigured.
Like as if one eye was going up and the other was going down.
But it seems your well on your way.
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Mon Oct 04, 2010 1:37 am
by revelation
Yes, the textures were off for some textures that were not power of 2. The GsTex0 structure in the TIM2 data has the intended texture size. Use that for the actual texture size allocation, and just skip the pad bytes when filling if the image size differs. Seems to work great now.
As far as coordinating my efforts, i already have. The information in the template i posted earlier in the thread has all the information i have used to get to this point. There have been a few corrections, and i will update those shortly. Anything else, feel free to ask.
Now i just need to look into a more reliable way to properly extract the *.dat files.
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Mon Oct 04, 2010 4:22 am
by Zerox
I must say that looks significantly better well done. So quickBMS isn't enough for getting at the .dat files for you huh?
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Mon Oct 04, 2010 10:01 am
by valvoga

Braig look awesome,awesome work revelation
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Tue Oct 05, 2010 5:08 pm
by ChrisSquareFan
To fix flip face issue you must check a flag, and generate faces using indexes by alternating order, like this:
Code: Select all
flip = read flag, 0 or 1;
for(...) //generate faces
{
mesh->BeginPolygon();
if(flip)
{
mesh->AddPolygon(j);
mesh->AddPolygon(j + 1);
mesh->AddPolygon(j + 2);
}
else
{
mesh->AddPolygon(j + 2);
mesh->AddPolygon(j + 1);
mesh->AddPolygon(j);
}
flip = !flip;//the trick is here!
mesh->EndPolygon();
}
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Wed Oct 06, 2010 4:00 am
by Mirrorman95
When will a more accurate exporter be released?
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Wed Oct 06, 2010 11:58 am
by ChrisSquareFan
when I'll have time..
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Wed Oct 06, 2010 12:15 pm
by ultimaespio
Mirrorman95 wrote:When will a more accurate exporter be released?
It'll be done when its done. Just be patient and wait. People have lives you know, and don't sit around making model exporters all day.
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Wed Oct 06, 2010 3:11 pm
by Mirrorman95
But what about Falo? Doesn't he know anything more about the model-unpacking process than he did two months ago when he released the current version? Couldn't he make the files opensource so other people could work on it?
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Wed Oct 06, 2010 11:29 pm
by ChrisSquareFan
High Poly update. It seems I'm missing some data...
Capture.PNG
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Thu Oct 07, 2010 12:22 am
by revelation
That's about what i am getting in KH, and is the only error i have left at the moment.
Something to do with the way the transform needs to be handled for indices in the matrix table that are >= 0x100, i think. Still looking into it.
Re: [Request] Kingdom Hearts Birth By Sleep models
Posted: Thu Oct 07, 2010 8:35 am
by ChrisSquareFan
revelation wrote:That's about what i am getting in KH, and is the only error i have left at the moment.
Something to do with the way the transform needs to be handled for indices in the matrix table that are >= 0x100, i think. Still looking into it.
At first i thought the weights were the problem, but it looks like some vertexes are bound to incorrect joints because of erroneous reading.