Sign in to follow this  
altay

file format for maps

Recommended Posts

Hi guys,
I'm working on a game project and I need file format to use maps. The file format which I need can store geometric data as octree or it can enable to use octree.
Is there an octree-supported file format?

Thanks,
Altay. Edited by altay

Share this post


Link to post
Share on other sites
The best answer I can give you is to make your own. Besides doing that I don't really know of any map format that supports octrees. A quick google search reveals this: http://octomap.sourceforge.net/ Not sure if that's what you are looking for or not.

Share this post


Link to post
Share on other sites
An octree is a run-time structure that is created and maintained dynamically. It does not belong in a file, nor can it be used to “store geometric data”.
You will have to be more [s]specific[/s] accurate about what you want, and you should probably read up on [url="http://en.wikipedia.org/wiki/Octree"]what octrees are[/url].


L. Spiro

Share this post


Link to post
Share on other sites
Just make it yourself. Be creative :)
You can use xml parser for making your life easier. Example map format:
[code]
<map>
<objects>
<object type="light" position="0.0 10.0 5.0" color="1.0 1.0 1.0" />
<object type="geom" position="0.0 0.0 10.0">
<verticies ="blah blah" />
</object>
</objects>
</map>
[/code]

Share this post


Link to post
Share on other sites
[quote name='L. Spiro' timestamp='1348052675' post='4981631']
An octree is a run-time structure that is created and maintained dynamically. It does not belong in a file, nor can it be used to “store geometric data”.
You will have to be more [s]specific[/s] accurate about what you want, and you should probably read up on [url="http://en.wikipedia.org/wiki/Octree"]what octrees are[/url].


L. Spiro
[/quote]

[i]I think you misunderstood me. [/i][i]I just want to store octrees in my map file for quicker loading times. B[/i][i]ut I didn't know that octree generating in run time is quick.[/i]

[quote name='MrOMGWTF' timestamp='1348069604' post='4981722']
Just make it yourself. Be creative
You can use xml parser for making your life easier. Example map format:
[code]
<map>
<objects>
<object type="light" position="0.0 10.0 5.0" color="1.0 1.0 1.0" />
<object type="geom" position="0.0 0.0 10.0">
<verticies ="blah blah" />
</object>
</objects>
</map>
[/code]
[/quote]
BSP file format made me lazy [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] but I think I have to do it.. Edited by altay

Share this post


Link to post
Share on other sites
[quote name='altay' timestamp='1348448771' post='4983067']
[quote name='L. Spiro' timestamp='1348052675' post='4981631']
An octree is a run-time structure that is created and maintained dynamically. It does not belong in a file, nor can it be used to “store geometric data”.
You will have to be more [s]specific[/s] accurate about what you want, and you should probably read up on [url="http://en.wikipedia.org/wiki/Octree"]what octrees are[/url].


L. Spiro
[/quote]

[i]I think you misunderstood me. [/i][i]I just want to store octrees in my map file for quicker loading times. B[/i][i]ut I didn't know that octree generating in run time is quick.[/i]

[quote name='MrOMGWTF' timestamp='1348069604' post='4981722']
Just make it yourself. Be creative
You can use xml parser for making your life easier. Example map format:
[code]
<map>
<objects>
<object type="light" position="0.0 10.0 5.0" color="1.0 1.0 1.0" />
<object type="geom" position="0.0 0.0 10.0">
<verticies ="blah blah" />
</object>
</objects>
</map>
[/code]
[/quote]
BSP file format made me lazy [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] but I think I have to do it..
[/quote]

Well, good luck! It's not hard, I'm making my 3d model file format right now :) Edited by MrOMGWTF

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this