Untitled0.png
This is my main problem. I think my original fix was deleting trianglesImportant information: this site is currently scheduled to go offline indefinitely by end of the year.
Import Tuner Challenge [XBOX360]
-
- 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]
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.
-
- 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]
There are even more errors
You do not have the required permissions to view the files attached to this post.
- 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]
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 wrote:What is that?
-
- 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]
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.
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.
-
- 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]
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();
}
Please send textures
You do not have the required permissions to view the files attached to this post.
- 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]
Guys, JohnHudeski is very cool, he did it, it works
ToyotaVitz Traffic Model in 3ds Max:
ToyotaVitz Traffic Model in 3ds Max:
-
- 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]
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
eg need to combine meshes
Texturing is a pain for me.
But you guys should be good
I will come back with improvements
- 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]
Big thanks man. You and blackracer have done a very great job. BIG thumbs up!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
- blackracer
- advanced
- Posts: 51
- Joined: Sat Jun 27, 2015 1:20 pm
- Has thanked: 30 times
- Been thanked: 49 times
- 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]
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 .blackracer wrote:RB26DETT
Can't wait until the tool is completely finished!
- 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]
I'm all looking at the models and I cannot begin to refine tool
Models are excellent!!!
Models are excellent!!!
-
- 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]
You have to explain to me how you are finding what textures go where
seriously
seriously
- 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]
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.
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.
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.
-
- 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]
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.