Results 1 to 7 of 7
  1. #1

    Need help with Glass in BGE

    Ok this is with cycles render and pretty much what I want my chess pieces to look likechessboard2.jpgchess-game.jpgthis is what I keep coming up with I think its a reflection problem but might be wrong can someone help me every time I look at a glass tutorial its more of a transparent look and doesn't work to good with these chess pieces I appreciate any help anyone can offer



  2. #2
    Member JustinBarrett's Avatar
    Join Date
    Jul 2009
    Location
    Trier(near), Germany
    Posts
    1,886
    in upbge you can use an inverse reflection to achieve this relatively easily..if you are using upbge here is a pretty easy tutorial.

    in BGE you will probably need to do some witchcraft I use a texture overlay and set the mapping type to reflection. It generally respects bump and overall shape of the geometry.

    under texture tab > add a texture that resembles your back ground(I shrink and blur them) > under mapping click the button next to coordinates > select 'reflection'

    there are many other ways to do this...this is just the way I am doing it atm. because it is fast, looks ok(not great) and gets the job done.
    "The crows seem to be calling my name." Thought Kaw.
    Project Valiant



  3. #3
    Member sdfgeoff's Avatar
    Join Date
    May 2010
    Location
    Where the best chocolate comes from
    Posts
    4,973
    Glass is a very hard material from a rasterizing point of view, and to my knowledge, there is no good simulation of it in real-time yet. Typically the approach is to sample the image-on-screen based on the reflected surface normals.

    Anyway, here are some materials that use a spheremap to fake reflection. They're not the best, but they are better than just turning down the opacity.
    materials.png


    Blend File:
    Reflect.blend
    "Someone applied a roof texture to that wall" - martinsh

    Website: www.sdfgeoff.space



  4. #4
    Originally Posted by Slithre View Post
    Ok this is with cycles render and pretty much what I want my chess pieces to look likechessboard2.jpgchess-game.jpgthis is what I keep coming up with I think its a reflection problem but might be wrong can someone help me every time I look at a glass tutorial its more of a transparent look and doesn't work to good with these chess pieces I appreciate any help anyone can offer
    Not sure but I think this is what you're looking for: Refraction.blend

    Here's the reference: https://www.youtube.com/watch?v=jvfvCURIcT4. Credits to koala_boy166 and the script maker. I just unwrapped the mesh and experimented with material settings to produce a more refractive look.

    You might have to play with the way you unwrap your chess pieces/other methods to get your desired look. You should also set the mapping coordinates to 'Reflection' for the refractive texture
    Last edited by Mirror|rorriM; 12-Aug-17 at 19:37.



  5. #5
    Member
    Join Date
    Nov 2013
    Location
    Denmark
    Posts
    116
    you could fake it using a matcap.



  6. #6
    Thank you everyone I will start testing it out and get back to you guys



  7. #7
    Member JustinBarrett's Avatar
    Join Date
    Jul 2009
    Location
    Trier(near), Germany
    Posts
    1,886
    second thought a really cheap way is alpha shader + bump map + reflection map(same as I said before) but adding just a little bump mapping very subtly really sells it. and it is cheap on rendering....well cheaper than real refractions/reflections
    "The crows seem to be calling my name." Thought Kaw.
    Project Valiant



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •