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.

3 Dimensional Chat / saving a matrix

Author
Message
AluminumPork
21
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 10th Jan 2004 00:08
okay, quick simple question... how do I go about saving a matrix? thanks
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 10th Jan 2004 00:19
well, first you need to get all tile-heights and write them to a file
and write all textures to a file. To write the textures, its best you have stored them in a array (IF you use different textures)

rem IF YOU HAVE DIFFERENT TEXTURES PUT THEM IN A ARRAY like: dim texture(50,50)

open to write 1 "matrix.mat"
for a=0 to size
for b=0 to size
write float 1,get matrix height(1,a,b)

rem IF YOU USE DIFFERENT TEXTURES
write byte 1,texture(a,b)

next b
next a
close file 1


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"

Login to post a reply

Server time is: 2025-06-27 17:54:55
Your offset time is: 2025-06-27 17:54:55