Little glass and refraction effect (Fake)

Blitz3D Forums/Blitz3D Programming/Little glass and refraction effect (Fake)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks guys :) but i'm not really the creator of this effect :)

look this very nice code :

http://www.blitzbasic.com/codearcs/codearcs.php?code=578

I have modify a little bit the norc code :) enjoy :)

The fake refraction effect is very easy to add :)

PointEntity F\Camera,F\EntityIn
PositionEntity F\Camera,EntityX(F\EntityIn,1),EntityY(F\EntityIn,1),EntityZ(F\EntityIn,1),1

Add this line ;
RotateEntity F\Camera,-EntityPitch(F\EntityIn,1),-EntityYaw(F\EntityIn,1),EntityRoll(F\EntityIn,1),1