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.

Author
Message
Justice
20
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 12th Jan 2015 20:12 Edited at: 12th Jan 2015 20:16
Hi,

Is it possible to make a static object from a matrix ?

I have created a landscape and I would like to save it along with everything on my landscape (I have made all items on landscape static objects) as a single .dbo file

I have created a landscape from a flat plain object as my floor and placed objects eg trees & buildings on my floor and saved it all as a single .dbo file before and all works well.

But I want to use a matrix to create my floor
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 12th Jan 2015 22:50
Take a look at the Terrain commands...

Save Terrain for some reason is not in the help documents nor is it showing the syntax, but it does highlight...

The Syntax is:

SAVE TERRAIN "FileName.dbo", TERRAIN NUMBER
Must be .DBO and then the Terrain Number is an integer value

And then

LOAD TERRAIN "FileName.dbo", TERRAIN NUMBER

Simple...

Matrices I believe there is a bit of fiddling to get them saved, But it might be do-able...

The rest of the Terrain commands can be found partially in the DBPro help documents, or using Hands On DarkBASIC Professional Book 2, there are approximately 20 Terrain commands... half of them never documented it would seam...

Justice
20
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 12th Jan 2015 22:52
ok thx, i'll give it a go.
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 14th Jan 2015 19:42
Just remember that matrices are not terrains.

You'd need to convert you matrix to a terrain before using the save terrain command.

An easier way would be to iterate through the x and z positions of the matrix, and save it's y value to a text file.

However, I'd stop using matrices completely as they're awful, and use either advanced terrain, or the much more useful blitz terrain. (Or even shader terrain.)

Login to post a reply

Server time is: 2025-05-14 07:40:57
Your offset time is: 2025-05-14 07:40:57