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.

DarkBASIC Professional Discussion / can you convert matrixes into .x/.dbo models?

Author
Message
PAGAN_old
20
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 14th Oct 2010 10:02
the matrixes you create with "make matrix" command can you convert them to .x or .dbo models?
also another question in terms of making something like a terrain editor is it easier to manipulate a matrix or a .x/.dbo models

dont hate people who rip you off,cheat and get away with it, learn from them
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Oct 2010 21:27
No, it's something you'd need to do yourself using memblocks or the vertexdata commands.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
PAGAN_old
20
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 14th Oct 2010 22:21
aw damn

dont hate people who rip you off,cheat and get away with it, learn from them
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Oct 2010 22:35
If you are going to make you matrix by a heightmaps, you can do it with an advanced terrain instead and then save it as .x or .dbo

If you still want to use a matrix, you can convert your matrix to a heigthmaps texture and then use an advance terrain using the generated hightmap.As IanM says, it's something you'd need to do yourself .

cheers.

I'm not a grumpy grandpa
PAGAN_old
20
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 15th Oct 2010 03:56
oh well i guess i will have to do it the hard way thanks anyway

dont hate people who rip you off,cheat and get away with it, learn from them
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Oct 2010 15:07 Edited at: 15th Oct 2010 15:09
Quote: "you can do it with an advanced terrain instead"

I never considered that.

It's easy - convert your tile corner heights to values between 0 to 255, generate a colour using this value (grey-scale will do), plot those colours to matching points on a bitmap, grab an image, then save it.

Then use the image to generate a terrain.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 15th Oct 2010 15:22
I always thought it would be dead handy to have a function that converts a matrix into an object, people could use the standard matrix system in their editor, then export it as a DBO, or use it natively - building the matrix in-game, convert it to an object, then delete the matrix.

It's fidly, but by no means difficult - I did something similar with an old RTS game, used a matrix in the level editor, then used the same data and textures to make a memblock matrix in-game, to allow coloured vertices mainly but tere are other benefits (shaders, effects, collision, physics systems, performance, dark lights... could go on for ages). I still like using matrices in editors, because it's so easy to get editing, scrolling and texturing working on a matrix.

Health, Ammo, and bacon and eggs!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Oct 2010 16:04
Quote: "It's easy - convert your tile corner heights to values between 0 to 255, generate a colour using this value (grey-scale will do), plot those colours to matching points on a bitmap, grab an image, then save it.

Then use the image to generate a terrain."



That what I meant


Quote: "you can convert your matrix to a heigthmaps texture and then use an advance terrain using the generated hightmap"



Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-22 12:40:58
Your offset time is: 2026-07-22 12:40:58