Dawnspire Community Forums
 
*
Welcome, Guest. Please login or register. July 04, 2020, 18:21:19 PM


Login with username, password and session length


Sorry, you must be logged in to use the shoutbox!
Pages: [1]
  Print  
Author Topic: Mesh file format specification [itlB]  (Read 4928 times)
johan
Administrator
Level 11
*
Offline Offline

Posts: 374



View Profile WWW
« on: July 18, 2010, 18:02:35 PM »

I got an email from Anders containing the file format description for mesh files. So if anyone want's to make some new models then I could probably make an exporter or converter for your 3d modelling program of choice.


Code:
HEADER

Byte * 4 magic "itlB"
UInt16 majorVersion 2
UInt16 minorVersion 0
UInt16 numberOfChunks

CHUNK * numberOfChunks

Byte chunkType
Int32 chunkSize

Then depeding on value of chunkType

ITLB_CHUNK_VERTICES (1)

Int32 vertexCount
Byte vertexSize 52
Int32 vertexFormat 131666 (Decimal)
Byte * vertexCount * vertexSize vertexData

Standard vertex format for Dawnspire meshes is:

Vector3 position;
Vector3 normal;
Color diffuse;
Vector4 tangent;
Vector2 texCoord;


ITLB_CHUNK_INDICES (2)

Int32 indexCount
Byte indexSize
Byte * indexCount * indexSize indexData (UInt16 pointers to vertices, 3 per triangle)
Logged

Nightmare
Global Moderator
Level 13
*
Offline Offline

Posts: 647


I heal, you kill


View Profile
« Reply #1 on: July 18, 2010, 18:43:55 PM »

Wow, that's great! Smiley. Opens up whole new possibilities with the modding.

I have some past experience with 3ds max, but ofc it would be better to get someone with actual graphical talent onboard and they might prefer another program. And naturally we need some ideas first on what to mod.
Logged
Persus
Unholy Alliance
Level 13
*
Offline Offline

Posts: 809


I see dumb people


View Profile
« Reply #2 on: July 18, 2010, 23:50:34 PM »

I was looking at my DS folder a little while ago and I was looking at a lot of the stuff in the Temp folder the game installs on my machine. There seems to be alot of direct draw surface image Skins for other characters in that folder, at least 2/3 I could not place from the game. These might be of use to mod into new classes or characters. I guess they are redundant skins from the Alpha stage. With reguards to the alpha stage do any of the skins or their animations still reside within the an unpacked DS. See this video for the skins I mean.

http://www.youtube.com/watch?v=qPj5hgpSTjQ

« Last Edit: July 19, 2010, 00:07:53 AM by Persus » Logged
johan
Administrator
Level 11
*
Offline Offline

Posts: 374



View Profile WWW
« Reply #3 on: July 19, 2010, 14:33:50 PM »

I just made a small application that can load an "itlb"-file and display all relevant data in a command prompt. I will probably use this to create a simple mesh viewer application when I get home in a couple of days and can plug it in to one of the game engines that I have been working on, although I have yet to decide which one =). My goal is to epxand it to a map editor in the future.
Logged

Persus
Unholy Alliance
Level 13
*
Offline Offline

Posts: 809


I see dumb people


View Profile
« Reply #4 on: July 19, 2010, 15:00:27 PM »

Do you know of any programme I can use to view DDS files? I want to look at the content in the Grelit character file and the weapons file. There are a few weapons in there that have never been used in game.
Logged
Nightmare
Global Moderator
Level 13
*
Offline Offline

Posts: 647


I heal, you kill


View Profile
« Reply #5 on: July 19, 2010, 15:11:08 PM »

Use the program introduced in the walkable guide. Same dds stuff.

IrfanView is also good if you just want to view the files.
Logged
johan
Administrator
Level 11
*
Offline Offline

Posts: 374



View Profile WWW
« Reply #6 on: July 19, 2010, 15:24:15 PM »

I use photoshop with nvidia's dds plugin. Although dds files are quite useless without any models.
Logged

Persus
Unholy Alliance
Level 13
*
Offline Offline

Posts: 809


I see dumb people


View Profile
« Reply #7 on: July 19, 2010, 15:45:22 PM »

So are the models contained within the itlB files I take it?
Logged
johan
Administrator
Level 11
*
Offline Offline

Posts: 374



View Profile WWW
« Reply #8 on: July 19, 2010, 15:48:29 PM »

Models in itlB files, Animation data in "animation"-files, Character animation skeletons in "skeleton"-files and textures in dds files and a lot of xml files for various data.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.096 seconds with 17 queries.