HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: ART - Simple Puddle Decal  (Read 962 times)

Prometheus2012

  • General Accounts
  • *
  • Posts: 629
    • View Profile
    • Exile-Online
ART - Simple Puddle Decal
« on: Oct 17, 16, 10:36:48 AM »

Here is a neat trick for making puddles. This works best with flat surfaces such as roads or pavements, but you could make the plane any shape you want really.

First you start off by making a simple plane any size you want and then apply a texture with a rough puddle shape and a texture with a transparency in the diffuse alpha.

The texture is what makes the shape of the puddle here, so no need to make the mesh into a fancy puddle shape.

Make sure to select Gradient as alpha mode on the hero material.

Once you export to game, you can give it some "reflection" using a cubemap in the environment settings.



I have attached all the files to this post including the max, textures and HGM.
« Last Edit: Oct 17, 16, 10:46:49 AM by Prometheus2012 »
Logged

ToY-Krun

  • General Accounts
  • *
  • Posts: 677
  • Support Volunteer
    • View Profile
Re: ART - Simple Puddle
« Reply #1 on: Oct 17, 16, 10:38:27 AM »

awesome dan!

Prometheus2012

  • General Accounts
  • *
  • Posts: 629
    • View Profile
    • Exile-Online
Re: ART - Simple Puddle Decal
« Reply #2 on: Oct 17, 16, 10:46:33 AM »

You can then turn physics off for the mesh to save on some overhead as you wont need to interact with it.

Place it as a decal anywhere you want. Feel free to post up experiments of your own.

It wont react like water when you step on it and ive yet to figure out how to give a surface actual reflection rather than just displaying a cubemap.

If anyone has a clue or though on that kinda thing, would be cool to do those as it would give us all realistic puddles. Although saying that, im thinking that having fully physics reactive puddles with reflection would be a real killer.

So this is a cheap alternative for now.

ToY-Krun

  • General Accounts
  • *
  • Posts: 677
  • Support Volunteer
    • View Profile
Re: ART - Simple Puddle Decal
« Reply #3 on: Oct 17, 16, 10:51:21 AM »

well.. there is the "water/mirror" asset, however not as easily shaped as you can do with your plane, unless you used a ribbon type, but you can use the "plain_ripple" setting for a mirror, but yeah it then double renders everything so its not advised to use them in wide open areas etc.


and example:




Your plane and example shows well how to give the "illusion" of reflection while maintaining your resources :)
« Last Edit: Oct 17, 16, 10:53:35 AM by ToY-Krun »
Logged

Prometheus2012

  • General Accounts
  • *
  • Posts: 629
    • View Profile
    • Exile-Online
Re: ART - Simple Puddle Decal
« Reply #4 on: Oct 17, 16, 11:07:25 AM »

Aye i had played with the ribbon water for puddles but the performance factor made me look for other alternative methods.

ExileOnline

  • General Accounts
  • *
  • Posts: 1
    • View Profile
Re: ART - Simple Puddle Decal
« Reply #5 on: Oct 29, 18, 03:32:33 AM »

Just a small update. This puddle technique is also good for pools of blood or toxic sludge.

Just play around with the diffuse colours on the property panel ingame
Logged