Terrains, Masks and blends

RanBK

21-12-2007 16:11:34

I have been playing around with oFusion for the last few days. I'm having a little difficultly exporting a terrain with blended textures.

The setup is simple:

1. A single plane displaced by a heightmap (256x256 .bmp)
2. A two texture blend created with a mask (a second heightmap).

It renders correctly in Max, but when imported into Ogre, the blending is lost.

I attempted to use an oFusion material and whilst I can get the blend itself to work, it is not mapped to the terrain using the mask. The end result is the blended texture appears on one side of the terrain. Even a UVW map does not assist.

So, as far as I can tell, either oFusion or Ogre does not recognise heightmaps used as Masks.

Any solutions to this?

Evak

21-12-2007 16:48:06

Are you using the ofusion material and using the correct alpha blend modes? Realtime materials and pre rendered materials work completely differently.

I'm pretty sure this has been brought up in another thread but can't seem to find it at the moment. On the Ogre wiki theres a simple tutorial for doing what you want.

http://www.ogre3d.org/wiki/index.php/Materials

scroll down to Simple texture transition section.

Duplicating this with the ofusion material is easy.

RanBK

22-12-2007 16:14:12

Thanks for the link. I was able to export the terrain and setup the material file by hand.

It worked perfectly.

I have a few questions:

1. How can I setup an oFusion material to match the material file? (I would like to export directly from Max)
2. Is it possible to add a third or fourth blend?
3. Is there a maximum number of blends?

PDX

04-03-2008 06:14:58


1. How can I setup an oFusion material to match the material file? (I would like to export directly from Max)


Hear hear! I'd love to know that also. I assume it's probably easy (with a little trial and error), but knowing where to start is always nice.

Lioric

04-03-2008 15:38:59

Do you want to know how to setup that blend material or how to setup any material from a script file?

PDX

04-03-2008 20:39:09

Hi Lioric,

I'd like to know how to do the "Simple Texture Transition" seen here:

http://www.ogre3d.org/wiki/index.php/Ma ... transition

but do it within an oFusion material, inside Max.

In addition, I wouldn't mind knowing the answer to RanBK's second question:

2. Is it possible to add a third or fourth blend?

Thanks!