www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Achim on February 25, 2009, 08:45:05 am

Title: black shiny and chrome surfaces - how to?
Post by: Achim 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
Title: Re: black shiny and chrome surfaces - how to?
Post by: EgonOlsen 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...
Title: Re: black shiny and chrome surfaces - how to?
Post by: Achim on February 26, 2009, 09:09:42 am
thanks for the pointer to your code, that helped (I forgot to load a proper texture)
Title: Re: black shiny and chrome surfaces - how to?
Post by: EgonOlsen on February 26, 2009, 03:35:56 pm
For faked shinyness, something like this works best:
(http://freespace.virgin.net/hugo.elias/graphics/shademap.gif)
For chrome like effects, the texture used in the fps-example is nice.