Aces High Bulletin Board

General Forums => Terrain Editor => Topic started by: DOODY on January 03, 2003, 03:41:12 AM

Title: reading the ELV
Post by: DOODY on January 03, 2003, 03:41:12 AM
does anyone know the file structure for ELV. I want to read it and make a wireframe.

 I'm writing an applet called MAP2BMP. I've done a lot of terrain leveling and such on my map, and I want to convert it back to bmp to edit it there a bit more.
Title: reading the ELV
Post by: pokie on January 03, 2003, 12:29:22 PM
DOODY
 
You could always use the Export function.

It will make you a 1024 X 1024  .bmp

It's not 100% perfect, but it's dam good to have, and I'm real glad HiTech has it built into the TE.

The problem, really only occurs with the land masses that are at 0 ft Altitude.  
Everything at 0 ft is set Black, and since the water is also at 0 ft, it too, is set as Black.

I think I have just thought about, away around this problem.
Just thought of it while answering this Post.

Going to test it right now!!!

Pokie
Title: reading the ELV
Post by: hitech on January 03, 2003, 01:39:50 PM
Its an array of 2 byte shorts with dim 1024 x 1024
Title: reading the ELV
Post by: Dux on January 03, 2003, 04:13:53 PM
Holy cow, Pokie... I didn't know that Export feature was there! Thanks!

Makes my job a little easier now :)
Title: hot dangit!
Post by: DOODY on January 03, 2003, 10:18:02 PM
Quote
Originally posted by pokie
DOODY
 
You could always use the Export function.


Pokie



DOH!!!!!
Title: reading the ELV
Post by: hitech on January 04, 2003, 11:49:24 AM
Trying to reinvent the wheel there doody? :)
Title: experiment in programming 101
Post by: DOODY on January 05, 2003, 01:35:59 PM
I'm still interested, if only to get some insight on how it all works.

here's what I did ( hope u know BASIC)


dim height(1024,1024)

open to read 1, "myfile.elv"

while file end(1)=0
read byte 1,height(x,y)
x=x+1
if x=1024 then y=y+1
endwhile



shouldnt this build an array of my terrain??

 please help