Re: [Xbox 360] Forza 3 Resource Extraction Tool (.carbin)
Posted: Sun Apr 18, 2010 10:55 pm
Ehm - Find -> Replace ?
Hmm, someone writing out text files without using CultureInfo.InvariantCulture?Varel wrote:I think I have the solution for our problem with 3dsmax!!!
The .obj file is using , instead of . (0,004 not 0.004)![]()
If you change those the model is ok and with proper normals!
Code: Select all
output.WriteLine("v {0} {1} {2}", v.x, v.y, v.z);Code: Select all
output.WriteLine("v {0} {1} {2}", v.x.ToString().Replace(",", "."), v.y.ToString().Replace(",", "."), v.z.ToString().Replace(",", "."));Code: Select all
output.WriteLine("vn {0} {1} {2}", v.normal.X, v.normal.Y, v.normal.Z);Code: Select all
output.WriteLine("vn {0} {1} {2}", v.normal.X.ToString().Replace(",", "."), v.normal.Y.ToString().Replace(",", "."), v.normal.Z.ToString().Replace(",", "."));Code: Select all
output.WriteLine("v {0} {1} {2}", Parent.Vertices[i].x, Parent.Vertices[i].y, Parent.Vertices[i].z);Code: Select all
output.WriteLine("v {0} {1} {2}", Parent.Vertices[i].x.ToString().Replace(",", "."), Parent.Vertices[i].y.ToString().Replace(",", "."), Parent.Vertices[i].z.ToString().Replace(",", "."));Code: Select all
output.WriteLine("vn {0} {1} {2}", Parent.Vertices[i].normal.X, Parent.Vertices[i].normal.Y, Parent.Vertices[i].normal.Z);Code: Select all
output.WriteLine("vn {0} {1} {2}", Parent.Vertices[i].normal.X.ToString().Replace(",", "."), Parent.Vertices[i].normal.Y.ToString().Replace(",", "."), Parent.Vertices[i].normal.Z.ToString().Replace(",", "."));Code: Select all
output.WriteLine("v {0} {1} {2}", Vertices[i].x, Vertices[i].y, Vertices[i].z);Code: Select all
output.WriteLine("v {0} {1} {2}", Vertices[i].x.ToString().Replace(",", "."), Vertices[i].y.ToString().Replace(",", "."), Vertices[i].z.ToString().Replace(",", "."));Code: Select all
output.WriteLine("vn {0} {1} {2}", v.normal.X, v.normal.Y, v.normal.Z);Code: Select all
output.WriteLine("vn {0} {1} {2}", v.normal.X.ToString().Replace(",", "."), v.normal.Y.ToString().Replace(",", "."), v.normal.Z.ToString().Replace(",", "."));You can import that fine even with just obj, if you disable deep exploration's smoothing it becomes the orignal smoothing (bumpy in other words)Tosyk wrote:Hi all. Try to re-save obj-file into the collada (dae) through Deep Exploration. For me it's work fine.
Damn, you're right!toolieo wrote:You can import that fine even with just obj, if you disable deep exploration's smoothing it becomes the orignal smoothing (bumpy in other words)Tosyk wrote:Hi all. Try to re-save obj-file into the collada (dae) through Deep Exploration. For me it's work fine.![]()
------------
Exporting from 3dsmax keeps orignal smoothing aswell. So I don't think there is anyway possible to export from 3dsmax and keeping it smooth. Unless someone knows a way around this.
That is horrible.sommergemuese wrote:If you want no commas:
Code: Select all
Error 2 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\Car.cs 138 68 Forza Studio
Error 3 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\Car.cs 138 123 Forza Studio
Error 4 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\Car.cs 138 178 Forza Studio
Error 5 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\Car.cs 149 76 Forza Studio
Error 6 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\Car.cs 149 127 Forza Studio
Error 7 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\Car.cs 149 178 Forza Studio
Error 8 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarSection.cs 175 85 Forza Studio
Error 9 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarSection.cs 175 150 Forza Studio
Error 10 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarSection.cs 175 215 Forza Studio
Error 11 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarSection.cs 181 72 Forza Studio
Error 12 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarSection.cs 181 123 Forza Studio
Error 13 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarSection.cs 181 185 Forza Studio
Error 14 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarPiece.cs 244 81 Forza Studio
Error 15 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarPiece.cs 244 142 Forza Studio
Error 16 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarPiece.cs 244 203 Forza Studio
Error 17 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarPiece.cs 250 89 Forza Studio
Error 18 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarPiece.cs 250 157 Forza Studio
Error 19 The name 'CultureInfo' does not exist in the current context C:\Users\Simon\Desktop\Forza Studio\CarPiece.cs 250 225 Forza Studio
Useless..v -0.5003871 0,9645394 -1,996927
v -0.4957215 0,9475064 -1,99138
v -0.5014154 0,9475283 -1,991357
v -0.49639 0,9645215 -1,996828
v -0.4950229 0,9633113 -1,994916
v -0.4950284 0,9477165 -1,989751
v -0.4951583 0,9498532 -1,973909
v -0.4947492 0,9302953 -1,981959
v -0.4949514 0,930446 -1,909435
v -0.4950854 0,9188257 -1,973933
doesn't work for me. the same settings, also 3ds 2010Veegie wrote:
Experiment gentlemen.
I'm sorry if it came off as dickish, but it really was a terrible solution. It's also C#, not C++. And if it's still outputting , for floats then you missed some.sommergemuese wrote:What the fuck?
Are you always such a dick?
Next time Post your "Tips" more polite please...
I know you have to add using System.Globalization first...
But maybe there are people who have NO C++ Experience ??
And watch how looks the generated OBJ with your "Tip":
Useless..