Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Lens flare effects in DBC...

Author
Message
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 1st Jun 2004 00:32
Hi!

hehe, I wanna add a lens effect to my game but I only found this example for DBP it can be translated to DBC?



Thanks in Advance
-DARKGuy

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 1st Jun 2004 20:13
No, you can't convert that because it has pro-specifics like get pick vector. But lens flares are possible with DBC.

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 1st Jun 2004 20:47
owww too bad. Yes?????????? how? there's an example??? I will GREATLY appreciate it if you or anyone can give me an example where I can start from

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Jun 2004 03:04 Edited at: 2nd Jun 2004 03:10
hmmm well, I found this little tutorial on gamedev http://www.gamedev.net/reference/articles/article813.asp. I've tried to convert it to DBC, but it screws up easyly, because, for the lx and ly variables, I rely on a 3D object I've put in the sky as a reference for the 3D sun, and using Object Screen X and Y for getting the lx and ly variables. The cx and cy vars are for the center of the screen (easy calculated) and the vx and vy variables, they screw up and I can't do that example...could someone lend me a hand with this?

/edit: BTW I'm using the SPRITE.DBA that comes with the Binary Moon's Limit Rush tutorial for displaying the glows and halos in the screen like sprites.

Thanks in advance
-DARKGuy

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Jun 2004 07:16
:bump: Anyone?? (sorry for triple-posting)

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 3rd Jun 2004 09:08
I saved a lens flare tutorial from a website some time ago. It was made for DBC, but I can't just give you the link because the site (DBNet) seems to have dissappeared (it more likely died).

I e-mailed it to you. Roughly over 450kb zipped (but Yahoo says it's 600kb), both the web page and the source code. Note that the copyright belongs to Blivvy. Just hope that hotmail allows for attachments this big.

As for the gamedev article, it's actually the same as Blivvy's, except it's DBC ready.

DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 3rd Jun 2004 09:15
Yeah I got it , 468Kb though, and hotmail said that too

awwww too bad DBNet died it looked to be a nice site btw

well, I'm gonna add you both to the credits then wheee thanks

yeah, that's what I saw, nice that it's DB ready thanks

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 3rd Jun 2004 11:26 Edited at: 3rd Jun 2004 11:31
3:32am, someone yells VERY loud:

WWWWWWOOOOOOOOOOOHHHHHHHHHHHHOOOOOOOOOOOOOOOOOOOOOOOOOO I GOT IT WORKING!!!!!!!!!! YEEEEAAHHHHHHHHHH WOOOOHOOOOOOOO I GOT DA POWERRRRRRRRRRRRRRRRRRRRR

/me calms down

sorry for writing in caps, it's that I'm soooooooooooooo happy at last I got it working, and beautifully!!! take a look at these screenies!




Now I'm gonna update my website and add a lot of things, see ya later in another post!

THANKS GUYS!!!!

/edit: updated my sig

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::

http://darkguy.redgaming.net

Login to post a reply

Server time is: 2025-05-24 00:37:43
Your offset time is: 2025-05-24 00:37:43