Heightmap

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Tormentor667
Posts: 13554
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Post by Tormentor667 »

@giest - Thx, but how does this work in ZDoom?
User avatar
Nmn
Posts: 4631
Joined: Fri Apr 16, 2004 1:41 pm
Preferred Pronouns: He/Him
Contact:

Post by Nmn »

It doesn't, tough some wish it did.
farlowj
Posts: 389
Joined: Mon Feb 16, 2004 1:33 pm
Location: Michigan

Post by farlowj »

Try the map, it somewhat works, if you set the thing heights. It won't be as good as Far Cry or newer games, but for Zdoom, it looks pretty awesome.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

Holy crap, almost felt like I was playing Mechwarrior 2 or one of thosde older 3D games (That's a good thing BTW) :D. How would one get this to cover a far greater area? I can see good things coming if we canmake the area far bigger.

:twisted:
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

From what I understand, you'd need an extra byte in the linedefs structure to add much more, which isn't going to happen...

Unless someone can devise a way to use slope things without requiring a reference line. Maybe a hack to use the first line in the sector that isnt connected directly to the slope thing itself? That would work fine for triangular sectors.
User avatar
Nmn
Posts: 4631
Joined: Fri Apr 16, 2004 1:41 pm
Preferred Pronouns: He/Him
Contact:

Post by Nmn »

It's bad You can't make slopes by raising vertices and sloping the plane from that. Then it would be very easy to just criss-cross a large area with an isometric grid-like sector arrangement (or traingular sectors) and just manipulate vertices to raise/lower hills.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

Yeah, that would be cool... kinda like a 2D 3D editor or something :D.

:twisted:
User avatar
BetaSword
Posts: 650
Joined: Fri Jul 02, 2004 10:53 am
Location: Doing some stuff.

Post by BetaSword »

I actually had that idea a while ago, and thought that it would be really cool to have something like that available in Doom Builder or something. Like, have the normal view for mapping, 3D view for texturing, and then an isometric view of the grid for adjusting heights of sectors and slopes and such. Of course, for this to work well in Zdoom, the slopes themselves would need to be reworked to allow for more control over them, as right now making complex sloped figures is a bit difficult.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Hmm... what about an "elevate nearest vertex' thing?
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Post by Macil »

Vertexes have no z-coordinate.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Obviously. If they did, this discussion would not be happening.
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

Good idea Risen, but I can see it becoming overly complicated when you are making a heightmap since you will need loads of height things around each vertex, and must make sure all of them match (if you want it to look right). Also, you still need at least one point of reference to slope from, so you would have to have a sister vertex height thing on the opposite end of the sector.

It would be much more convenient to have a vertex thing that you can place directly on top of a vertex, but there is a problem with this. The height of a thing is relative to the sector it is in, and vertexes arent really linked to any particular sector. That means sloping one sector up to meet with a flat, higher sector would be impossible, since the game would either slope all the sectors around the vertex or pick a random one...

However, if it was done so that the game only took into account triangular sectors that are all connected by vertexes that have slope things on them, I think it might be potentially possible to implement. It still sounds like it would be ridiculously difficult though, I'm having trouble just trying to work out the basic theory...

It would have to first check through every sector to find the ones with only three sidedefs. Then find the corresponding linedefs, then find all the vertexes connected to these linedefs and remember which sector they are connected to, then collect the location of all the slope things and work out which vertexes they are on top of, and only then would you have enough information to actually calculate the slopes....

Unless anyone knows a better way to find out which vertexes are in a given sector?
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

Maybe such a feature could be embedded into ZDoom itself, like the build engine... This would be cool if randy made zdoom not only the game, but the editor to. This would allow for far more complex things without relying on outside tools... of course, randies work load would increase at least 4 fold :D.

:twisted:
User avatar
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Post by ReX »

Just noticed this old topic about heightmaps, and I thought I'd bump it up the line, as it's now quite relevant to the discussion on the terrain generator for ZDooM.

I looked at farlowj's heightmap wad and it looks very cool. I'm off to try kappes buur's tutorial on creating heightmaps and see if I can give the terrain generator a whirl.
User avatar
Lexus Alyus
Posts: 4220
Joined: Tue Jul 15, 2003 5:07 pm
Location: Nottingham, UK
Contact:

Post by Lexus Alyus »

From what i've seen, the terrain generator is very impressive.

:twisted:
Locked

Return to “Editing (Archive)”