SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters > DW Mod Workshop
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-29-11, 07:28 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Has anyone tried to write a converter to create j3d files?
I just looked at a simple j3d file in Hex.

tentgreen_s.j3d

The format is simple enuff so far that I can read the verts, texcoords, and faces and useing 010 Hex Editor could write a Template and extract the mesh to obj format.

Haveing only looked at it for about 15 minutes, there's still a few things I have not verified yet.
  Reply With Quote
Old 09-29-11, 07:43 PM   #2
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
Has anyone tried to write a converter to create j3d files?
I just looked at a simple j3d file in Hex.

tentgreen_s.j3d

The format is simple enuff so far that I can read the verts, texcoords, and faces and useing 010 Hex Editor could write a Template and extract the mesh to obj format.

Haveing only looked at it for about 15 minutes, there's still a few things I have not verified yet.
Well if you could document the format I could write a converter *and* load j3d files directly... :P
magicstix is offline   Reply With Quote
Old 09-29-11, 09:32 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I've gotten quite a lot figured out so far.
I understand the way the meshes are written and adjusted completely now,
what the bytes before the first vert group are,
how the meshes and textures are done,
and the lighting stuff.

Still unsure of a few bytes at the moment but those should be known pretty quickly with some more testing.

What do you program in?
C++, C#?
  Reply With Quote
Old 09-29-11, 10:06 PM   #4
magicstix
Captain
 
Join Date: Aug 2011
Location: Nuclear submarine under the North Pole
Posts: 481
Downloads: 1
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post

What do you program in?
C++, C#?
C++, C, assembly, python, mantis, flying crane...
magicstix is offline   Reply With Quote
Old 09-30-11, 02:18 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by magicstix View Post
C++, C, assembly, python, mantis, flying crane...
Flying Crane...............


Is that some kind of Borland product?


I forgot that I did look at the J3D format awhile back. No wonder I figured it out so fast!


I did figure out alot more this pass though. So I can explain the format and how to read/write it.

I only have the demo files to look at so if someone has a few models converted with the original 3D Max Exporter?
I'd like to see those again also.
  Reply With Quote
Old 09-30-11, 02:52 PM   #6
TLAM Strike
Navy Seal
 
Join Date: Apr 2002
Location: Rochester, New York
Posts: 8,633
Downloads: 29
Uploads: 6


Default

Quote:
Originally Posted by privateer View Post
I forgot that I did look at the J3D format awhile back. No wonder I figured it out so fast!
Yea now I remember you helped me out with converting a few files.


Quote:
I only have the demo files to look at so if someone has a few models converted with the original 3D Max Exporter?
I'd like to see those again also.
Try this: http://www.mediafire.com/?j0qq91cu6hn5on4
__________________


TLAM Strike is offline   Reply With Quote
Old 09-30-11, 03:16 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Got the package.


After looking at many other formats?
J3D is a pretty simple format to work with.

The only thing I do not understand at the moment is a few bytes in each vert entry.


I'm wondering if they may be a damaged version of the object or a seperate Texcoords thing for damages or something.


I'll have to extract them and try them both ways to know for sure.
I've only seen actual numbers aside from 0 for 1 model at this time.
Once I finish a Template for 010 Editor it will be much faster to check existing J3D files to compare how many have a 0 or actual numbers in that section.
Since switching to the 010 editor I've been able to figure stuff out much faster! Not bad for a $50.00 program!
3D Object Converter (which also costs around the same) seems to blend some verts or drop some meshes on the J3D format.
So being able to write a Temple or Script with 010 allows a perfect extraction 'as the file is'.

Last edited by Madox58; 09-30-11 at 03:29 PM.
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.