.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > YappA > Offtopic
Offtopic Just anything. You have time to waste ? Prove it !!!

Reply
 
Thread Tools
Re: Cs 2d!
Old
  (#21)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Cs 2d! - 16-07-2004

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 16-07-2004 at 11:48..
  
Reply With Quote
Re: Cs 2d!
Old
  (#22)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Cs 2d! - 16-07-2004

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 )



Last edited by @$3.1415rin; 16-07-2004 at 12:06..
  
Reply With Quote
Re: Cs 2d!
Old
  (#23)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Cs 2d! - 16-07-2004

Lets just say that Allegro simplifies things and makes your source multi-os compatible


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Cs 2d!
Old
  (#24)
-=RAV=-AdrianShephard
Current Status: MIA
 
-=RAV=-AdrianShephard's Avatar
 
Status: Offline
Posts: 576
Join Date: Jan 2004
Location: California USA
Default Re: Cs 2d! - 16-07-2004

Quote:
Originally Posted by SoUlFaThEr
um.....

HOLY SHIT STEFAN!
rgr.





Spamming RB Forums Since August 2001.
  
Reply With Quote
Re: Cs 2d!
Old
  (#25)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Cs 2d! - 16-07-2004

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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Cs 2d!
Old
  (#26)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Cs 2d! - 17-07-2004

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!




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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 17-07-2004 at 00:56..
  
Reply With Quote
Re: Cs 2d!
Old
  (#27)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Cs 2d! - 17-07-2004

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



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Cs 2d!
Old
  (#28)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Cs 2d! - 18-07-2004

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Cs 2d!
Old
  (#29)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Cs 2d! - 22-07-2004

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Cs 2d!
Old
  (#30)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Cs 2d! - 22-07-2004

so that allegro was using each a single render pass for each cloud ?!


  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com