|
|
Re: TreeCreator - Easy to use wood-generator & exporter
[Re: Felixsg]
#287502
09/01/09 04:50
09/01/09 04:50
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
make a .txt file (a external data file) where you put the data of the tree and load by the main code then are a external file
sorry by my english. I hope you understand whats I mind. How can you execute code from a text file at runtime? I would put it in a DLL if i was you.
|
|
|
Re: TreeCreator - Easy to use wood-generator & exporter
[Re: Alan]
#288610
09/07/09 15:46
09/07/09 15:46
|
Joined: Dec 2008
Posts: 271
Saturnus
Member
|
Member
Joined: Dec 2008
Posts: 271
|
Hello! I would do it like Felixsg suggested and write all the data into a text file. For example:
modelname.mdl x_coord y_coord z_coord action_name
...
Or something like this.
|
|
|
Re: TreeCreator - Easy to use wood-generator & exporter
[Re: Felixsg]
#289042
09/10/09 06:52
09/10/09 06:52
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Alan this is a very nice contribution. You just saved me a whole lot of time, thank you my friend. I was thinking that this doesnt need to be just for trees? Could you also place rocks, debris, sticks, logs, beer cans, whatever you want? Im looking through it and I was thinking that this may just be a very nice environmental object placement .... thing.
A8 Commercial
|
|
|
Re: TreeCreator - Easy to use wood-generator & exporter
[Re: paracharlie]
#289058
09/10/09 09:38
09/10/09 09:38
|
Joined: Oct 2007
Posts: 306 Austria
Alan
OP
Senior Member
|
OP
Senior Member
Joined: Oct 2007
Posts: 306
Austria
|
Hi,
of course it is not just for trees. You can place *any* object you want (even houses for a town *g*), just copy the desired model into the "your files" folder and place it's file name in line 32:
STRING* tree1_file_name = "tree1.mdl";
Just exchange "tree1.mdl" with your model name.
Greets,
Alan
PS: I'm currently working on an enhanced export function which exports to a .txt file instead of a .c file. The importer is able to read the .txt file, so compilation time won't increase as significantly as it does now when using multiple, large vegsets.
Last edited by Alan; 09/10/09 09:38.
|
|
|
|