Jump to content
Sign in to follow this  
elrunethe2nd

How Does Rock Raiders Use Map Tile Heights [SOLVED]

Recommended Posts

elrunethe2nd

Can someone explain to me how Rock Raiders determines what a tile's height is, and in particular, how it does this on a per-vertex basis?

 

My initial guess was that the values associated with tiles in high_12.map constitute an average tile height, such that the height of a map tile's vertex will be the average of the tile heights of the tiles adjacent to it. Like so (black numbers are fake tile heights):

 

86jara0.jpg

 

In level 12 of Rock Raiders (Water Works, off to the left of the starting area), this would produce the following:

 

3ytzElY.png

 

Whereas the game actually looks like so:

 

zNKmAXe.png

 

Your thoughts appreciated.

Edited by elrunethe2nd
Problem Solved

Share this post


Link to post
Share on other sites
aidenpons

The height value corresponds to the top left corner. One of the more useful results from this is that if you want a flat tile, that tile, the one below it, the one to the right, and the one below and to the right must all be at that same value you want it to be flat at; have an ASCII schematic

 

I want the tile labelled E to be flat at 9, and everything else slope accordingly to 0.

A B C			0 0 0
D E F			0 9 9
G H I			0 9 9

More info here.

Share this post


Link to post
Share on other sites
elrunethe2nd
11 hours ago, aidenpons said:

The height value corresponds to the top left corner. One of the more useful results from this is that if you want a flat tile, that tile, the one below it, the one to the right, and the one below and to the right must all be at that same value you want it to be flat at; have an ASCII schematic

 

I want the tile labelled E to be flat at 9, and everything else slope accordingly to 0.

A B C			0 0 0
D E F			0 9 9
G H I			0 9 9

More info here.

 

Yeah, that fixed it right up. Guess I was overthinking it. Thanks for that.

 

0DPG5ML.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.