Author Topic: Question regarding canopy glass  (Read 3635 times)

0 Members and 1 Guest are viewing this topic.

Offline Nighteyes

  • 211
Question regarding canopy glass
Is it possible to texture the glass with a semi transparent map? so I could add some small specks of dust and scratches here and there...
also, is there a way to make the reflections have a fresnel effect? so whats in front of you has almost no reflections, and the more it gets to the sides the reflections intensify(like real glass)?

 

Offline Kobrar44

  • On Suspended Sentence
  • 29
  • Let me tilerape it for you!
    • Steam
Re: Question regarding canopy glass
1st is possible and done all the time in most recent mods. The seconds may be already done by the engine, and if not, you can fake it by shinemap. Alpha channel is responsible for env mapping and higher  alpha on the sides is more reflections there. Won't work if you turn the camera.
Oh guys, use that [ url ][ img ][ /img ][ /url ] :/

 

Offline Nighteyes

  • 211
Re: Question regarding canopy glass
from what I could see, most mods don't have a modeled cockpit view, the ones that do have, don't have glass...
I know it could be faked, but the whole point of a modeled cockpit is so you can move the camera around

 

Offline pecenipicek

  • Roast Chicken
  • 211
  • Powered by copious amounts of coffee and nicotine
    • Skype
    • Steam
    • Twitter
    • PeceniPicek's own deviantart page
Re: Question regarding canopy glass
from what I could see, most mods don't have a modeled cockpit view, the ones that do have, don't have glass...
I know it could be faked, but the whole point of a modeled cockpit is so you can move the camera around
Feel free to write a fresnel reflection shader then. the reason the glass isnt in the cockpits themselves internally is because it tends to obscure vision like mad. and heaven help you if you tint it :p
Skype: vrganjko
Ho, ho, ho, to the bottle I go
to heal my heart and drown my woe!
Rain may fall and wind may blow,
and many miles be still to go,
but under a tall tree I will lie!

The Apocalypse Project needs YOU! - recruiting info thread.

 
Re: Question regarding canopy glass
I tried the reflections once... it didn't work, you got the skybox reflecting rather than the cockpit.
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 
Re: Question regarding canopy glass
This is a good question, since I've seen the cockpits of various fighters in BP for instance I felt bothered that the glass around the cockpit was invisible so it felt like there was nothing protecting me from damage or the vacuum of space. Hope something can be done to fix that.
I'm all about getting the most out of games, so whenever I discover something very strange or push the limits, I upload them here:

http://www.youtube.com/user/JCDentonCZ

-----------------

The End of History has come and gone.

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Re: Question regarding canopy glass
I tried the reflections once... it didn't work, you got the skybox reflecting rather than the cockpit.
Bake an environment map for the cockpit glass and set it up using a shader or script?

To be fair, I have no idea how to do that.
----
My Bandcamp | Discord: Kopachris | My GitHub

 

Offline pecenipicek

  • Roast Chicken
  • 211
  • Powered by copious amounts of coffee and nicotine
    • Skype
    • Steam
    • Twitter
    • PeceniPicek's own deviantart page
Re: Question regarding canopy glass
I tried the reflections once... it didn't work, you got the skybox reflecting rather than the cockpit.
Bake an environment map for the cockpit glass and set it up using a shader or script?

To be fair, I have no idea how to do that.
the envmap defines how much of the skybox reflects on which piece of geometry. the envmap is also conveniently located in the alpha channel of the specmap. so you have 256 values per pixel (since its a single channel) and it defines intensity of the reflected skybox.

So, "baking an envmap" is a silly thing to say. one interesting thing that could be done via shaders is diffusing the envmap a bit.

which leads us straight back here


As a side note, on the general topic of cockpit glass, i believe that you want a 99% transparent glass with specular highlights. which basically means 245-250 in the diffuse's alpha map. or 10-15, depending which end is more transparent. also, tons of polys (well, tons. you want the highlights to move smoothly over em, right?) on the glass is a must if you want it to look decent.
Skype: vrganjko
Ho, ho, ho, to the bottle I go
to heal my heart and drown my woe!
Rain may fall and wind may blow,
and many miles be still to go,
but under a tall tree I will lie!

The Apocalypse Project needs YOU! - recruiting info thread.

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Question regarding canopy glass
if you are using the alpha channel on the diffuse, be sure to call it NAME-trans. (shine would be NAME-trans-shine)
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Kopachris

  • 28
  • send penguins
    • Steam
    • Twitter
Re: Question regarding canopy glass
I tried the reflections once... it didn't work, you got the skybox reflecting rather than the cockpit.
Bake an environment map for the cockpit glass and set it up using a shader or script?

To be fair, I have no idea how to do that.
the envmap defines how much of the skybox reflects on which piece of geometry. the envmap is also conveniently located in the alpha channel of the specmap. so you have 256 values per pixel (since its a single channel) and it defines intensity of the reflected skybox.

So, "baking an envmap" is a silly thing to say. one interesting thing that could be done via shaders is diffusing the envmap a bit.

which leads us straight back here
The skybox is the environment map (it's a cube-shaped map of the environment).  What I meant by baking an environment map is (as it's described in the link) generating a cube map of the cockpit.  The alpha channel of the shine map isn't an environment map, but maps how intensely the environment map should show (it's an environment map map, or a reflectivity map--they just call it an environment map for convenience).  I guess the current engine doesn't have the ability to use a different environment map on different objects, though.
----
My Bandcamp | Discord: Kopachris | My GitHub

 

Offline Nighteyes

  • 211
Re: Question regarding canopy glass
well, I saw a new(it might have always been there) button in the background editor, named "Environment Map", meaning I assume that I can add my own reflection map to be used instead of the background...
if so, we can use it as a blurry generic starfield, combined with very faint reflections on the cockpit glass... could look decent no? until we get a fresnel reflections glass shader that is :P

 
Re: Question regarding canopy glass
Problem is, that reflection would also appear on other ship's surfaces too. It'll appear everywhere.
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Nighteyes

  • 211
Re: Question regarding canopy glass
Won't it just appear on ships that their shine map has an alpha channel as well?

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Question regarding canopy glass
If you are using the mediavps, that's just about every ship.

It's generally considered good practice for shine maps to include the alpha channel for env mapping... So most modellers and texturers do it.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Nighteyes

  • 211
Re: Question regarding canopy glass
yes but usually its a very dark alpha so the reflections won't be strong... but I can see the problem here, so the solution would be to create a blurred environment map for every skybox you have, seems kind of hackish :)

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: Question regarding canopy glass
It's generally considered good practice for shine maps to include the alpha channel for env mapping... So most modellers and texturers do it.

And when they don't, you get super shiny glass ships like the Triton used to be. :p
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

  

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Question regarding canopy glass
It's generally considered good practice for shine maps to include the alpha channel for env mapping... So most modellers and texturers do it.

And when they don't, you get super shiny glass ships like the Triton used to be. :p

Indeed.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.