Guess, he'll update his Forza Studio sooner or later.gpfan wrote:i´m positive his the guy who can help figure it out some of this puzzles!
If you think so that would be very easy, since the code is public.I suspect that everything must be very similar to Ernegien Forza studio code afterwards.....
So compile it, put your breakpoints at the suiting places, load a (simple) Forza4 car model, then log, how the materials are assigned.
For example in ForzaStudioForm.cs
Code: Select all
sw.WriteLine("usemtl {0}", mesh.MaterialName);
for (int j = 0; j < mesh.Indices.Length; j += 3)
{
int i1 = mesh.Indices[j + 0] + 1;
int i2 = mesh.Indices[j + 1] + 1;
int i3 = mesh.Indices[j + 2] + 1;
#include "d3d9.h" // Note: make sure this is the Xbox 360 flavor of D3D9.h!
#include "xgraphics.h"
(I don't have the time for such, prefer the quick 'n dirty way. )
Anyways, you may have missed the wheels in the previous uploaded CAD_ATSV_16 obj file:
MakeH2O_CAD_wheels.zip