Page 1 of 1

Just Cause 2 Models for new Multiplayer Mod

Posted: Mon Jul 16, 2012 7:38 pm
by JASGames
Hi

I have written a .rbm exporter/importer for just cause 2 that converts to .obj files. Currently a game file can be converted and then opened with correct texture an uv's in a 3D program such as blender. A new model can then be exported to the game engine and viewed in the game. So far I have been able to successfully locate, vertex positions, vertex uv's, face indices and then textures for the model.

The issue is that there are four an additional floats which I have can't work out what they might be and greatly affect the models shading. If i give them the same value when in the game the model from certain directions looks fully reflective while on another is shaded correctly. This made me think it was the vertex normal or environment mapping etc, however the values range from -60000 to 60000 each.

Here are a couple of examples:

30085.0 9541.219 64098.453 55353.27

10713.582 10713.582 -56277.523 56277.523

402.5078 402.5078 -27393.492 27393.492

I know that data means as much to you as it means to me, however I was wondering if anyone encounter normals being stored using four floats.

I had heard of them being able to be stored as just two floats however all four values have to be correct for it to render correctly in the game.

Here are some screens:


Image


Image


Just Wondering if someone could give me some hints on what this data might be, cause I have been stumped all day.

Thanks Jake

Re: Just Cause 2 Models for new Multiplayer Mod

Posted: Tue Jul 17, 2012 11:12 am
by huckleberrypie
Seems good. What about skeletal models? Oh, and do you plan on making a 3DS Max script as well?

Re: Just Cause 2 Models for new Multiplayer Mod

Posted: Tue Jul 17, 2012 2:15 pm
by JASGames
Right now I am focussing on vehicles but will hopefully get to characters soon, you can export from 3DS max using the .obj export option and then use the converter.

Re: Just Cause 2 Models for new Multiplayer Mod

Posted: Mon Jul 30, 2012 4:03 am
by huckleberrypie
Anything new?

Re: Just Cause 2 Models for new Multiplayer Mod

Posted: Mon Jul 30, 2012 5:22 am
by JASGames
Nope still haven't got the shading to work correctly, I have tried about 2 or 3 different ways to store normals using 2 floats instead of 3 but still no luck. There are still a couple of other methods I haven't tried yet, but I still don't know if they are actually normals or some other important data. If I have a break through I'll let you know.