Author Topic: reading the ELV  (Read 427 times)

Offline DOODY

  • Copper Member
  • **
  • Posts: 141
      • http://www.most-wanted.org
reading the ELV
« 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.

Offline pokie

  • Silver Member
  • ****
  • Posts: 841
      • http://s7.eastlink.ca/~tscott
reading the ELV
« Reply #1 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

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12344
      • http://www.hitechcreations.com
reading the ELV
« Reply #2 on: January 03, 2003, 01:39:50 PM »
Its an array of 2 byte shorts with dim 1024 x 1024

Offline Dux

  • Aces High CM Staff (Retired)
  • Platinum Member
  • ******
  • Posts: 7333
reading the ELV
« Reply #3 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 :)
Rogue Squadron, CO
5th AF, FSO Squadron, Member

We all have a blind date with Destiny... and it looks like she's ordered the lobster.

Offline DOODY

  • Copper Member
  • **
  • Posts: 141
      • http://www.most-wanted.org
hot dangit!
« Reply #4 on: January 03, 2003, 10:18:02 PM »
Quote
Originally posted by pokie
DOODY
 
You could always use the Export function.


Pokie



DOH!!!!!

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12344
      • http://www.hitechcreations.com
reading the ELV
« Reply #5 on: January 04, 2003, 11:49:24 AM »
Trying to reinvent the wheel there doody? :)

Offline DOODY

  • Copper Member
  • **
  • Posts: 141
      • http://www.most-wanted.org
experiment in programming 101
« Reply #6 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