Irrlicht's OWN file formats?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.

Re: Irrlicht's OWN file formats?

Postby Radikalizm » Tue Dec 13, 2011 2:35 pm

I wasn't talking about files without a footer, I was talking about vertex injection just like you
Look, if you store an offset to your footer inside your header you can jump to the location where the footer is supposed to be, if it isn't there then you know there's something wrong. So if anyone adds data to the file it means that the footer offset defined in the header will not be correct anymore, and the loader can easily see this by doing this jump before loading in any data
Radikalizm
 
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Irrlicht's OWN file formats?

Postby christianclavet » Sun Dec 18, 2011 4:11 am

Hi, I was just reading some part of the discussion. Please if you design a new binary format, I would like it support more than skeletal animation, but also vertex animation (morph, facial animation, and also texture/material animation), it would also be nice if that format would also support scenes and like a zip or a BSP, embed files (as textures, shaders scripts) inside them.
User avatar
christianclavet
 
Posts: 1383
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Irrlicht's OWN file formats?

Postby Mel » Sun Dec 18, 2011 10:21 am

To be able to store shaders inside a file, would need that Irrlicht isolated OpenGL and DirectX shaders from the user, so there was a unified shader frontend that Irrlicht was able to understand, and that later could be translated into the corresponding OpenGL or DirectX equivalent. But embedding texture files isn't hard at all.
http://santiagong.daportfolio.com/
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
User avatar
Mel
Competition winner
 
Posts: 1783
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Irrlicht's OWN file formats?

Postby Radikalizm » Sun Dec 18, 2011 1:54 pm

I've been pondering about a custom shader system as well, but wouldn't it just be easier to move to Cg then? It pretty much has everything we need in a shader system, and we won't be forced to have to take care of shader separation
Radikalizm
 
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Irrlicht's OWN file formats?

Postby 3DModelerMan » Sun Dec 18, 2011 2:17 pm

I tried to write a shader compiler that works for both HLSL and GLSL. It was NOT pretty. I've been looking into Cg too though, and it looks like it would do everything great.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModelerMan/replicator#tipjar
User avatar
3DModelerMan
 
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Re: Irrlicht's OWN file formats?

Postby REDDemon » Sun Dec 18, 2011 3:26 pm

great. Cg sounds very good. anyway actually morph animations are supported for the file format wich is a WIP for now.
OpenGL is not hard. What you have to do is just explained in specifications. What is hard is dealing with poor OpenGL implementations.
User avatar
REDDemon
 
Posts: 831
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Irrlicht's OWN file formats?

Postby bitplane » Sun Dec 18, 2011 4:50 pm

Re-joining this party late, haven't had as much time as I would have liked so can't really contribute to this at the moment.

However, I was browsing this thread and would just like to pipe up and say that if a future binary mesh format is going to include other files like textures and shaders, I think it would make much more sense to use some already existing archive format with the mesh data as a separate entity inside. Compression-less ZIP files or TAR archives wouldn't add much overhead, but would mean that the package could be edited with standard tools, reading it could be done using existing code. At first glance this may not seem like a huge advantage, but when you want to touch up that texture or make a one line change to that shader, you'll be glad you can just open it up and do so without messing around with whatever specific content creation pipeline tool becomes the standard.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
User avatar
bitplane
Admin
 
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England

Re: Irrlicht's OWN file formats?

Postby Radikalizm » Sun Dec 18, 2011 8:56 pm

bitplane wrote:Re-joining this party late, haven't had as much time as I would have liked so can't really contribute to this at the moment.

However, I was browsing this thread and would just like to pipe up and say that if a future binary mesh format is going to include other files like textures and shaders, I think it would make much more sense to use some already existing archive format with the mesh data as a separate entity inside. Compression-less ZIP files or TAR archives wouldn't add much overhead, but would mean that the package could be edited with standard tools, reading it could be done using existing code. At first glance this may not seem like a huge advantage, but when you want to touch up that texture or make a one line change to that shader, you'll be glad you can just open it up and do so without messing around with whatever specific content creation pipeline tool becomes the standard.


Agreed, compiling assets like textures and shaders directly into the mesh file wouldn't really make that much sense anyway for the reasons stated
Radikalizm
 
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Irrlicht's OWN file formats?

Postby ACE247 » Mon Dec 19, 2011 11:55 am

Im with Radikalizm & Bitplane.

Oh wait... 'Bitplane' just reappeared again?
H8L6L5M4G3H5M7N8S7N9O1R8J1P5M7N9O4P2Q5R6T7U4M3N8X6S5T8W (If you want the secret, why not 'TRY' decrypting it? )
This Door's lock doesn't need a key, the Lock is the key to open the Lock and you don't know how to turn the key...
Link: My Blog :)
User avatar
ACE247
 
Posts: 695
Joined: Tue Mar 16, 2010 12:31 am
Location: Namibia

Previous

Return to Open Discussion and Dev Announcements

Who is online

Users browsing this forum: No registered users and 0 guests