SUBSIM Radio Room Forums



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

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-17-12, 04:23 PM   #1
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default OBJ to DAT

Hi all

I am looking for a prog to convert obj files to dat
I am sure I have seen posts about Pack3D
Does anyone have a link to this app or know of another program that can do this

Thanks
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 07-17-12, 04:26 PM   #2
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Mate,

You can't just convert an obj file to a dat.
You need to import it to a dat.

What are you trying to do?

If it's secret?
Just PM me and I'll keep your secret.

Anytime you want to extract models from a dat?
If it's SH4 dats - use S3D as it will extract the 2nd UV channel (AO)
But you will have to extract each 3D model one at a time.
Pack3D will extract ALL models but only channel one of the UVs.

Last edited by Madox58; 07-17-12 at 05:12 PM.
  Reply With Quote
Old 07-17-12, 05:42 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Hi Trevally,

I see Orkney's shipyards are currently hard at work
I am sure that Privateer will be able to provide any detail on the process of importing 3d meshes onto dat files.

Nevertheless, you might want to have a look also at this tutorial by skwasjer covering the same topic.

Take in mind that it was written assuming that the obj file we want to import was generatet using 3D studio. Using Wings 3D or Blender meshes might require different settings and/or some post-processing of the obj and mtl files to be imported.

Afaik, s3d provides an easy way to import animated meshes as well. I am sure I've read another tutorial on this feature, but I cannot find it anymore
gap is offline   Reply With Quote
Old 07-17-12, 05:58 PM   #4
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

If there is no 2nd channel (AO mapping)?
S3D will import with little trouble.

S3D also imports animations with no trouble if you follow the simple rules.
Do an export of an animation first and those should show you how to prepare the needed files.
Then import those same files and check the settings.
You'll see you need to set all timings.

Once you do that?
Bob's your Uncle!
  Reply With Quote
Old 07-18-12, 03:42 PM   #5
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Thanks to privateer who sent me his barrage ballon dat file so I could use it to learn from and to import my obj file into S3D

So my learning continues:-

Here is my model in blender




Exporting to obj file - handy reading


Export settings



Import into privateer's dat file




lots of triangles - is this bad


It is in


To be continued
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 07-18-12, 03:51 PM   #6
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

You're off to a nice start Mate.


Objects like AirCraft can use Normals but I don't recall why they do at the moment.
Subs and Ships cause problems with the Caustics controller though.
You get what I call 'Rainbow Bright' effect.
Never checked to see if SH5 also has that with imported SH4 Units.

There's a few tricks to reduce the size of the model but I'll save those for later.
  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 04:01 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.