project-navigation
Personal tools

Author Topic: Question about plant models and landscape textures  (Read 6526 times)

Offline p0ss

  • Rookie
  • ***
  • Posts: 37
    • View Profile
Question about plant models and landscape textures
« on: February 04, 2011, 01:29:44 pm »
I've noticed there doesn't seem to be much in the way of shrubbery in this game, and as any fan of monty python fan can attest, shrubbery is of critical importance ;)   

 When I was modding fallout 3 I did a greenworld total conversion mod that included many types of grass and shrub, generally they are made of a .png image which is mostly transparent with just the grass or shrub visible, that image is then placed upright  by attaching it to an invisible model in a star or cross shape, so that the grass is visible from multiple angles.  Am I right in thinking this should be possible to implement similarly in UFO:AI? I seem to remember hearing that line of sight through shrubs hadn't been worked out yet, is that all thats keeping us from making shrubs? Is it possible to make objects walk-through-able?  If so, would you guys like me to work on some grass profile images?  Or should I start coding up the shrub line of sight fix?

 Secondly, I note that the line work for roads is implemented as secondary texture layers, can those texture layers be the size of multiple tiles?  Could I, for instance, make a pile of leaves or trash which sat as an extra texture layer over a 4x4 grid?  I ask because I seem to spend a lot of time zoomed out in game, and at that angle the grass tiling is very noticable, if I created a series of large secondary texture layers to break up the monotany of tiling, how likely are they to be implemented? Too hard?  Too unwieldy?   The same kind of thing could be applied to large concreted areas, with a cracked or dirty overlay, would map makers use them if I made them?

 And finally, how about terrain deformation? Can we do persistent burn marks and impact craters (texture only obviously)? It seems a bit strange how little lasting impact a volley of grenades seems to have, if its just a matter of making textures I could work on that too.

 Any pearls of wisdom?
 
 

 

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Question about plant models and landscape textures
« Reply #1 on: February 04, 2011, 02:30:31 pm »
I've noticed there doesn't seem to be much in the way of shrubbery in this game, and as any fan of monty python fan can attest, shrubbery is of critical importance ;)

We have quite a few models/prefabs, but most of these are low quality. We're always happy for more to be made and Tilli is currently polishing up the +forest RMA, so he could probably incorporate them. Load up UFORadiant and check out the prefabs to see what we've already got. Burningwell.org has a lot of really great foliage source images to use. I've had them saved on my hard drive with the intention to do something with them for ages.

When I was modding fallout 3 I did a greenworld total conversion mod that included many types of grass and shrub, generally they are made of a .png image which is mostly transparent with just the grass or shrub visible, that image is then placed upright  by attaching it to an invisible model in a star or cross shape, so that the grass is visible from multiple angles.

The main difference with UFO:AI is that the most common view is from the top, so simply having side-view of shrubbery on vertical planes doesn't work all that well. The best shrubbery we have (IMHO) is the fern2, which looks good from the top and the sides, but of course all vegetation will be different.

I seem to remember hearing that line of sight through shrubs hadn't been worked out yet, is that all thats keeping us from making shrubs? Is it possible to make objects walk-through-able?  If so, would you guys like me to work on some grass profile images?  Or should I start coding up the shrub line of sight fix?

If you can work out line of sight that will be a major milestone in the development of the battlescape. But as I understand it, it's not a simple task. Models are walk-through-able and the map maker must handle collision himself if its needed (such as for tree trunks). But of course, we could always use more vegetation models. We could also use mappers like Tilli who are taking the time to touch up the old RMAs.

Secondly, I note that the line work for roads is implemented as secondary texture layers, can those texture layers be the size of multiple tiles?  Could I, for instance, make a pile of leaves or trash which sat as an extra texture layer over a 4x4 grid?  I ask because I seem to spend a lot of time zoomed out in game, and at that angle the grass tiling is very noticable, if I created a series of large secondary texture layers to break up the monotany of tiling, how likely are they to be implemented? Too hard?  Too unwieldy?   The same kind of thing could be applied to large concreted areas, with a cracked or dirty overlay, would map makers use them if I made them?

The blending of one texture over another is done with the material system. Currently, however, you can not mix and match texture dimensions of the "base" texture and the textures that are blended over the top. That means you can't have a 512x512 grass texture that has a 1024x1024 leaves texture blended over the top. Or at least, as I understand it, if you did that the leaves would be scaled down to tile every 512x512.

Two things to note, though. 1) Many of our old grass/ground textures are small (256x256) and not of great quality. You could probably reduce the tile by making newer, hi-res textures and changing the maps. 2) There is nothing to stop you from taking a 512x512 texture, making a 1024x1024 texture out of it (via tiling) and replacing the map texture with that to then use a 1024x1024 leaves blend. You always need to keep the balance between visuals and performance in mind, but most of our maps were made long before our engine was better optimized, and they can stand some higher-res textures.

And finally, how about terrain deformation? Can we do persistent burn marks and impact craters (texture only obviously)? It seems a bit strange how little lasting impact a volley of grenades seems to have, if its just a matter of making textures I could work on that too.

Actual terrain deformation is not possible without a substantial rewrite of the engine. I don't know what is possible in terms of texture overlays, whether it would be possible to put a burn mark around the area.

Offline Frogs Friend

  • Cannon Fodder
  • **
  • Posts: 8
    • View Profile
Re: Question about plant models and landscape textures
« Reply #2 on: February 04, 2011, 06:43:54 pm »
Oh please make some more shrubbery. I've been working on and off at adding more detail to the farm RMAs, as at the moment they are very empty and possibly the cleanest and tidiest farms I've ever seen.
When trying for a temperate climate look it's pretty much limited to 1x tree (chestnut), 1x (very transparent) fir tree and a couple of slightly tropical looking bushes/grass clumps.

A bit of variety in trees, bushes and grasses would make a world of difference. As would some new grass/terrain textures; the current grass textures are a bit too bright and clean looking.

Mind you, the last game I did any mapping for had about 500 ground textures and 200+ trees and bushes, so I may have become a bit spoilt  ::)

Offline p0ss

  • Rookie
  • ***
  • Posts: 37
    • View Profile
Re: Question about plant models and landscape textures
« Reply #3 on: February 08, 2011, 06:04:02 am »
I'm working on it, here are some models I've just made:

http://opengameart.org/content/10-vines-variations-high-poly
http://opengameart.org/content/9-fern-variations
http://opengameart.org/content/7-alien-plants
http://opengameart.org/content/11-wildflowers-and-weeds-high-poly
http://opengameart.org/content/10-seaweed-variations-high-poly

I'll keep churning them out, however I have no experience with .md2s so maybe someone else could get them into a usable formate for UFO:AI

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Question about plant models and landscape textures
« Reply #4 on: February 08, 2011, 07:38:39 am »
they are a little bit too high poly ;)

you can try to import existing plants from our md2 files to see how they are modelled.

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: Question about plant models and landscape textures
« Reply #5 on: May 28, 2011, 01:50:46 pm »
A lot of shrubbery has already been added, low-res textures have been exchanged, many skins have been added to existing models, new prefabs have been built, but all of this is still WIP...

Nevertheless, vegetation situation has improved dramatically in the meantime ;)