0 Favourites

Another request on distort maps

This forum is currently in read-only mode.
  • Currently when you scale a sprite it also scales the distort map, or mesh associated with it. That's expected. In fact this allows you to create tiled maps to any scale. The problem is it also scales the z height. So my question is would it be possible to have the option for z heights not to scale with the sprite?

    In this example:

    http://dl.dropbox.com/u/666516/shump1.exe

    The sprite with the z heights is only 64x64 pixels, but is scaled to the layout width of 3000x 3000.

    The maximum z height of the unscaled sprite is only 3, but as you can see when it's scaled those z heights go up as well.

    Also note the collision detection is affected(somewhat) by the scaled z heights.

    edit: also note the ram on this is about 0.3 megs, with no slow down except for the start of it where it gets mapped.

  • Hmm, how do you set those Z heights? Perhaps you could sneak a down-scaling algorithm there... reduce height by the factor of 3000/64 (or something like that).

    Then again, I may have no idea what I am talking about.

  • Actually...

    Yeah that does work. Silly me I didn't even think you could use decimals.

    Ok yeah that's a reasonable solution, especially given what they would probably have to do to change it.

    Thanks!

  • OMg I had no idea that kinda stuff could be made Oo me wants to learn how to do shit like that especially if you could make shadows react to landscape

  • OMg I had no idea that kinda stuff could be made Oo me wants to learn how to do s**t like that especially if you could make shadows react to landscape

    Not sure what you mean. I mean you can do some bumpmapping, but something like the shadow caster behavior would probably be out of the question. All though you could fake some shadows with a color filter. In fact you kind of have to if the terrain is all one texture.

  • I just mean that didn't know you can do so cool terrain in Construct ^^

    And with shadows stuff I mean is it possible to have seperate shadow (similar to dropshadow) but as its own sprite so it could react to hills on terrain etc.. Though it sounds almost impossible...

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • why dont you just scale the map manually with x,y distortion of all the points at startup? you only need the script run once, and then z heights will be nice and normal.

  • You mean set the initial z lower based on how large the map will be scaled?

    Yeah I could do that, but the problem is I'm also using the original z heights to create a collision mask.

  • well from what i understand the size of the sprite will alter z heights based on the scale.

    i dont know what youre doing to scale, i assume width and height on the sprite which you load a distort map onto, well why dont you scale things manually by "stretching" the points x and y to a bigger size instead of using "scaling"

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
81 11,905
LaurenceBedford's avatar
LaurenceBedford
Unread hot topic
0 Favourites
[PLUGIN] Google Map
118 34,687
eryson27's avatar
eryson27
Unread sticky
150 20,738
Crow in the Snow's avatar
Crow in the Snow