Ogre 3D - Fake Glow Effect

Advanced game related topics
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Ogre 3D - Fake Glow Effect

Post 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
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Ogre 3D - Fake Glow Effect

Post by c4s »

Your project looks pretty cool. :shock:
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: Ogre 3D - Fake Glow Effect

Post by gnasen »

looks very interesting. I wish I could model my own space ships :shock:
pb 5.11
Num3
PureBasic Expert
PureBasic Expert
Posts: 2810
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Re: Ogre 3D - Fake Glow Effect

Post 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)
User avatar
J. Baker
Addict
Addict
Posts: 2178
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Ogre 3D - Fake Glow Effect

Post 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. ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef

Mac: 10.13.6 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: Win 7 / AMD 64 4000+ / 3GB DDR / Nvidia 720GT


Even the vine knows it surroundings but the man with eyes does not.
DarkDragon
Addict
Addict
Posts: 2218
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Ogre 3D - Fake Glow Effect

Post by DarkDragon »

The first space ship looks like a futuristic weapon. :lol:
bye,
Daniel
Artus
Enthusiast
Enthusiast
Posts: 104
Joined: Wed Feb 25, 2009 10:29 pm
Location: Germany
Contact:

Re: Ogre 3D - Fake Glow Effect

Post 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]
User avatar
max_aigneraigner@web.de
User
User
Posts: 67
Joined: Sun Nov 02, 2008 10:37 pm
Location: Bavaria
Contact:

Re: Ogre 3D - Fake Glow Effect

Post by max_aigneraigner@web.de »

but nice modelling!
created with 3dsmax or blender? :D
(btw. with n3xtd the glow shader functions :) )
yours
max
3D Projects
A ship is safest in the harbor, but that is not what ships are built for.
Post Reply