Forum Thread
by member
  Posts  
3d model file type help! (Forums : 3D Modeling & Animating : 3d model file type help!) Post Reply
Thread Options
Jul 23 2012, 2:39pm Anchor

Hey everyone -I've inherited a bit of an odd problem. I have a 3d model file but I have no idea how to import or open it.Originally in .s01 format I've been able to open with notepad++ and I can see that its some sort of text baised x y z format.I tried a few file types that use this kind of text biased format but to no avail. 

code:
Object : heavy tank
Matrix : -0.996074, 0.000000, -0.362541, -0.000000, -1.060000, -0.000000, -0.362541, -0.000000, 0.996074, -0.123578, -0.023853, 0.108348
Verts (95)
{
 -50.236702, 84.790253, -31.183826
 -50.215950, 12.684479, 13.899788
 -50.240654, 117.562027, 0.137784
 -50.239891, 107.694618, 17.906826
 -50.219368, 38.935852, -31.183867
 -50.215576, 3.264496, -7.549026
 -90.109306, 84.789085, -31.183826
 -90.088715, 12.683331, 13.899788
 -90.112648, 107.693497, 17.906826
 -90.113373, 117.560883, 0.137784
 -90.088333, 3.263348, -7.549026
 -90.091980, 38.934685, -31.183867
 -47.820644, 62.568680, -15.520022
 -47.872776, -4.897430, -14.777467
 -14.977676, 0.244450, -14.752798
 -24.688614, 62.497650, -15.582034
 -43.725719, 0.299679, 16.516020
}
Texture Verts (149)
{
 0.189775, 0.207917
 0.273535, 0.001289
 0.537222, 0.191051
 0.441222, 0.001289
 0.612289, 0.190216
 0.708289, 0.000454
 0.959736, 0.207082
 0.875976, 0.000454
 0.710358, 0.602432
 0.708929, 0.539734
 0.810964, 0.601617
 0.810848, 0.558032
 0.260096, 0.655378
 0.277087, 0.518506
 0.381782, 0.651704
 0.399574, 0.492734
 0.163141, 0.540317
 0.160478, 0.256344
 0.276878, 0.357030
 0.233383, 0.230951
 0.321937, 0.710348
 0.375200, 0.761531
 0.326879, 0.886422
 0.375479, 0.907428
 0.572806, 0.605589
}
Quads (61)
{
 3, 0, 1, 4
 Texture : 'HEAVY3.tif' 0, 1, 2, 3
  Glow : 0.800000
 Normals : 1.000000, 0.000254, -0.000054, 1.000000, 0.000254, -0.000054, 1.000000, 0.000254, -0.000054, 1.000000, 0.000378, 0.000144
 7, 11, 8, 6
 Texture : 'HEAVY3.tif' 4, 5, 6, 7
  Glow : 0.800000
 Normals : -1.000000, -0.000249, -0.000072, -1.000000, -0.000249, -0.000072, -1.000000, -0.000249, -0.000072, -1.000000, -0.000378, 0.000108
 13, 14, 12, 15
 Texture : 'HEAVY3.tif' 8, 9, 10, 11
  Glow : 0.800000
 Normals : 0.002470, -0.011008, -0.999936, 0.002470, -0.011008, -0.999936, 0.002470, -0.011008, -0.999936, -0.002723, -0.013744, -0.999902
 13, 16, 14, 17
 Texture : 'HEAVY3.tif' 12, 13, 14, 15
  Glow : 0.800000
 Normals : 0.152763, -0.977982, 0.142175, 0.152763, -0.977982, 0.142175, 0.152763, -0.977982, 0.142175, 0.188589, -0.966321, 0.175092
 13, 12, 18, 19
 Texture : 'HEAVY3.tif' 16, 17, 18, 19
  Glow : 0.800000
 Normals : -0.991177, 0.003639, 0.132498, -0.986369, 0.036947, 0.160348, -0.988269, 0.026307, 0.150441, -0.979949, 0.071578, 0.185946
 22, 21, 23, 24
 Texture : 'HEAVY3.tif' 20, 21, 22, 23
  Glow : 0.800000
 Normals : -0.574582, 0.225491, -0.786771, -0.546021, 0.108876, 0.830667, -0.963789, 0.007557, -0.266559, -0.400151, -0.015015, 0.916326
 28, 29, 20, 27
 Texture : 'HEAVY3.tif' 24, 25, 26, 27
  Glow : 0.800000
 Normals : -0.000000, 0.126663, 0.991946, -0.000000, 0.126663, 0.991946, -0.183217, 0.217481, 0.958715, 0.184044, 0.185515, 0.965252
 30, 24, 26, 21
}
Tris (28)
{
 2, 0, 3
 Texture : 'HEAVY3.tif' 137, 1, 0
  Glow : 0.800000
 Normals : 1.000000, 0.000106, 0.000016, 1.000000, 0.000106, 0.000016, 1.000000, 0.000106, 0.000016
 1, 4, 5
 Texture : 'HEAVY3.tif' 2, 3, 138
  Glow : 0.800000
 Normals : 1.000000, 0.000091, -0.000023, 1.000000, 0.000091, -0.000023, 1.000000, 0.000091, -0.000023
 10, 11, 7
 Texture : 'HEAVY3.tif' 139, 5, 4
  Glow : 0.800000
 Normals : -1.000000, -0.000088, 0.000021, -1.000000, -0.000088, 0.000021, -1.000000, -0.000088, 0.000021
 8, 6, 9
 Texture : 'HEAVY3.tif' 6, 7, 140
  Glow : 0.800000
 Normals : -1.000000, -0.000107, -0.000018, -1.000000, -0.000107, -0.000018, -1.000000, -0.000107, -0.000018
 13, 18, 16
 Texture : 'HEAVY3.tif' 16, 18, 50
  Glow : 0.800000
 Normals : -0.991177, 0.003639, 0.132498, -0.988269, 0.026307, 0.150441, -0.991429, 0.005032, 0.130550
 22, 20, 21
}

end

 

I've had a look into just importing the values with a maxscrpit but that beyond my abilities. Any help would be greatly appreciated!!! 

Jul 27 2012, 1:14pm Anchor

What you have there seems to be a Corel WordPerfect file, not a 3d model, but I may be wrong.  May I ask where you got this file?

Dragonlord
Dragonlord Linux-Dragon of quick wit and sharp tongue
Jul 27 2012, 5:33pm Anchor
Alvar_Canto wrote:What you have there seems to be a Corel WordPerfect file, not a 3d model (...)

What the crap?! How can you get the idea this is NOT a 3D model file... *facepalm*.

--

User Posted Image
Leader, Head Programmer: Epsylon | Drag[en]gine Game Engine

User Posted Image by Salohcin

Jul 27 2012, 10:42pm Anchor

What's the extension for the file?

Jul 27 2012, 11:29pm Anchor

says it's a .s01.  Those tif's aren't really used any more, I'd image a Windows 95 game of some sort.

--

Go play some Quake 2: q2server.fuzzylogicinc.com
It's like Source v0.9, only... better!
Play Paintball for Doom 3!: d3server.fuzzylogicinc.com
Doom 3 Paintball to the Max!

Jul 28 2012, 2:14am Anchor
Dragonlord wrote:
Alvar_Canto wrote:What you have there seems to be a Corel WordPerfect file, not a 3d model (...)

What the crap?! How can you get the idea this is NOT a 3D model file... *facepalm*.


Yes by reading the code, you can tell it's for a 3d model. But it's not something you can just open in a modern version of 3ds Max and expect it to work. It's literally a text document.

Jul 28 2012, 5:38am Anchor
TheHappyFriar wrote:says it's a .s01.  Those tif's aren't really used any more, I'd image a Windows 95 game of some sort.

Whoops totally passed over the part he said what it was. The really low poly count would support that its something old indeed.

I'm starting to think that it is some custom format made specifically for a certain project and coincidentally was given the same extension as a WordPerfect file. Since its not common like a .3ds or .obj, I doubt there will be anything that can open it besides the program/game the format was originally intended for.

Edited by: DukeInstinct

Jul 28 2012, 6:54am Anchor

If someone wrote an importer I'd imagine it would be pretty easy to open.

I'm betting it's from an RTS game.

--

Go play some Quake 2: q2server.fuzzylogicinc.com
It's like Source v0.9, only... better!
Play Paintball for Doom 3!: d3server.fuzzylogicinc.com
Doom 3 Paintball to the Max!

Dragonlord
Dragonlord Linux-Dragon of quick wit and sharp tongue
Jul 28 2012, 9:45am Anchor
Alvar_Canto wrote:
Dragonlord wrote:
Alvar_Canto wrote:What you have there seems to be a Corel WordPerfect file, not a 3d model (...)

What the crap?! How can you get the idea this is NOT a 3D model file... *facepalm*.


Yes by reading the code, you can tell it's for a 3d model. But it's not something you can just open in a modern version of 3ds Max and expect it to work. It's literally a text document.


That would hold true for OBJ or COLLADA too. Writing an importer for that in Blender would be a no-brainer as the format is so self-explaining it hurts :D . That's not a text document there... that's a text document with an entire documentation strapped to it in plain sight ;)

--

User Posted Image
Leader, Head Programmer: Epsylon | Drag[en]gine Game Engine

User Posted Image by Salohcin

Jul 28 2012, 12:22pm Anchor
Dragonlord wrote:That would hold true for OBJ or COLLADA too. Writing an importer for that in Blender would be a no-brainer as the format is so self-explaining it hurts :D . That's not a text document there... that's a text document with an entire documentation strapped to it in plain sight ;)

I was thinking the same thing, but look at it a little closer.  It says there's 95 verts but only coords for 17.  Knowing the game would help figure out how it's supposed to be interpreted.

--

Go play some Quake 2: q2server.fuzzylogicinc.com
It's like Source v0.9, only... better!
Play Paintball for Doom 3!: d3server.fuzzylogicinc.com
Doom 3 Paintball to the Max!

Dragonlord
Dragonlord Linux-Dragon of quick wit and sharp tongue
Jul 28 2012, 12:54pm Anchor
TheHappyFriar wrote:
Dragonlord wrote:That would hold true for OBJ or COLLADA too. Writing an importer for that in Blender would be a no-brainer as the format is so self-explaining it hurts :D . That's not a text document there... that's a text document with an entire documentation strapped to it in plain sight ;)

I was thinking the same thing, but look at it a little closer.  It says there's 95 verts but only coords for 17.  Knowing the game would help figure out how it's supposed to be interpreted.


That's true. That said I have the feeling the file content here is crippled. There is an extra line of indicies in both the quad and tri section looking at the blocks. Looks like content is missing there as the way it stands either the last block has garbage behind it or the following blocks have been crippled. I would guess the makers added a sort of cheap hack-protection most probably adding some character which text editors can't handle well.

Is the original file exactly like shown here or different?

Edited by: Dragonlord

--

User Posted Image
Leader, Head Programmer: Epsylon | Drag[en]gine Game Engine

User Posted Image by Salohcin

Jul 28 2012, 4:31pm Anchor

It's been ~5 days sense he posted this.  Wonder if he's not coming back.  :?

--

Go play some Quake 2: q2server.fuzzylogicinc.com
It's like Source v0.9, only... better!
Play Paintball for Doom 3!: d3server.fuzzylogicinc.com
Doom 3 Paintball to the Max!

Jul 29 2012, 6:59am Anchor

sorry guys that I left you guys hanging a bit there :)

This model is from an old game called Hostile Waters. The posted sample had loads of lines removed so is not a complete model. This was one of the lower poly models from the game also.

uploaded a full file here Mediafire.com
again any pointers would be interested in hearing them.

Dragonlord
Dragonlord Linux-Dragon of quick wit and sharp tongue
Jul 29 2012, 10:10am Anchor

Now it's correct. As mentioned, the file is self-explaining. Reading that with python in blender is rather easy:
lineList = string.split( file.readline() )
lineList is now an array with the tokens in the line. The rest is relatively simple. Just look at one of the import scripts coming with blender 2.6 . It would be a good excercise anyways.

--

User Posted Image
Leader, Head Programmer: Epsylon | Drag[en]gine Game Engine

User Posted Image by Salohcin

Jul 29 2012, 4:49pm Anchor
Dragonlord wrote:Now it's correct. As mentioned, the file is self-explaining. Reading that with python in blender is rather easy:
lineList = string.split( file.readline() )
lineList is now an array with the tokens in the line. The rest is relatively simple. Just look at one of the import scripts coming with blender 2.6 . It would be a good excercise anyways.

Challenge accepted!

ronnie42
ronnie42 what legends are made of
Aug 3 2012, 1:33pm Anchor
Dragonlord wrote:
Alvar_Canto wrote:What you have there seems to be a Corel WordPerfect file, not a 3d model (...)

What the crap?! How can you get the idea this is NOT a 3D model file... *facepalm*.


Whatis.techtarget.com

Am I the only one seeing the person flaming for saying the same thing?

--

Reply to Thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.