Results 1 to 7 of 7

Thread: DirectX Lens Flares and Coronas

  1. #1

    Thread Starter
    Hyperactive Member Warmaster199's Avatar
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    306
    First off, what is a corona or lens flare. Well, you see them in the real world(sometimes), on TV(Always outdoor scenes), on most good video games, etc... Ever notice the almost transparent rings that appear on the screen when your charactor looks at the sun? Those little rings are coronas. Look at a picture of this awesome effect by clicking on the link below. NOTE: Right click the link and save the image first as Geocities is very screwy. Then open the file you saved.

    http://www.geocities.com/warmaster2000us/sweetness.bmp

    Those Coronas in that picture were from a C++ sample in the DirectX 7 SDK. Ask me if you need the individual corona pictures.

    I have the bitmaps that need to be blt'ed, but I don't have the algorythms for making them work. How can I make coronas appear in my 3D world? Notice that the coronas are in line with the sun. All of them seem to be on a common vertex of some sort. When the user moves, the coronas move along with the "vertex" whick moves with the user as well.

    I greatly appreciate ANY help or code.
    Thanks
    Designer/Programmer of the Comtech Operating System(CTOS)

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Sure there is a way, you'll just have to find a relation between the coordinates of all the lens, then you move one and all the other lens will move too. Hope you know how to do that, it's kinda complex and I don't know how to do it in 3D

  3. #3
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Also, I tried but I can't find the image in ANY way. Try posing it in GIF/JPG format instead please

  4. #4
    Guest
    the lense flare, they're on a vector, crossing the level in the middle.

    u'll find probably a lot of information about it by going to http://www.gamedev.net/gamedev.asp and then going to their message board and doing a search for lensflare and u'll find a lot of discussions on them..

  5. #5
    Guest
    also, which sample is the screenshot exactly from.. is it directX 7 or 8??

  6. #6

    Thread Starter
    Hyperactive Member Warmaster199's Avatar
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    306
    The sample is from DirectX 7 SDK's C++ samples. I got some pictures of the flare bitmap by itself(Just each flare). black backround, white/grey foreground, blah, blah, blah... Got to my site, http://www.geocities.com/warmaster2000us and in the text, there is a link for coronas. The bitmaps will be zipped up on that page.
    Designer/Programmer of the Comtech Operating System(CTOS)

  7. #7
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Hey, good luck on your 3D engine! I have an idea: you could give the user the option to, if his computer is fast enough, blend each frame so it looks better. Because those edges don't look good in ANY game and I haven't seen any game without them

    And as to the lens, I have discovered how to do them! Here's a little diagram so you understand it:

    http://freepages.ugo.com/firehawk/files/coronas.gif

    Hope that helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width