Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Import Tuner Challenge [XBOX360]

Post questions about game models here, or help out others!
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

Untitled0.png
This is my main problem. I think my original fix was deleting triangles
You do not have the required permissions to view the files attached to this post.
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

Untitled0.png
There are even more errors
You do not have the required permissions to view the files attached to this post.
User avatar
Takukun
advanced
Posts: 45
Joined: Sun Sep 06, 2015 1:40 am
Has thanked: 136 times
Been thanked: 24 times

Re: Import Tuner Challenge [XBOX360]

Post by Takukun »

Oh shi* this is awesome. Just fantastic. You guys made my day.
User avatar
REDZOEU
veteran
Posts: 151
Joined: Thu Mar 10, 2011 8:03 am
Location: Jakarta, Indonesia
Has thanked: 74 times
Been thanked: 50 times
Contact:

Re: Import Tuner Challenge [XBOX360]

Post by REDZOEU »

JohnHudeski wrote:
Untitled.png
What is that?
I've looked at images from the real car, and i can tell that the unknown square is the car door's keyhole. The reason for it being square is to save up triangle count by using alpha texture like most racing games.
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

I will just state once again
The source of all our problems come from the fact that the game uses triangle strips and unity does not support this
So I am forced to convert from triangle strips to a triangle list and I am very unsure of the code's accuracy.
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

Code: Select all

//Shameful hack. Slow code
public static int[] ConvertStripToTriangle(int[] triStrip, Vector3[] vert)
    {
        List<int> triList = new List<int>(); //our new list

        for (int i = 2; i < triStrip.Length; i++)
        {
            bool isEven = (i % 2 == 0);
            int a = triStrip[i - 2];
            int b = triStrip[isEven ? i - 1 : i];
            int c = triStrip[isEven ? i : i - 1];
            string s = string.Format("a:{0}, b:{1}, c:{2}", a, b, c);

            //Tests if we are using over stretched triangles from origin
            if (a == 0 || b == 0 || c == 0)
            {
                float l0 = Vector3.Distance(vert[a], vert[b]);
                float l1 = Vector3.Distance(vert[a], vert[c]);
                float l2 = Vector3.Distance(vert[c], vert[b]);
                float min = Mathf.Min(l0, l1, l2);
                float max = Mathf.Max(l0, l1, l2);
                if ((max / min) > 20)
                {
                    Debug.Log("Potentially faulty triangle" + s);
                    continue;
                }
            }
            triList.Add(a);
            triList.Add(b);
            triList.Add(c);
        }
        return triList.ToArray();
    }
Untitled.png
No more errors
Please send textures
You do not have the required permissions to view the files attached to this post.
User avatar
blackracer
advanced
Posts: 51
Joined: Sat Jun 27, 2015 1:20 pm
Has thanked: 30 times
Been thanked: 49 times

Re: Import Tuner Challenge [XBOX360]

Post by blackracer »

Guys, JohnHudeski is very cool, he did it, it works :mrgreen:

ToyotaVitz Traffic Model in 3ds Max:

Image
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

I am taking a break for a while. Sent the code to Blackracer. It works but could be better
eg need to combine meshes
Texturing is a pain for me.
But you guys should be good

I will come back with improvements
User avatar
REDZOEU
veteran
Posts: 151
Joined: Thu Mar 10, 2011 8:03 am
Location: Jakarta, Indonesia
Has thanked: 74 times
Been thanked: 50 times
Contact:

Re: Import Tuner Challenge [XBOX360]

Post by REDZOEU »

JohnHudeski wrote:I am taking a break for a while. Sent the code to Blackracer. It works but could be better
eg need to combine meshes
Texturing is a pain for me.
But you guys should be good

I will come back with improvements
Big thanks man. You and blackracer have done a very great job. BIG thumbs up!
User avatar
blackracer
advanced
Posts: 51
Joined: Sat Jun 27, 2015 1:20 pm
Has thanked: 30 times
Been thanked: 49 times

Re: Import Tuner Challenge [XBOX360]

Post by blackracer »

RB26DETT :keke:

Image
User avatar
REDZOEU
veteran
Posts: 151
Joined: Thu Mar 10, 2011 8:03 am
Location: Jakarta, Indonesia
Has thanked: 74 times
Been thanked: 50 times
Contact:

Re: Import Tuner Challenge [XBOX360]

Post by REDZOEU »

blackracer wrote:RB26DETT :keke:

Image
YES!!! That's exactly the reason why i want to extract models from this game! And also the R34 and it's C-West N2 kit :D .
Can't wait until the tool is completely finished!
User avatar
blackracer
advanced
Posts: 51
Joined: Sat Jun 27, 2015 1:20 pm
Has thanked: 30 times
Been thanked: 49 times

Re: Import Tuner Challenge [XBOX360]

Post by blackracer »

I'm all looking at the models and I cannot begin to refine tool :D
Models are excellent!!!
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

You have to explain to me how you are finding what textures go where
seriously
User avatar
blackracer
advanced
Posts: 51
Joined: Sat Jun 27, 2015 1:20 pm
Has thanked: 30 times
Been thanked: 49 times

Re: Import Tuner Challenge [XBOX360]

Post by blackracer »

Textures are determined only by the model of the engine and the car, that is, I look at the model let's say this CA18DET means I need to look for Nissan180sx, in hex I do a search through TotalComander. I find XPR and unpack them.

Image

Unfortunately there are no references in * .dat about names :(
I did easily separate the files containing Shapes from others * .Dat. I come to the conclusion that need to do the BatchConvert function, there are a lot of files and they need to be sorted somehow.
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Import Tuner Challenge [XBOX360]

Post by JohnHudeski »

interiors.jpg
I have never heard of total commander

How do you know the model is a CA18DET from the .dat file?
also how is a CA18DET related to a Nissan180sx.

I dont know anything about cars

ps I found the solution to my strip problem
NvTriStrip
You do not have the required permissions to view the files attached to this post.
Last edited by JohnHudeski on Sat Mar 11, 2017 12:35 pm, edited 1 time in total.
Post Reply