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 / Looking for K Verbeek

Author
Message
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 3rd Jan 2004 17:02 Edited at: 3rd Jan 2004 17:10
I am interested in understanding a submission "Memblock Matrix" made to the codebase by Kevin Verbeek, but I cannot find contact information anywhere.

The program submitted is makematrixmem.dba

I am wondering how to go about modifying the height.dat file it seems to be in binary format, but is kindof useless if people cannot make there own height maps?

You had mentioned that you would like people to submit requests or enquiries to you, but there was no contact information.

What I really would like to do is turn these memblocks into a mesh so I can import it into a 3D Editor. I would probably like to reduce the size of the landscape to.

Any chance someone can help me on this?
TKS
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Jan 2004 17:44
The file should just contain float values, arranged column by column on a 65x65 grid (the first 65 values should be for the column where x=0)

For free Plug-ins, source and the DBPro Interface library for Visual C++ 6 and .NET
http://www.matrix1.demon.co.uk
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 5th Jan 2004 09:35 Edited at: 5th Jan 2004 09:56
If he saved it from a memblock to a .dat file?
Here is the height.dat file opened in a text editor.



???
Perhaps I need a hex editor to read it? I have no familiarity with hex editors. But I know that they usually can turn this into hex notation?


Here is the link to the codebase program
http://darkbasicpro.thegamecreators.com/?m=codebase_view&i=ff622260deaf05fa7890237516f9147f
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 5th Jan 2004 11:47
Kevin is known as Kevil on the forums - but really you should make your own file format, it's pretty straightforward, you could even use a Matedit loader - just a matter of getting the height data into the array.


Van-B


Next time he runs past, GRAB HIM!
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 6th Jan 2004 19:19
Quote: "writevectordata(mem,pos,(x-1.0)*tilesizex#(mem),0.000,(z-1.0)*tilesizez#(mem),0.000,1.000,0.000,rgb(255,255,255),0.000,1.000)"


<cough><cough>

effort where effort is due but when it comes to writing memblocks and writevectordata commands I don't think theres anything very straight forward about it.

So I repeat the question; Does anyone know any hex editors that I can use to read the height.dat file; as it makes no sense to me, how can I edit it?
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Jan 2004 19:35
you don't need to bother with all that write vector stuff though, use the functions kevils done and then do it like you would a normal matrix.
have a look at the source below, it makes a tiny matrix using data statements to provide the heights, i think i'm gonna start using memblock matrices now


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 6th Jan 2004 19:36
That's the same code that I based my engine on, so I have a lot of editor code lying about, gimme an hour.


Van-B


Next time he runs past, GRAB HIM!
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Jan 2004 19:39
till 18:36 gmt, your people await van


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Jaze
21
Years of Service
User Offline
Joined: 20th Nov 2003
Location: Connecticut, USA
Posted: 6th Jan 2004 19:47
and if your bent on getting a hex editor - Look for XVI32

IF you can't find it - I'll try to get it to ya - email me.

It allows viewing as text, hex, and allows char by char editing and more - its probably the best one I've seen - and I've seen many. Its not hard to use.

Though I wouldn't recommend it for height mapping - it does work well.


-=/Jaze/=-
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Jan 2004 21:01
but the height.dat file is just a load of floats? you can convert it to a readable file with 4 lines of code in db, but its pretty pointless really, as it is just an array that was generated by a heightmap or some kind of editor, so editing it manually would be a nightmare.


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 6th Jan 2004 21:28
Well, I suggest simply using a bitmap heightmap instead.



Then, to get it smooth you can use this code after importing it:


Hope this helps.


Van-B


Next time he runs past, GRAB HIM!
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 7th Jan 2004 13:04
Thanks for the Hex Editor!(Never know when it might come in handy!)

rEd-EyE your code pulls up the error that [could not understand line]setmatrixheight(1,x,z,a)

Thank you for the code Van-B
Now that I have had time to think about it I did run the .dat file into a string and saved it as a text file to have a better look and see if I could do it. I think I see that the numbers range from about 150-350.
But when you are talking about a heightmap Van "Like using Matedit", will this allow me to output the file so I can use your code snippets above. I do have a heightmap snippet that grabs a greyscale bitmap... I cannot remember where I got it from but it was a well known web site for DBpro...



uses http://www.boyar.net/heightmap.bmp

Anyway of meshing the two programs??? How would I pull the x and y data values from the bytes in this program???

I do know enough that I could make a basic height map for a matrix... The thing for me is that I need the data in memblock form so that I can convert it to an object and finally(hopefully) to a mesh so that I can import it into a 3DEditor and give a little landmass alot of personal touch.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 7th Jan 2004 13:19
Ahhh, see that's a different kettle of fish - you should really look for a heightmap to model program, not a memblock matrice - memblocks are only really good for 'live' meshes, like as part of a game engine. It is entirely possible to take a matedit file and load it in then convert it to a matrice, I was actually thinking about making a little function to do just that, I reckon that would be your best bet.


Van-B


Next time he runs past, GRAB HIM!
kevil
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 7th Jan 2004 18:21
LOL I can't believe I missed this topic! It uses my name as topic name, how could I miss that!
And VanB is right. If you only want to use it to create a terrain using a heightmap, you could better do that in a model program. But if you don't have any model program, I could help you in making it work .

Kevil
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 7th Jan 2004 21:12
So Kevil,
What program/code did you use to make your original height.dat?
(Out of curiosity???)
kevil
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 7th Jan 2004 21:47
Uhm, the height.dat was created using a DBC program I made using a bitmap file reader function I found on the forums somewhere.
But I think the same could be done in DBP using memblocks or the point command.

Kevil
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 8th Jan 2004 16:04
Kind of silly having a code base program that won't let you match the specific heights called for?
kevil
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 8th Jan 2004 17:25
Well, the code was not about getting the height from a heightmap or height file, but it was about faking a matrix with memblocks.

Kevil
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 8th Jan 2004 18:02
Come on Icergb, the height.dat loading code is about 6 lines long, it reads the data sequentially as floats into a 2D array.

I've given you code to use a heightmap image instead, and to smooth it out.

If you still can't figure out how to make your own files then you should really practice the file and array commands before looking at memblock meshes.


Van-B


The nature of Monkey was irrepressible!.

Login to post a reply

Server time is: 2025-06-04 18:04:48
Your offset time is: 2025-06-04 18:04:48