.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Offtopic (http://forums.bots-united.com/forumdisplay.php?f=23)
-   -   Cs 2d! (http://forums.bots-united.com/showthread.php?t=2264)

stefanhendriks 16-07-2004 10:39

Re: Cs 2d!
 
Asp, you won the contest.

Yes, Allegro is taking a lot of bs work off my hands. I know a lot of stuff already. But i am not 100% experienced in lightning and that kind of tricks yet. But i manage ;) The readme's are wonderfull.

When i release something, i will deliver code, so people can compile it for Linux, BEoS, etc (allegro supports a lot of platforms :))

EDIT:
- do note that all the windows drawn here & buttons and such are all own code. Though graphically its all Allegro dude ;)

BTW: Does anyone know a simple & effective 'water reflection/refraction' effect for 2d tiles? I searched, but most of the do not make sense to me. I know a bit of the logic, but they assume you know some terms and i dont.

@$3.1415rin 16-07-2004 10:57

Re: Cs 2d!
 
just browsed a bit on allegro sites ... somehow I dont get yet the point of using allegro, well, beside using the sount interface. the 3d stuff looks almost like opengl ...

about simple refractions / reflections ... maybe you check the gamedev.net forums for informations on that, but until now I havnt seen anything simple there. I guess you cannot do that in a simple way unless you wanna look it simple :)

€: ( http://www.gamedev.net/community/for...opic_id=230046 - that's what i found there immediately )

stefanhendriks 16-07-2004 12:02

Re: Cs 2d!
 
Lets just say that Allegro simplifies things and makes your source multi-os compatible ;)

-=RAV=-AdrianShephard 16-07-2004 19:12

Re: Cs 2d!
 
Quote:

Originally Posted by SoUlFaThEr
um.....

HOLY SHIT STEFAN!

rgr.

stefanhendriks 16-07-2004 21:46

Re: Cs 2d!
 
I added a 'shadow map'. Now i can create shadows (& lights actually, they work the same way rofl).. but i will only show a screeny when i have something more to show... muhaha

stefanhendriks 16-07-2004 23:48

Re: Cs 2d!
 
2 Screenshots:
- added 'clouds', ie, you see the cloud shadows moving. Different sizes, different alpha colors; pretty!

when using a general light level of 192 (meaning i have to 'draw_trans' everything on a black background making it 'dark') , using clouds (which is also transparancy) + raindrops (using transparancy)... kills my computer fps a bit.. (19 fps!!!! no players in, no bots, nothing yet!)..

I bet i can optimize A BIT. But not much! So, i guess i have to build in some options so you can limit stuff like clouds, or turn them off (clouds eat cpu). Also turn off 'alpha' stuff and make all 1 light color (yuk! but it runs way faster).

anyway, 2 shots: 1 with clouds only, 1 with raindrops!
http://realbot.bots-united.com/images/third.jpg

http://realbot.bots-united.com/images/fourth.jpg

At the shots, i have set:
500 raindrops + 20 clouds at a time

when doing:
250 raindrops + 5 clouds at a time, i have a 'reasonable' fps of 37

Pierre-Marie Baty 17-07-2004 15:00

Re: Cs 2d!
 
pretty neat, but I find it weird tho that the fps be so low. Although I can't tell, I never programmed anything like that. Congrats :)

stefanhendriks 18-07-2004 17:26

Re: Cs 2d!
 
Well, according to the Allegro documents is drawing transculent slow. Even more slow when you use multiple transculent alpha's. I use both.. hehe.

Its not that hard to write this PMB, you'll be suprised if you see the code.

stefanhendriks 22-07-2004 19:36

Re: Cs 2d!
 
I did more research and it seemed that fblend is a program i need to compile in order to do the same stuff but to get 200% up to 1400% more speed increase on drawing transculent and stuff.

one problem:
i @#$(*)&#@$(*&@# wont compile.

@$3.1415rin 22-07-2004 20:19

Re: Cs 2d!
 
so that allegro was using each a single render pass for each cloud ?! :)


All times are GMT +2. The time now is 11:46.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.