Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Saving my 3d work.

Author
Message
Polygon
19
Years of Service
User Offline
Joined: 25th Mar 2005
Location:
Posted: 26th Mar 2005 06:57
Hello ,

iam making some kind of 3d editor for my 3d sidescroller
i can make the world and stuff etc. (editor is still VERY basic.. only one object O.o)

but i have really no clue how to program the most important part:
Saving,

So i have the world, what is the best way to save it? maybe there is a way to make al the object's on .x?? or maybe print for each box some kind of code??.

Here the code of my editor(made in DBPro btw ):
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 26th Mar 2005 11:21
i dont know much about saving, but apparently you just have to store all the info, such as object size/position, camera position, etc. then load those #'s, insert them and there you go.

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 26th Mar 2005 12:14
There are many ways to do this. You could use something like this.



Soy Cocktail
20
Years of Service
User Offline
Joined: 23rd Dec 2003
Location:
Posted: 27th Mar 2005 05:05 Edited at: 27th Mar 2005 05:06
Might want to try out the save mesh command.
Quote: "SAVE MESH
This command will save the specified mesh to a file in the XFile text format. You can use this command to extract and
store meshes previously existing as part of a more complex object, or to create a large mesh based world and save it out
for later loading as a 3D game level.

SYNTAX
SAVE MESH Filename, Mesh Number"

Also try the make mesh from object command
Quote: "MAKE MESH FROM OBJECT
This command will make a single mesh using the entire mesh data of an object. A mesh is a wireframe description of a 3D
shape. The mesh and object numbers should be specified using integer values.

SYNTAX
MAKE MESH FROM OBJECT Mesh Number, Object Number"


The included help file is a nice place to look for commands.

When life hands you lemons go buy some oranges to make orange juice, and stop expecting everything to be given to you.

Login to post a reply

Server time is: 2024-09-23 15:32:44
Your offset time is: 2024-09-23 15:32:44