Creating a 3d editor in blitz3d help

Blitz3D Forums/Blitz3D Programming/Creating a 3d editor in blitz3d help

Caton(Posted 2015) [#1]
How do I code a 3d editor in blitz3d like
adding objects moving them, selecting them and get the object data
and saving and reading the data from file.
so how do I do this?
I just don't know how to add\move\edit objects in the file data.


Matty(Posted 2015) [#2]
How long is a piece of string?

Break it into components. Work out what you need to do. Study the examples related to file reading. Read up and play with strings.


RemiD(Posted 2015) [#3]
If the game uses different scenes/maps it is easier than if the game uses one big world.

Firstly define all components of each scene/map, for example :
Scene/Map
Components A
Components B
Components C

Secondly, create a basic scene/map editor with basic functionalities like the possibility to create/delete/save/load/close a scene/map, and the possibility to create/select/position/rotate/scale/color/name/delete each kind of component, then you will be able to create a scene/map, add some components, save the scene/map, destroy the scene/map and its components, load the scene/map, build the scene/map with its components, and once you understand that, add more functionalities.


Doggie(Posted 2015) [#4]
Well, if you want, download Hspun from my sig.
The zip file contains the source code which does
everything you've asked about. Problem might be
that it's spaghetti code and not heavily documented.
If you scroll down to a long yellow line that says
"construction area" following that is how to save
all the info and then how to load it. You'll have
to scan the rest of the code to see how the data
for each object is recorded as it is placed.
There is two kinds of "save"
One is just a long text file with all the object data
and the other takes that data and writes out a runnable
program. Coded this years back when first learning.

It won't be fun but it does work.


DOG