Author Topic: Blending the terrain underneath Buildings.  (Read 3304 times)

Psychedelic_hands

  • Guest
Blending the terrain underneath Buildings.
« on: 24 December 2010, 16:01:46 »
Inspired by this thread: https://forum.megaglest.org/index.php?topic=6330.0

If we could change the texture underneath and around buildings to dirt form grass, we might get a much better effect.

A game I can think of that uses this is Age of Empires II (Man, I miss that game):
(click to show/hide)

(click to show/hide)

I think this should be a tag in the xml. Though I'm not too familiar with it (Zoy does it for me) We would need a way of turning it off, in case of circular buildings, or ones smaller than a tile etc.
Of course another thing to consider is stone/road textures. They shouldn't apply to this, Because it may look strange.

(p.s MERRY CHRISTMAS! <3 Hands)  :P
« Last Edit: 24 December 2010, 16:06:00 by Psychedelic_hands »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Blending the terrain underneath Buildings.
« Reply #1 on: 25 December 2010, 04:58:52 »
Agreed. AoE2 looked great for its time, and that minor detail certainly helps. Though, I propose you can choose the texture number (from 1-5). Even though tilesets differ a lot, they still share at least some similarities, such as one being dirt-like, one being stone-road-like, etc, and then we can choose the texture most appropriate to our building.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #2 on: 25 December 2010, 15:54:33 »
Agreed. AoE2 looked great for its time, and that minor detail certainly helps. Though, I propose you can choose the texture number (from 1-5). Even though tilesets differ a lot, they still share at least some similarities, such as one being dirt-like, one being stone-road-like, etc, and then we can choose the texture most appropriate to our building.

this^

Psychedelic_hands

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #3 on: 26 December 2010, 09:20:50 »
Agreed. AoE2 looked great for its time, and that minor detail certainly helps. Though, I propose you can choose the texture number (from 1-5). Even though tilesets differ a lot, they still share at least some similarities, such as one being dirt-like, one being stone-road-like, etc, and then we can choose the texture most appropriate to our building.

From my understanding, all tilesets have the numbers the same types of textures put under each number. So, unless a tileset goes against this, we should be sweet :).  I think it's texture 3? That is the one we want? I'm not sure.

ChupaReaper

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #4 on: 6 January 2011, 04:00:29 »
Or each faction could optionally have their own dirt textures, this way it adds to their impact on the map (a nice ice faction would freeze the place up for example).

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #5 on: 6 January 2011, 08:43:59 »
to what extent could some of this be built into the buildings using semi-transparent textures on the baes of them?

ChupaReaper

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #6 on: 6 January 2011, 12:42:59 »
If you use a flat texture on the base of a building it would work, but what if this is built by a ramp or water, etc, having the texture attached to the model wouldn't be the best way to do this.

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #7 on: 6 January 2011, 13:19:55 »
I think a multipronged solution might be a good compromise:

1) newer engines support a 'building' tile and use that for land under buildings

2) modellers should avoid sharp edges at the base of buildings by using transparency in textures and blending in a bit of dirt in the texture

This seems less impact to going for a gl shader solution?
« Last Edit: 6 January 2011, 14:01:25 by will »

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #8 on: 6 January 2011, 19:04:02 »
If you use a flat texture on the base of a building it would work, but what if this is built by a ramp or water, etc, having the texture attached to the model wouldn't be the best way to do this.
Any rough/uneven terrain would screw it up, really.

2) modellers should avoid sharp edges at the base of buildings by using transparency in textures and blending in a bit of dirt in the texture
It's kinda hard to do that if you don't know what kind of dirt will be in the tileset.  Clay?  Sand?  Rich black silt?

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #9 on: 7 January 2011, 00:15:56 »
The alpha in unit textures is used for team colour. My suggestion is to detect if the tile has a building on it and blend in a texture with the terrain based on the unit, faction and/or tileset.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #10 on: 7 January 2011, 00:35:34 »
the alpha being used for team colour blending or otherwise is based on flags per mesh in the g3d?

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #11 on: 7 January 2011, 00:56:04 »
the alpha being used for team colour blending or otherwise is based on flags per mesh in the g3d?
Meshes that are double-sided in Blender/3DS use alpha as team color in Glest, while meshes that are single-sided use alpha as transparency.

Mr War

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #12 on: 31 January 2011, 07:54:19 »
Using johns advice I was able to add some blending to the base of my building models. I used a shallow low-poly cone (4 faces) set to single sided mesh

It's limited by my drawing skills but proves the approach in glest


will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #13 on: 31 January 2011, 08:09:49 »
so after and before, side by side:


The bottom of the tower is especially pleasing!

Absolutely gorgeous, great!

Hopefully everybody retrofits their existing models.

In those pictures, the floatingness of the gold and stone is so jarring now!


Gabbe

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #14 on: 31 January 2011, 15:41:32 »
more shadows.

ChupaReaper

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #15 on: 1 February 2011, 16:26:09 »
I'd  still prefer blending done separate from the model, for example, what if the model is built next to water?

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #16 on: 1 February 2011, 16:54:49 »
I'd  still prefer blending done separate from the model, for example, what if the model is built next to water?
Or right on a hill?
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Gabbe

  • Guest
Re: Blending the terrain underneath Buildings.
« Reply #17 on: 1 February 2011, 16:59:09 »
I'd  still prefer blending done separate from the model, for example, what if the model is built next to water?
Or right on a hill?
can those appear in glest?



me not think so..

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #18 on: 1 February 2011, 17:35:09 »
The ideas touted to somehow adjust the terrain under the building rather than have dirty splatter on the building itself seems unrefined at this point; I can't see a concrete way this might be easily done.

The approach of putting mud splatter on buildings and giving the a fringe - they can't be built so tightly together, but still - will work, even when built near water.  Think about it.

Its a big improvement, an easy win, I hope everyone adopts it whilst we're pondering the terrain modification approach.

(And I can't see the problem with a model that includes a hill if that hill starts within the bounds of the model and there is a fringe around it.  Someone will build one, and everyone will suddenly see the light.)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: Blending the terrain underneath Buildings.
« Reply #19 on: 1 February 2011, 19:26:20 »
(And I can't see the problem with a model that includes a hill if that hill starts within the bounds of the model and there is a fringe around it.  Someone will build one, and everyone will suddenly see the light.)
How would we get the hill to match the terrain of the tileset, though?  A big mound of brown dirt would stick out like a sore thumb in Hell or Desert.

 

anything