Author Topic: What Does Env Mapping Do Anyway?  (Read 3528 times)

0 Members and 1 Guest are viewing this topic.

Offline Retsof

  • 210
  • Sanity is over-rated.
What Does Env Mapping Do Anyway?
See Title.
:::PROUD VASUDAN RIGHTS SUPPORTER:::

"Get off my forum" -General Battuta
I can't help but hear a shotgun cocking with this.

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: What Does Env Mapping Do Anyway?
Shiny?
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline Topgun

  • 210
Re: What Does Env Mapping Do Anyway?
no, mirror.

 

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
Re: What Does Env Mapping Do Anyway?
Mirror is shiny.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: What Does Env Mapping Do Anyway?
Go to shipslab (F3) and look closely to Ulysses cockpit with and without env. Should be clear.

 

Offline Topgun

  • 210
Re: What Does Env Mapping Do Anyway?
Mirror is shiny.
spec is shiny.
metal is shiny, it has spec. glass is shiny, it has mirror and spec.
we speak cavemen. cavemen good wolf.

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: What Does Env Mapping Do Anyway?
In a nutshell:

Environmental mapping makes ship's surface reflect the environment (background textures) in addition to light sources (specular reflections).

The intensity, or strength of the environmental reflection from a surface will depend on the shinemap on two possible levels.

First, if the shinemap does not have an alpha channel, env mapping uses the RGB intensity of the shinemap for the intensity of environmental reflections..

Second, if the shinemap has an alpha channel, that will be used as instead to determine the intensity of the reflection, while RGB takes care of the intensity and colour of light source reflections (specular lighting). Fully black alpha channel means that the area does not reflect the environment at all, while white alpha channel means full intensity reflection, making a mirror-like effect. Of course, usually alpha channel is used to manage transparency in image editing, so actually making the alpha channel like FS2_Open likes it will mean you will need to first make the shinemap and test it with no env mapping enabled, then apply a proper alpha mask to it and save it with the alpha channel to make properly managed environmental reflections for the ship.

Alpha env mapping is significantly better way to deal with envmapping than simple RGB intensity, (though not ideal) since it gives an opportunity to have parts like glass and chromed parts reflect the full environmental reflection (or at least high intensity reflection, depending on what looks good...) while parts like non-polished metal will retain specular reflection, but have much lower intensity or no environmental reflection at all.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 
Re: What Does Env Mapping Do Anyway?
Alpha env mapping is significantly better way to deal with envmapping than simple RGB intensity, (though not ideal) since it gives an opportunity to have parts like glass and chromed parts reflect the full environmental reflection (or at least high intensity reflection, depending on what looks good...) while parts like non-polished metal will retain specular reflection, but have much lower intensity or no environmental reflection at all.

Which you can clearly see on the triton, who's hull is made of polished daimond.

 

Offline Vasudan Admiral

  • Member
  • Moderator
  • 211
    • Twisted Infinities
Re: What Does Env Mapping Do Anyway?
You realise that particular mirrorsyndrome case has been fixed about 5 times by 5 different people? :p The triton in the beta VPs is mirror free.
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline Retsof

  • 210
  • Sanity is over-rated.
Re: What Does Env Mapping Do Anyway?
But it dosen't reflect the environment, It just make that generic nebula reflection brighter.
:::PROUD VASUDAN RIGHTS SUPPORTER:::

"Get off my forum" -General Battuta
I can't help but hear a shotgun cocking with this.

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: What Does Env Mapping Do Anyway?
But it dosen't reflect the environment, It just make that generic nebula reflection brighter.

It reflects the background, which includes the skybox (usually starfield.pof) and any nebulae/planets that are there too.