This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Importing real / 2D image heightmap Data into an adt  (Read 5592 times)

Guest

  • Guest
Importing real / 2D image heightmap Data into an adt
« on: April 12, 2011, 02:50:42 pm »
Hi, I was looking at some topography images of planets taken by nasa and available for download (free) and it got me to thinking, how hard would it be to gather that data and import it into an adt file.

This is in suggestions because I think there needs to be a tool for this as it would allow much more realistic terrain creation for wow ;)

end minddump--
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #1 on: April 12, 2011, 04:07:04 pm »
I work in the moment on a grayscale import/export function for noggit.
With this it will be possible.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Jack

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 258
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #2 on: April 12, 2011, 07:36:58 pm »
isn't this already working with taliis?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #3 on: April 13, 2011, 08:47:18 am »
Not realy :) Tigu started as i know but it never was working implemented. Also i export a real graysacel 16bit heighmap with a resolution af 272 pixels. If it is done ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

SirFranc

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 209
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #4 on: April 15, 2011, 01:31:40 am »
Taliis heighmap is totally fucked up... not working at all XD
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Join the True Roleplay!

Guest

  • Guest
Re: Importing real / 2D image heightmap Data into an adt
« Reply #5 on: April 16, 2011, 05:43:42 pm »
this is all gravy (good) except that, It does not need to be a part of any toolset IMHO. What about command-line batch processing, then noggit etc could integrate it via a simple gui and the apps development would remin seperate.

One of the things I have noticed that worries me a little is that everyone wants Noggit, Yias, Taliis etc to be an all in one toolset like blizzard probably uses but it does not have to be so nd would probably benefit from a more compartmentalised approach. Using win32 API it is entirely possible to capture a form by name and put it inside a picturebox instead of using the start-menu. I know it's just a lot of I want... but I think I may even be able to amble together this myself with an empty adt and just have the app edit the height data.

Also wow 272pixels is miniscule, the data set I'm looking at is like 5000x4000 pixels lol, so probably a bit more than wow can handle, anyway, I'll see if I can code up a little demo app (although it may be for 2.x.x initially)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

SirFranc

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 209
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #6 on: April 16, 2011, 07:02:43 pm »
Quote from: "tyler durtan"
this is all gravy (good) except that, It does not need to be a part of any toolset IMHO. What about command-line batch processing, then noggit etc could integrate it via a simple gui and the apps development would remin seperate.

One of the things I have noticed that worries me a little is that everyone wants Noggit, Yias, Taliis etc to be an all in one toolset like blizzard probably uses but it does not have to be so nd would probably benefit from a more compartmentalised approach. Using win32 API it is entirely possible to capture a form by name and put it inside a picturebox instead of using the start-menu. I know it's just a lot of I want... but I think I may even be able to amble together this myself with an empty adt and just have the app edit the height data.

Also wow 272pixels is miniscule, the data set I'm looking at is like 5000x4000 pixels lol, so probably a bit more than wow can handle, anyway, I'll see if I can code up a little demo app (although it may be for 2.x.x initially)
Way more than wow can handle, i recall alpha layers are 1024x1024, so i suppose that REAL heighmaps are of the same size, which is reasonable.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Join the True Roleplay!

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #7 on: April 16, 2011, 08:53:52 pm »
A height map is 9x9 interleaved with 8x8 per MCNK.
Take that times 16 and times 64 so you get the maximum resolution per continent.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Guest

  • Guest
Re: Importing real / 2D image heightmap Data into an adt
« Reply #8 on: April 18, 2011, 03:12:02 pm »
so... (9x9) * (8x8) * 16 is per adt, I think I have now been sufficiently confused, the pp will only work on one adt at a time because traditional 2d imaging apps can sort out cutting a heightmap into tiles. also maybe i'm doing something wrong but is any part of the adt's height data relative to a global height?, maybe I came out of alignment :S
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #9 on: April 18, 2011, 04:27:14 pm »
No 9*9 + 8*8 * 16 chunks = 1 ADT = 272 pixels. This will get filled with fake pixel that get not used during import and get generated during export.
That is my plan :)

http://www.wowdev.wiki/index.php?title=ADT/v18

The MCVT sub-chunk  subsection.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Guest

  • Guest
Re: Importing real / 2D image heightmap Data into an adt
« Reply #10 on: April 18, 2011, 05:01:54 pm »
thank you very much lol. is this correct for wow version 1.1.2 (only version I have portable on my laptop lol)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Guest

  • Guest
Re: Importing real / 2D image heightmap Data into an adt
« Reply #11 on: April 26, 2011, 01:23:57 pm »
right I have the app built to read the mcvt data but need to know how to write to the data from a bitmap or just as helpful would be how to write the data to a bitmap as a heightfield, I was thinking of reading the data but as uint32 and using C#'s Color object to represent the data correctly but this presents alpha issues so how about ignoring that idea and rounding the float to an int32, I'm just not sure if I'm going to be doing it in the right order
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #12 on: April 26, 2011, 02:00:47 pm »
I am short befor finishing this inside of noggit. So why do you not spend the time working on M2 or WMO tools?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Importing real / 2D image heightmap Data into an adt
« Reply #13 on: April 26, 2011, 10:05:57 pm »
This is the most worthless thing anyone could do. Why do people work on this? Its counter-intuitive, bad to use and just useless as you can do quick mockups of terrain faster in 3D than in a 2D image using colors, twisting your head to add the third dimension in your brain. Its just useless.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Guest

  • Guest
Re: Importing real / 2D image heightmap Data into an adt
« Reply #14 on: April 27, 2011, 11:29:58 am »
Well before trying to do this in three dimensions I think it's easier to use a 2d or data oriented approach in place especially as the data is only one dimension
« Last Edit: January 01, 1970, 01:00:00 am by Admin »