Torchlight

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
Post Reply
Treon
Kobold
Posts: 37
Joined: Mon Mar 07, 2011 2:30 pm

Re: Torchlight

Post by Treon »

What modifications did you guys make to CEGUI, just currious.

ps, Torchlight 2 seems to be great!
User avatar
Beauty
OGRE Community Helper
OGRE Community Helper
Posts: 767
Joined: Wed Oct 10, 2007 2:36 pm
Location: Germany
x 39
Contact:

Re: Torchlight

Post by Beauty »

Interesting script.
Unfortunately nobody added it to the wiki and the rim.dds file was already deleted on the file hoster.

It seems so that Jacmoe re-published it here. (If anybody needs it.)
telchar wrote:
Brutal wrote:Someone mentioned this in the Ogre3D chatroom, but I was curious to know as well. What method did you use to get this outline around the enemies? Someone linked to a blog entry from the zero-gear developer about creating rimlighting without shaders, but I was hoping you guys might share :)

Image
Yup, it was me. I managed to have a similar effect with the following declaration in the material:

Code: Select all

material some/random/material/with/rim/effect
{
	technique

	{

		pass

		{

			texture_unit

			{

				texture yourtexturehere.png

			}
			//rim lighting
			texture_unit
            		{
				cubic_texture rim.dds combinedUVW
				tex_address_mode clamp
				colour_op_ex add src_texture src_current
				colour_op_multipass_fallback one one
				env_map cubic_normal
			}

		}



	}
}
You can find the rim.dds image here: http://www.2shared.com/file/9938806/fc1b8d8e/rim.html

So far I uses it to handle the selection of an actor in my game. But i would like to uses it in order to notify the player of the ennemy's life. So i would like the effect to go from a green value to a red value for example. If someone comes up with an idea to do that, please feel free to share it with me :p
I'm afraid i'll have to mess with cg scripts, still.
Help to add information to the wiki. Also tiny edits will let it grow ... :idea:
Add your country to your profile ... it's interesting to know from where of the world you are.
User avatar
Beauty
OGRE Community Helper
OGRE Community Helper
Posts: 767
Joined: Wed Oct 10, 2007 2:36 pm
Location: Germany
x 39
Contact:

Re: Torchlight

Post by Beauty »

Well, I took some time now to add it to the wiki.
Otherwise there is a high chance that it get lost in the depth of the forum and nobody can find it quickly.

Wiki page: Create outline around a character
Help to add information to the wiki. Also tiny edits will let it grow ... :idea:
Add your country to your profile ... it's interesting to know from where of the world you are.
Treon
Kobold
Posts: 37
Joined: Mon Mar 07, 2011 2:30 pm

Re: Torchlight

Post by Treon »

Great job Beauty, useful.
Last edited by Treon on Wed Aug 29, 2012 10:50 pm, edited 1 time in total.
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: Torchlight

Post by Mind Calamity »

Thanks, Beauty! That's an amazingly easy way to do it.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
Post Reply