The Trinity Rendering Engine is made by Andrew Lucas, which contains a lot more features, which are even included in Valve's powerful "Source" Engine. Trinity Render is now being wisely used in most of the mods.

Report article RSS Feed Projective shadows

A trick using projective shadows in trinity render to produce a good looking shadows

Posted by RedFog on Aug 1st, 2012
Basic Level Design/Theory.

You know that trinity supports projective shadows, right? Now, I will use that feature to make a good looking shadows in a map, especially, this trick is useful in making good shadows in a cutscene.

First, make a new map. As for me, I just made a small simple room and a grate dividing two places. Behind the grate, put the light entity and info_player_start entity. Select the grate, press tie to entity and select func_wall and set render mode to solid and fx amount to 255, so, that the blue parts will be transparent and will form projective shadows. Next, between the grate and info_player_start, make a wall with aatrigger texture, select it, press tie to entity and select trigger_once. Also, under the info_player_start, place item_suit, to be able to use flashlight.

On the other side of the grate, just put something you like, such as monsters, crates or doors, to see the shadows working on that surfaces. As for me, I placed monster_zombie and monster_human_grunt to see how shadows work during their fight. So, lets see, if you just compile the map now, you will get only stuck behind the grate and nothing more. So, let's do the final step.

On the side, where you place crates or monsters, place info_target and trigger_camera, add names to those. As for me, I set the name of info_target to tar1 and trigger_camera to cam1. Then, set the target field from trigger_camera to the name of info_target, like as for me, the target is tar1.

Finally, select trigger_once and in the target field, type the name of the trigger_camera, so, as for me, target is cam1. Then, compile the map and when you are in game, before you go forward, turn on flashlight and go forward and watch the hd video of shadows.

Finished process:

Note: if you want to see the shadows smaller like in my images, you have to go backward after turning on flashlight and moving forward.
Note: if you want to see the camera everytime you move forward, place trigger_multiple instead of trigger_once.

That's all you need to know about this tutorial.

Best regards
RedFog

Post comment Comments
EugenefromZPS
EugenefromZPS Oct 12 2012, 9:45am says:

COOL I LOVE IT

+1 vote     reply to comment
RedFog Author
RedFog May 13 2013, 8:45am replied:

Thanks, dude. I hope this is useful.

+1 vote   reply to comment
openmaw
openmaw Nov 21 2013, 3:16pm says:

Is there anyway to make use of this without the flashlight? IE Dropping an entity into the map?

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Half-Life Icon
Platform
Windows
Game
Half-Life
Developed By
RedFog
Contact
Send Message
Release Date
Released May 8, 2009
Mod Watch
Track this mod
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Mods
Trinity Render: Custom Edition (Half-Life)
Trinity Render: Custom Edition Half-Life - Single & Multiplayer First Person Shooter
Related Games
Half-Life
Half-Life Single & Multiplayer First Person Shooter