Hello, I was asked to post a demo of a shader (my first ever) I just made. It allows for glass to be see through while being reflective at the same time with controls in the alpha for the ratio. It reacts to light on both sides like real life etc.
I also have my own code for Dynamic Depth Of Field. It adjusts depending on what you are looking at. I toned the DOF itself way down so it wouldn’t be too annoying at times.
I made my very own door script that allows you to manipulate doors in a very natural way that uses physics and simple mouse control. You click and hold the button and drag it up down/left and right. I have it set up so the controls change depending on orientation for a seamless realistic range of motion.
I also have my own smooth mouselook code at play… so when you are out in the open and not looking at those laggy windows 8^) You can see how smooth it feels… reminds me of the feel in games like crysis a little but when the framerate is above 50ish.
I added a bunch of (complex) upgrades to the click drag script for picking up objects. I made it so the objects always move with you in the proper rotational alignment and allow you to rotate objects by holding the middle mouse button and moving the mouse. You can also use that same mouse scroll up and down to move the object closer and further from you. I also coded a way where it checks if the object should be dropped…like if you walk behind a wall and back up too far before it can sort itself out and find its way back to you… it falls and you have to pick it up again. I have it set for a very generous distance as to not upset players in some cases lol. I can move it to drop as soon as you lose realistic holding distance from it of course. You can toss the object by moving the mouse right as you release it. It knows the force depending on the rate of motion in the mouse. I am going to add some extra math for this soon so you can release the left mouse button a little later than the motion and it will retain the same velocity…this will add more realism and make it easier for players. You can simply click the right mouse button while its still being held to throw it forward.
I also did up a quick little code to make the enemy take attention to anything it considers dangerous or interesting… If you pick up the crate and toss it… he will take notice 8^). I have it set up in a dynamic way and I am still working out the full depths of the AI at the moment. This is a very simple example of course.
I also have a custom FPC script that allows smoother motion ramping and adjusts values for speed and jump based on player stamina… that is diminished by running… (holding shift to run) and jumping. It regains stamina over time and regains it faster while crouched “c” button toggle. If you lose too much stamina the player breathes heavily (visually for now) and his vision is altered a little until it regains. I used to have it set up where if you are running you cant turn as quickly… this is more realistic of course… but gets annoying when testing, so I turned that function off.
I have my own flashlight. I had very nice rays of light but it was very very slow at runtime so I killed it. TAB key toggles the flashlight.
I suck at modeling so I am working on that a little. I also need to work on how to optimize meshes better.
I forget what else I happened to do for this little example deal… please just ask questions if you wondered how something is being done etc.
Here is the web Player:
Hope you like it!

