black shiny and chrome surfaces - how to?

Started by Achim, February 25, 2009, 08:45:05 AM

Previous topic - Next topic

Achim

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

EgonOlsen

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...

Achim

thanks for the pointer to your code, that helped (I forgot to load a proper texture)

EgonOlsen

For faked shinyness, something like this works best:

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