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 / Mirrors and reflections

Author
Message
Rigo
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Hungary
Posted: 25th May 2004 13:48 Edited at: 25th May 2004 14:19
I made a mirror rutin for dbc, its currently slow, but useable.
Check the screenshoots. The sight of the mirror is still working bad, but i'll fix it. What do you think?

Pictures:
http://no204.atw.hu/mirror01.jpg
http://no204.atw.hu/mirror02.jpg

FZoli.

Look at MED, the Matrix Editor from Hungary! Texture blending, free rts camera, and more!
http://darkbasic.thegamecreators.com/?m=forum_view&t=31490&b=8
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 25th May 2004 17:41
Looks quite good.
Are you doing that by positioning the camera next to the mirror and
using 'get image' and texturing the mirror with that?

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
Rigo
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Hungary
Posted: 25th May 2004 20:12
Yes. But this is a litrre bit harder, because, standartly, this method get flashing, because you always reposition the camera. So, if you want to make mirrors, you have to fix this flashing. Luckily, i could make it But, as I said, this method still slow (PII633 256MBRAM 16MBVGA with medium quality mirrors - 8-12fps).

I upload the source code soon, but its still unfinished.

FZoli.

Look at MED, the Matrix Editor from Hungary! Texture blending, free rts camera, and more!
http://darkbasic.thegamecreators.com/?m=forum_view&t=31490&b=8
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 25th May 2004 21:21
Good luck!

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 25th May 2004 21:25 Edited at: 25th May 2004 21:26
could you please show the source, then i can test it on my machine

BTW looks pretty cool

if I = 1 then I = 1 else I = 0
Rigo
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Hungary
Posted: 26th May 2004 08:04 Edited at: 26th May 2004 08:05
Dont worry, I will show it, but its need some fixes, just after I did it. Until, check these screenshoots. they are shows different mirror details, you can see the FPS there. Got 3fps with bigger resolution of mirror.

http://no204.atw.hu/mirror1.jpg
http://no204.atw.hu/mirror2.jpg
http://no204.atw.hu/mirror3.jpg

FZoli.

Look at MED, the Matrix Editor from Hungary! Texture blending, free rts camera, and more!
http://darkbasic.thegamecreators.com/?m=forum_view&t=31490&b=8
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 26th May 2004 19:18
Yep!
Definately needs some work to get that fps up.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
Rigo
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Hungary
Posted: 26th May 2004 20:31
Yes...

Thats why I dont want to share the source code yet.

FZoli.

Look at MED, the Matrix Editor from Hungary! Texture blending, free rts camera, and more!
http://darkbasic.thegamecreators.com/?m=forum_view&t=31490&b=8
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 29th May 2004 08:50
Error 404...can't see the images

BTW it's possible to catch the screen output without showing it? using get image (like andrew neale said)????

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 29th May 2004 14:03
Sure is.
Here is a simple mirror I made in about 2 minutes.


Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
Rigo
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Hungary
Posted: 29th May 2004 22:40 Edited at: 29th May 2004 22:42
Not bad snippet, I almost think it, you can made a nice mirror just about 2mins.

BUT, this isn't a mirror! you can see, plain texture shows what are you seeing in the monitor!!!

I hope, you anderstand it. Im so bad in english.

And, sorry about you couldt see the pictures, try it, they have to work now...

FZoli.

Look at MED, the Matrix Editor from Hungary! Texture blending, free rts camera, and more!
http://darkbasic.thegamecreators.com/?m=forum_view&t=31490&b=8
Rigo
21
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Hungary
Posted: 29th May 2004 22:47
DARKGuy: Yes, to save camera output, whitout shoving, this possible. And, thats why, the mirroring really do slowly in DB.

Look at MED, the Matrix Editor from Hungary! Texture blending, free rts camera, and more!
http://darkbasic.thegamecreators.com/?m=forum_view&t=31490&b=8
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 30th May 2004 00:28
ohhh ok...I understand...very nice though
BTW thanks for the snippet andrew neale, it'll come in handy , you wouldn't mind if I put it in my website (with credits of course)?

Oh and, I love those screenshots. Nice effect!

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th May 2004 15:49
Of course you can use it.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 25th Jun 2004 03:59
*REVIVAL*

ok the code is there thanks

BTW this code was finished already? I'm interested in knowing how he resized the mirror image to get more fps...

Login to post a reply

Server time is: 2025-05-25 03:55:21
Your offset time is: 2025-05-25 03:55:21