Glow Tutorials

From CortexWiki

Jump to: navigation, search

Glows, in CC, are a post processing effect that the engine will automatically apply to three certain colours. These are the three colours that glows are applied to; Image:GLOWCOLORS.PNG‎.

Glows can also be added as an attachment, these are very different from the above mention glows. They can any shape and size, however they must be on a black background. Here is an example:

Image:YellowHuge.PNG‎

The above Image is a ".png" file, but CC only accepts ".bmp" images, also note that the image is 24bit, so is not limited to the CC palette. To add this to an attachable you can simply add this code:

	ScreenEffect = ContentFile
		FilePath = Base.rte/Effects/Glows/YellowHuge.bmp

Here is an example of it in use:

AddEffect = Attachable
	InstanceName = Muzzle Flash Pistol
	Mass = 0.0001
	HitsMOs = 0
	GetsHitByMOs = 0
	SpriteFile = ContentFile
		FilePath = Base.rte/Effects/Pyro/MuzzleFlash02.bmp
	FrameCount = 3
	SpriteOffset = Vector
		X = -2
		Y = -6
	AtomGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Air
		Resolution = 2
		Depth = 100
	DeepGroup = AtomGroup
		AutoGenerate = 1
		Material = Material
			CopyOf = Air
		Resolution = 3
		Depth = 100
	DeepCheck = 0
	JointStrength = 10000
	JointStiffness = 1
	ScreenEffect = ContentFile
		FilePath = Base.rte/Effects/Glows/YellowSmall.bmp
	DrawAfterParent = 0

I hope this guide has helped you gain a better understanding of glows.

Personal tools