Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
April 20, 2019, 12:21:30 pm

Author Topic: Custom 3D Models : .obj to .rbm  (Read 56577 times)

JASGames

  • Donator
  • Newbie
  • *****
  • Posts: 18
    • View Profile
Custom 3D Models : .obj to .rbm
« on: July 15, 2012, 01:26:35 pm »
Been working on an imorter/exporter that converts .rbm files (JC2 native model format) to .obj files and vice a verser. Currently I UV coordinates aren't saved correctly so textures don't work but hopefully I will work it out soon. Here is what I got so far.

3D model in Blender:



3D model in game:



Once I have Texture Coordinates working properly I have to find where the collision mesh is stored because the model doesn't affect the collisions.

NVX

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #1 on: July 15, 2012, 02:06:44 pm »
Impressive! :D

How big are the model files out of curiosity? And how are you importing and spawning them in-game? Replacing an existing model? Or doing it DLC-style with its own arc/tab file and a cheat tool to spawn it or the like?

Shinglinator

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #2 on: July 15, 2012, 02:18:08 pm »
Yes!

When this is finished I will finally be able to make a 3D 'Me' and rig it to play "Me' in the game!

This will be awesome!

JASGames

  • Donator
  • Newbie
  • *****
  • Posts: 18
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #3 on: July 15, 2012, 02:20:37 pm »
The .rbm files are around 300 kb per file and when converted to .obj files are slightly smaller. Right know I am just putting them in the dropzone folder which overwrites the existing game model, but ideally I want to have it in its own arc/tab file and then be able to spawn it using the black market.

Quote
When this is finished I will finally be able to make a 3D 'Me' and rig it to play "Me' in the game!

I only started working on this the other day so I still have a bit to make it user friendly etc, and I have only been focussing on vehicles, but I am sure characters can't be that much harder.

NVX

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #4 on: July 15, 2012, 02:52:42 pm »
300 kb per file isn't bad, that sort of size could pretty easily be streamed from the server to clients for custom models...

Keep up the good work, if it pans out I personally would definitely be interested in exposing functionality via Lua to allow custom models/etc. :)

Oz

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #5 on: July 15, 2012, 03:01:36 pm »
300 kb per file isn't bad

Indeed, but surely the size of the file will be dependent on how much geometry it contains? For the carrier I'd been working on for MTA, each of the .dff files were 1-2MB and contained generally 15-30k tri's. That to us was still considered a manageable size for streaming files directly from the server to client during gameplay (rather than making people install the files prior to starting the game as in SAMP).

Still, this is very encouraging, hope you're able to overcome the remaining obstacles. Great work.

MrMister

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #6 on: July 15, 2012, 05:02:48 pm »
Yes!

When this is finished I will finally be able to make a 3D 'Me' and rig it to play "Me' in the game!

This will be awesome!

I think this might be the best way to mod one's game.

saiberfun

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #7 on: July 15, 2012, 05:18:34 pm »
awesome work dude, please stay close to the devs ;)

Random

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #8 on: July 15, 2012, 10:03:02 pm »
Finally, we'll be able to see car mods. Actually car mods. Like, someone porting over the Infernus from GTA4 :V

Frell

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #9 on: July 15, 2012, 10:12:14 pm »
Im a 3D character artist. If Jc2mp would like to use me in any way (officially, not mod requests) please pm me and let me know


Heres my best things that I have public:
http://frell262.deviantart.com/gallery/7672027

I know how to do everything. High poly, low poly, bake, normal/spec/diffuse maps etc.  It depend show friendly the converter is because im no animator at all :P

crescentfresh

  • Donator
  • Hero Member
  • *****
  • Posts: 656
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #10 on: July 15, 2012, 10:19:54 pm »
I see much promise in this ... I can't freaking wait!

ryanbe

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #11 on: July 15, 2012, 10:27:32 pm »
it'd be pretty funny if people put in some sort of gundam flying death mech

DubZilla

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #12 on: July 15, 2012, 10:37:41 pm »
Im okay at blender how did convert rbms to a format that blender knew

JASGames

  • Donator
  • Newbie
  • *****
  • Posts: 18
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #13 on: July 16, 2012, 12:34:27 am »
Update:

Got textures working for importing and exporting, except my hand written .obj parser right screws up the textures but I am too tired to fix it right now.

Here is the ship in game with textures:













And here is an imported jet body with its texture:





Still got plenty of work to do but I am really tired so I am going to bed.

Cheers :)

MrMister

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Custom 3D Models : .obj to .rbm
« Reply #14 on: July 16, 2012, 08:51:09 am »
-Attach jetpack to Rico, use Superman Mod.