Jump to content

  • Log In with Google      Sign In   
  • Create Account


Game Data Format?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 lucky6969b   Members   -  Reputation: 535

Like
0Likes
Like

Posted 21 December 2012 - 09:03 PM

May be some thing relative to DirectX. But does a standard useful game data format consist of typical elements like the .x format?
These include

Frame Transformation
Vertex Data
Index Data
Face Data
Animation
Duplicate Vertex Data
Skin Info
Skin Weights
Material
Texture info

Can these fully "describe" a scene or even the game as a whole and it covers every aspects of 3D games like normal maps, gloss maps etc
Just in other words, is this data enough?
Thanks
Jack

Sponsor:

#2 L. Spiro   Crossbones+   -  Reputation: 12227

Like
1Likes
Like

Posted 21 December 2012 - 09:31 PM

For the most complex games there is no such thing as “enough”.

Your list is enough for most typical games, but you really need to base your format off what you will actually need.  That part becomes obvious when you start to think about extreme cases such as realistic skin rendering.

There is also no reason you can’t add things to your format later when you do need it, so it just makes sense to start and small add things as you realize the need.

 

3D files are not typically meant to be used for whole scenes—they are meant to be individual models within the scene.

But sometimes it is easier to make cinematic sequences just using one file.

 

It also makes more sense to separate the data into multiple types of files instead of trying to make one gigantic format unless your goal is actually to make an interchange format such as COLLADA™ or Autodesk® FBX® (in which case you should say so).

It would be better to have one file format for models, one for animations, one for cameras, etc.

 

 

L. Spiro


It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#3 frob   Moderators   -  Reputation: 18845

Like
1Likes
Like

Posted 21 December 2012 - 10:24 PM

You've managed to cover a large part of the 3D graphics side.

Do you intend to include VFX and particle systems?
Do you intend to include audio? If so, how do you intend to manage all those clips?
Do you intend to combine multiple object in maps within a scene?
What about physics or collision detection/response data in a scene?

There is much more data involved than just raw graphics meshes.
Check out my personal indie blog at bryanwagstaff.com.

#4 lucky6969b   Members   -  Reputation: 535

Like
0Likes
Like

Posted 22 December 2012 - 12:52 AM

What are the usages of duplicate vertex data? Why do they exist?
Thanks
Jack

#5 L. Spiro   Crossbones+   -  Reputation: 12227

Like
0Likes
Like

Posted 22 December 2012 - 01:52 AM

Because the author of the original 3D content copied and pasted an object.  This happens frequently with car wheels, shoes, gloves, eyes, etc.

You should merge them into one vertex buffer and only use that.

 

 

L. Spiro


It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#6 lucky6969b   Members   -  Reputation: 535

Like
0Likes
Like

Posted 22 December 2012 - 01:55 AM

Because the author of the original 3D content copied and pasted an object.  This happens frequently with car wheels, shoes, gloves, eyes, etc.
You should merge them into one vertex buffer and only use that.
 
 
L. Spiro

Hi Spiro,
I beg your pardon, I actually meant the VertexDuplicationIndices in the x file format used in Direct3D?
I should have been more specific.
Thanks
Jack

#7 L. Spiro   Crossbones+   -  Reputation: 12227

Like
0Likes
Like

Posted 22 December 2012 - 02:20 AM

Never used a .X file, but I think MSDN explains it fairly well: VertexDuplicationIndices.

 

 

L. Spiro


It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums

#8 lucky6969b   Members   -  Reputation: 535

Like
0Likes
Like

Posted 22 December 2012 - 07:05 PM

You've managed to cover a large part of the 3D graphics side.

Do you intend to include VFX and particle systems?
Do you intend to include audio? If so, how do you intend to manage all those clips?
Do you intend to combine multiple object in maps within a scene?
What about physics or collision detection/response data in a scene?

There is much more data involved than just raw graphics meshes.

Your ideas are neat. But why do we have offline particle data? We have a position and velocity etc but they are dynamic!
The idea of audio is quite good
Let me know

#9 lucky6969b   Members   -  Reputation: 535

Like
0Likes
Like

Posted 22 December 2012 - 07:12 PM

[del]

#10 L. Spiro   Crossbones+   -  Reputation: 12227

Like
0Likes
Like

Posted 23 December 2012 - 12:24 AM

why do we have offline particle data? We have a position and velocity etc but they are dynamic!
They are dynamic at run-time but you have to define:
  • A range of initial velocities.  Starting velocities will be chosen randomly within this range.
  • A cone of possible directions.
  • A minimum and maximum lifetime.
  • A range of colors.
  • The starting time when they should be emitted and an ending time when they should stop being emitted.
  • The image or images they will use during their lifetimes.
  • A range of fade-in and fade-out times.
  • A range of gravity values.
  • 100 other things.

L. Spiro

Edited by L. Spiro, 23 December 2012 - 12:25 AM.

It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS