Page 1 of 1

Ogre 3D - Fake Glow Effect

Posted: Sat Apr 23, 2011 9:37 am
by Num3
Since i was unable to use the shader posted here : http://www.ogre3d.org/tikiwiki/Glow&structure=Cookbook

I devised a way to make the same thing using only textures, it's pretty decent and it will work on all video boards!
(This was hacked in 5 minutes, so don't expect any fancy art work, it's just proof of concept)


Image
Uploaded with ImageShack.us

The trick is this, use a 2nd texture in black with the glow lights (notice the 'glow' is painted in 2d on this 2nd texture):

Image

Then in purebasic just use this code:

Code: Select all

CreateMaterial(0,LoadTexture(0,"tuga3.dds"))
AddMaterialLayer(0,LoadTexture(0,"tuga3_glow.png"),#PB_Material_Add|#PB_Material_Modulate)
MaterialFilteringMode(0,#PB_Material_Trilinear)
The result:

Image

Image

Re: Ogre 3D - Fake Glow Effect

Posted: Sat Apr 23, 2011 1:27 pm
by c4s
Your project looks pretty cool. :shock:

Re: Ogre 3D - Fake Glow Effect

Posted: Sat Apr 23, 2011 4:19 pm
by gnasen
looks very interesting. I wish I could model my own space ships :shock:

Re: Ogre 3D - Fake Glow Effect

Posted: Sat Apr 23, 2011 6:50 pm
by Num3
gnasen wrote:looks very interesting. I wish I could model my own space ships :shock:
So would I...

The ships are borrowed from a game i own. (Star Wolves 3)

Re: Ogre 3D - Fake Glow Effect

Posted: Sat Apr 23, 2011 8:27 pm
by J. Baker
Num3 wrote:
gnasen wrote:looks very interesting. I wish I could model my own space ships :shock:
So would I...

The ships are borrowed from a game i own. (Star Wolves 3)
Num3, I made you your own ship. Although you will need to texture it. Check your PM. ;)

Re: Ogre 3D - Fake Glow Effect

Posted: Sun Apr 24, 2011 8:35 am
by DarkDragon
The first space ship looks like a futuristic weapon. :lol:

Re: Ogre 3D - Fake Glow Effect

Posted: Sun Apr 24, 2011 1:26 pm
by Artus
Hio,

Mhh ya its realy fake, i would say, its only texture blending, or the picture is only bad.
If it's realy only texture blending i can't call it glow effect.

MfG Arthur [UB]

Re: Ogre 3D - Fake Glow Effect

Posted: Sun Apr 24, 2011 8:56 pm
by max_aigneraigner@web.de
but nice modelling!
created with 3dsmax or blender? :D
(btw. with n3xtd the glow shader functions :) )
yours
max