[Solved kind of] Sun Glare
[Solved kind of] Sun Glare
How would I go about producing sun glare? You would be flying around in 3D space so the sun's location wouldn't always be in the same location like it is in some land based games. I am guessing you would use billboards with a alpha texture but how about the location problem? Thanks for any help you can provide!
Edit: I found a lens flare scene node however I am having problems getting it to work.
Edit: I found a lens flare scene node however I am having problems getting it to work.
Last edited by empirepro on Fri Jul 18, 2008 11:48 am, edited 1 time in total.
sun glare as in a lens flare? or a halo around the sun?
someone did a lens flare scene node before so you can probably search for it, i don't know if source was provided but they may have explained it.
a halo would be done with a glow shader perhaps.
what do you mean about the location problem? what is the problem, can you explain a bit better?
someone did a lens flare scene node before so you can probably search for it, i don't know if source was provided but they may have explained it.
a halo would be done with a glow shader perhaps.
what do you mean about the location problem? what is the problem, can you explain a bit better?
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
That technique is commonly (by which I mean always) called "lens flare". Here's your free search result; if that doesn't do what you want, then the search function will provide alternatives.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Oh, you've already found it. It's customary to re-title your posts with [solved] once you've figured something out, so that people don't waste their time helping you. It's not a bottomless well.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
I just fixed up LensFlareSceneNode for irrlicht 1.4.1 and put it in a zip to make it easier to use. Copy it to your code and read readme.txt
You can download the camera flare for irrlicht here (ZIP, 11.4 KB)
You can download the camera flare for irrlicht here (ZIP, 11.4 KB)
-
- Competition winner
- Posts: 189
- Joined: Tue Oct 16, 2007 3:53 am
- Location: Indonesia
- Contact:
You're right pera.
However, it depends if your game is in first person perspective. If the character is looking using eyes, you shouldn't use camera flare. There are exceptions, such as air craft simulators where sun blindness is a real factor. It can be used as a tactic and thus is a feature, not an annoying piece of eye candy.
If the game is a third person you would expect there to be a camera. Mario 64 took this one step further by actually having a character floating on a cloud with a camera, so flare would be expected
But when it all boils down to it, you really need to ask yourself does camera flare do my game any good?. If it enhances the theme (ie, outside in the wilderness, sun flare would be a great spit shine) or in the middle of a smoggy Chernobyl reactor where there's too many clouds.
However, it depends if your game is in first person perspective. If the character is looking using eyes, you shouldn't use camera flare. There are exceptions, such as air craft simulators where sun blindness is a real factor. It can be used as a tactic and thus is a feature, not an annoying piece of eye candy.
If the game is a third person you would expect there to be a camera. Mario 64 took this one step further by actually having a character floating on a cloud with a camera, so flare would be expected
But when it all boils down to it, you really need to ask yourself does camera flare do my game any good?. If it enhances the theme (ie, outside in the wilderness, sun flare would be a great spit shine) or in the middle of a smoggy Chernobyl reactor where there's too many clouds.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Remember that every AAA FPS has to feature a protagonist who is a space ninja vampire cyborg pirate marine, and who therefore has built-in optics capable of experiencing lens flare.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way