It is currently Fri Jun 22, 2018 12:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Ogre 3D - Fake Glow Effect
PostPosted: Sat Apr 23, 2011 9:37 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:51 pm
Posts: 2808
Location: Portugal, Lisbon
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:
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

_________________
Software: http://xipa.org
Elevator Maintenance: http://central-elevadores.pt
Good web hosting!


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sat Apr 23, 2011 1:27 pm 
Offline
Addict
Addict

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


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sat Apr 23, 2011 4:19 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Sep 24, 2008 12:21 am
Posts: 279
looks very interesting. I wish I could model my own space ships :shock:

_________________
pb 5.11


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sat Apr 23, 2011 6:50 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:51 pm
Posts: 2808
Location: Portugal, Lisbon
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)

_________________
Software: http://xipa.org
Elevator Maintenance: http://central-elevadores.pt
Good web hosting!


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sat Apr 23, 2011 8:27 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1978
Location: USA
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.9.5 / 1.4GHz Core 2 Duo / 2GB DDR3 / Nvidia 320M
PC: XP SP3 / AMD 64 4000+ / 1GB DDR / ATI 9250


Even the vine knows it surroundings but the man with eyes does not.


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sun Apr 24, 2011 8:35 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 02, 2003 9:16 am
Posts: 2062
Location: Germany
The first space ship looks like a futuristic weapon. :lol:

_________________
bye,
Daniel


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sun Apr 24, 2011 1:26 pm 
Offline
User
User
User avatar

Joined: Wed Feb 25, 2009 10:29 pm
Posts: 89
Location: Germany
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]


Top
 Profile  
Reply with quote  
 Post subject: Re: Ogre 3D - Fake Glow Effect
PostPosted: Sun Apr 24, 2011 8:56 pm 
Offline
User
User
User avatar

Joined: Sun Nov 02, 2008 10:37 pm
Posts: 67
Location: Bavaria
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye