Make a mirror properly

Posted By: CyberGhost

Make a mirror properly - 07/21/14 18:36

Hi, guys

I want to make a mirror. I made a 24-bit .bmp fully-white sprite ,then attached material 'mtl_mirrorFloor' (in mtlFX.c) to it and that's what I sadly got:






Also, I tried that with a model, but the model just stood there without any reflection


So, I would be grateful if any of you guys could tell me how I can make a mirror properly


Thank you and any help will be appreciated
Posted By: Ch40zzC0d3r

Re: Make a mirror properly - 07/21/14 19:32

Just draw a camera bitmap on the entity-skin laugh
Posted By: Reconnoiter

Re: Make a mirror properly - 07/21/14 19:34

Hi,

I have personally no experience with this, but from what I have found in a minute:

A 'fake' simple way -> http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=329466

Using a shader -> http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=432609

edit; ninja'd
Posted By: CyberGhost

Re: Make a mirror properly - 07/21/14 21:29

Ok, gonna check that. Looks like it's not an easy one laugh
Posted By: CyberGhost

Re: Make a mirror properly - 07/22/14 19:33

Ok. Some ideas would require to use the 'MIRROR' flag. Actually, where is it? I know the manual said something like it was FLAG8 in WED 4 ,but I have nearly the latest version of 3DGS. Also, I can't set FLAG8 for a single face of a block.
Posted By: Reconnoiter

Re: Make a mirror properly - 07/22/14 19:39

have you tried environment mapping? or Ch40zzC0d3r's idea?
Posted By: CyberGhost

Re: Make a mirror properly - 07/22/14 20:05

Ch40zzC0d3r's idea:

I thought about it ,but it won't work. If you went to a direction in the real world ,you will go to the same direction in the mirror no matter you set CULL_CW for the view or not

environment mapping:

Actually, I don't have very good experience with shaders grin . I used the floor reflection ,but it didn't work. I am sure there is something missing.
© 2024 lite-C Forums