Chaosforge Forum

  • March 18, 2024, 21:41
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Smoother liquid transition  (Read 4089 times)

Potman

  • Major
  • *
  • Offline Offline
  • Posts: 395
    • View Profile
Smoother liquid transition
« on: May 15, 2012, 11:53 »

As observed here, different sorts of tiles, such as water and acid in this case, look really blocky when put together. Any chance smoothening it out a little? Maybe even make the border tiles do damage, albeit a bit less, than full acid does?
Logged

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: Smoother liquid transition
« Reply #1 on: May 15, 2012, 12:47 »

I think that's doable. Currently the partial liquid tiles mesh with the floor tile they're adjacent to, so I imagine something similar can be done for liquid-to-liquid transitions. It might require some fine-tuning with regards to looks, but I agree that two liquids mixing is clunky and some degree of smoothness should be attempted. (It does sound a little complicated to ensure that one acts as the foreground and the other as the background, however, so this is really Kornel's call.)

Maybe even make the border tiles do damage, albeit a bit less, than full acid does?
This is a no, because the game is wholly tile-based: when you move onto a particular cell, you'll be affected by the cell regardless of neighboring positions. It would be easier to consider this from the perspective of a console player: as there are no partial visuals there, everything is all or nothing, and the same has to hold when it's displayed with more detailed graphics.
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Smoother liquid transition
« Reply #2 on: May 15, 2012, 14:08 »

Actually that's not doable :P. Or doable, but surprisingly hard. Moreover it would increase the number of layers needed to be rendered, which would increase the GFX requirements even more (possibly beyond netbooks unfortunately).

There are cheap tricks that would allow to circumvent that, but we would loose what is most important for me in the engine -- flexibility.

So for now -- no, unfortunately that's not possible.
Logged
at your service,
Kornel Kisielewicz

ParaSait

  • Baffen :P
  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1229
  • Happy Little Boozer
    • View Profile
    • MPSF
Re: Smoother liquid transition
« Reply #3 on: May 15, 2012, 17:26 »

Actually that's not doable :P. Or doable, but surprisingly hard. Moreover it would increase the number of layers needed to be rendered, which would increase the GFX requirements even more (possibly beyond netbooks unfortunately).
Why is the transition doable with liquids to floor tiles, then?
Logged
[18|7|3|0|0|0] [MED:13/43] [SPE:36/67] [ASM:11/40]

Check out my epic youtube channel!
Currently playing The Bard's Tale and System Shock 2 (coop with GrAV1t)!

Creepy

  • First Sergeant
  • *
  • Offline Offline
  • Posts: 118
  • Duelist
    • View Profile
Re: Smoother liquid transition
« Reply #4 on: May 15, 2012, 19:07 »

Floor tiles could be on a lower layer than liquids, which could have all ended up sharing a layer for ease of use.

Transition from floor to liquid would just be putting the liquid tiles with the appropriate transparent bits above a generic floor tile on the layer below them. Transitioning between different liquids would then require adding two more layers (Current liquid layer becomes dedicated water layer, add a layer for acid and a layer lava). I don't know how many layers are in use at the moment (floor, liquids, walls, objects?), but adding two more would probably add a sizable amount to the graphical-version's requirements.
« Last Edit: May 15, 2012, 19:12 by Creepy »
Logged
Formerly Hell Knight Warrant Officer [16|7|5|1|0]
Currently Cacodemon 2nd Lieutenant [18|10|3|0|0]
Current Goal: ???

tehtmi

  • Programmer
  • Local Inquisitor
  • Lieutenant Colonel
  • *
  • *
  • Offline Offline
  • Posts: 458
    • View Profile
Re: Smoother liquid transition
« Reply #5 on: May 15, 2012, 20:19 »

What about using the existing floor-fluid boundary tiles to provide the transition between fluid types?  It would look like a thin strip of floor between the fluids, and shouldn't require any new art or additional layers.
Logged

Matt_S

  • Elder
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 394
  • Lost Soul
    • View Profile
Re: Smoother liquid transition
« Reply #6 on: May 15, 2012, 21:32 »

What about using the existing floor-fluid boundary tiles to provide the transition between fluid types?  It would look like a thin strip of floor between the fluids, and shouldn't require any new art or additional layers.
I was about to suggest this myself.
Logged

IronBeer

  • Elder
  • First Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 126
  • Carry on, citizen.
    • View Profile
Re: Smoother liquid transition
« Reply #7 on: May 15, 2012, 22:55 »

Semi-related: there is one particular fluid interaction that console diehards like myself may appreciate being examined. In Hell levels, small blocks (1 square, isolated or diagonally attached) blocks of lava can sometimes have the same color as the surrounding floor. Despite the different ASCII character, it can still be difficult to differentiate the floor types. Would it be possible to force single (orthogonally-connected) tiles of lava to use only the brighter colors from the "lava palette"?
Logged
0.9.9.7 Mancubus 1st Lieutenant
[19/12/5/1/0]
Pages: [1]