Author Topic: black shiny and chrome surfaces - how to?  (Read 3819 times)

Offline Achim

  • byte
  • *
  • Posts: 26
    • View Profile
black shiny and chrome surfaces - how to?
« on: February 25, 2009, 08:45:05 am »
Hello,
I am trying to get curved surfaces appear reflective (as far as it's possible in jPCT, anyway).
For a essentially black texture I was not able to achieve any highlights from point a light source, and also could not get a chrome effect.
I tried specular reflections and environment mapping, but could not see any differences when switching these settings on or off  >:(
Any ideas what I am doing wrong?
Achim

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: black shiny and chrome surfaces - how to?
« Reply #1 on: February 25, 2009, 09:02:59 am »
Specular is questionable...it may work fine, but most of the time, it isn't worth it. Environment mapping is the way to go for chrome or faked phong shading effects. I don't know why it didn't work out for you, but the fps example is using it for the weapon for example. Maybe that helps...

Offline Achim

  • byte
  • *
  • Posts: 26
    • View Profile
Re: black shiny and chrome surfaces - how to?
« Reply #2 on: February 26, 2009, 09:09:42 am »
thanks for the pointer to your code, that helped (I forgot to load a proper texture)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: black shiny and chrome surfaces - how to?
« Reply #3 on: February 26, 2009, 03:35:56 pm »
For faked shinyness, something like this works best:

For chrome like effects, the texture used in the fps-example is nice.