Home Technical Talk

faking diamond/gem reflections

polycounter lvl 14
Offline / Send Message
ablaine polycounter lvl 14
Hey all,

What would be the best way to fake gem-like reflections for a low poly game mesh where I don't have the ability to use a custom shader for it? Is there any way you can think of to do something clever with the diff/normals/spec to achieve that look?

I want to add some gems/trinkets to a character I'm working on but I'm having trouble figuring out how to really achieve those gem-like reflections. Thanks!

Replies

  • Ace-Angel
    Options
    Offline / Send Message
    Ace-Angel polycounter lvl 12
    How limited are we talking about? As in only using the standard Max renderer type restriction?

    Setting up a fake cubemap into your Spec color map could help in theory, but if you could expand on how limited you are, and what kind of diamond/gems you're trying to achieve as reference, we can help you better. Also, can you add planes to the mesh? Some foggy LooAt camera planes will add alot.

    However, for now, fake cubemap in Spec, some planes facing towards the camera around the diamond to fake 'twinkle' effect, and some opacity around the 'flatter' faces as opposed to the edged which won't have any opacity (or vice versa pending on material you try to achieve) to fake transulency.
  • ablaine
    Options
    Offline / Send Message
    ablaine polycounter lvl 14
    Incredibly limited.. Diffuse/spec intensity/spec color/normals. And opacity.

    Can you expand on how to go about faking the cube map?

    And the gems I'm looking to imitate would be like sapphire, ruby, aquamarine, etc.

    Also, I could add planes to the mesh, I don't know how to make them "lookat camera" planes though. :/
  • ablaine
    Options
    Offline / Send Message
    ablaine polycounter lvl 14
    Gems

    Something like that. Just some very simple gems, no specific cuts or shapes.
  • Ace-Angel
    Options
    Offline / Send Message
    Ace-Angel polycounter lvl 12
    Most of the heavy lifting looks like it will need to be done with the geometry and normals map on extreme values, I'm not sure, but maybe you can get something fancy if you full invert your normal map and apply that, but it could work or not work, especially if opacity is involved. Try it.

    Hmm, as for Spec Color,, you could take a map which belongs to your enviroment (or something close to it in hue, turbulance, etc) and put it in your Spec Color. I suggest warping the enviromental map on your model (In 3ds Max, you can use Render to Texture or Bake to Texture to warp a map without seams around your mesh, and export that map to use it as you spec color). Tint it with your gems color on lighter levels.

    Spec Level and Gloss will need to work together, just add some Spec scratches in the level to add faint details to it and break the montonity, and Gloss needs to dependant on faces, leaving it one tone, but if you don't have access to gloss, playing around enough with the Spec Level should get you what you want.

    Camera planes, it depends, what software are you using? Also, are double sided materials accepted?
  • Snader
    Options
    Offline / Send Message
    Snader polycounter lvl 15
    It also depends on the amount of geo you're allowed to use, and render size. Are we looking at 1000 triangles or 10.000? And how many/bow big will the gems be in relation to the char. I take it you're not at liberty to post concept art, but a description should be okay (ask first, though).
  • Vailias
    Options
    Offline / Send Message
    Vailias polycounter lvl 18
    What platform is your target. With a cube map you could do a lot even without a fancy shader.
  • r_fletch_r
    Options
    Offline / Send Message
    r_fletch_r polycounter lvl 9
    Has anyone done this nicely in realtime? How do folks approach the refraction
Sign In or Register to comment.