Home » MODDING HQ 1.13 » v1.13 Coding Talk » Jagged Alliance 2 3D
Jagged Alliance 2 3D[message #323699] Tue, 06 August 2013 14:06 Go to next message
E3245

 
Messages:46
Registered:August 2013
I'm trying to create a project for JA2 that will implement OpenGL then the Open Asset Import Library (Assimp) so I can import 3d models.

I need some guidance on how to do this though. My goal is to simply add a 3d model into the game, just like how FOnline did it. Then expand on it.

I just need to know where to start implementing OpenGL and some help would be appreciated. Right now, I'm examining the code and looking for the right solution to add OpenGL.

I'm using an outdated version of JA2, version 4452, because I have trouble compiling with the latest version with VS 2010.
Re: Jagged Alliance 2 3D[message #323700] Tue, 06 August 2013 14:08 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3805
Registered:July 2009
Hello E3245, Welcome to the Pit :wave:
Never use outdated versions, they are a pain in the ass to port later.


Re: Jagged Alliance 2 3D[message #323701] Tue, 06 August 2013 14:30 Go to previous messageGo to next message
E3245

 
Messages:46
Registered:August 2013
I know. I didn't realize until it was too late. I can't find the source code anywhere in the forum, unless I'm not looking good enough.
Re: Jagged Alliance 2 3D[message #323702] Tue, 06 August 2013 14:43 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3805
Registered:July 2009
https://ja2svn.no-ip.org/source/ja2/trunk/GameSource/ja2_v1.13/Build/


Re: Jagged Alliance 2 3D[message #323703] Tue, 06 August 2013 14:53 Go to previous messageGo to next message
E3245

 
Messages:46
Registered:August 2013
Thanks. I just want to ask, if I was going to add a library, how would I do it? You guys did it with the raknet library, so I want to know.
Re: Jagged Alliance 2 3D[message #323730] Wed, 07 August 2013 02:31 Go to previous messageGo to next message
Slax

 
Messages:1445
Registered:July 2006
Location: People riding polar bears...
E3245
I'm trying to create a project for JA2 that will implement OpenGL

:bow:

Re: Jagged Alliance 2 3D[message #323777] Thu, 08 August 2013 11:50 Go to previous messageGo to next message
E3245

 
Messages:46
Registered:August 2013
I'm thinking about using Open Scene Graph from this list of libraries: http://www.opengl.org/sdk/libs/
Looks promising. What do you guys think? Should I use this library or something else?
Re: Jagged Alliance 2 3D[message #324071] Sat, 17 August 2013 14:22 Go to previous messageGo to next message
E3245

 
Messages:46
Registered:August 2013
So I decided to go ahead and link OSG with the JA2 Solution and added Assimp so that can be compiled with JA2.

Here is the next few thing I would need to do:

  • Find where the engine calls for the .sti sprites (Mercs, Soldiers, Militia, Civilian, Creature, and Animals)
  • Call from the Assimp.dll to load meshes (.fbx, .u, .x, etc.)
  • Add a separate list for 3D Animations
  • Tweaks and Optimizations

I'm thinking that I would have to modify Strategic and VFS to load 3d models.

Please, discuss this.

[Updated on: Sat, 17 August 2013 14:22] by Moderator

Re: Jagged Alliance 2 3D[message #324097] Sat, 17 August 2013 22:44 Go to previous message
pheloncab

 
Messages:281
Registered:August 2004
Location: So. Cal. or texas
Logically you would have to add a folder into the 1.13 folder, and you would use VFS to point to it so anyone that later modded things would get the layering VFS provides. Beyond that my non-programmer issues come into play, and i'd say you should ask on the IRC where the coder types might be able to give you a better hint.
Previous Topic: Help with tweaking the sneaking
Next Topic: Anyone make a Flash/external version of the New Inventory System?
Goto Forum:
  


Current Time: Sun Sep 23 00:05:18 EEST 2018

Total time taken to generate the page: 0.01639 seconds