remember my 1000 spiders crap? forget it! make it 10000!

Posted By: Puppeteer

remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 11:58

Maybe some of you remember my 1000 spiders doing collision avoiding and stuff.
Forget it! It was slow as hell.
I started playing around with it today and made a lite c version that is able to handle 10000 spiders at once.
It is faaaaaar from perfect right now but you can play around with it.
With space you create 1000 spiders.
You move the cam with wasd + mouse.
F11 for stats

Compile main.c for a huge level with blocks in the spiders way (compiling the pathfinding data may take a while so be patient)

mainb.c is a small level where you can test a smaller amount of spiders.

So here is the download link:
Click me
Posted By: 3run

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 12:15

Spiders don't move sometimes, and they even go throw the walls, but all other ways looks good laugh
Posted By: Puppeteer

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 12:33

I know these bugs.
I dont know yet why they move sometimes through walls but the issue that they sometimes stop moving will be fixed soon.
Posted By: Blink

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 13:56

do you have a A6 version of this by any chance? i dont remeber if it was offered last time. i remeber running the last demo though.
Posted By: Germanunkol

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 18:22

Hm. About the moving through walls issue: Maybe visualize what each spider is doing somehow (draw_line3d maybe?), like velocity, direction to goal, etc.

I dunno. It's a cool idea and it looks nice, but you should really work on them going through blocks. Kinda... Destroys the feeling.

And, as with the A6 version, I still think they should crawl up walls. grin But that's a huge chunk of work.

Keep it up!
Posted By: Blink

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 18:32

there was an A6 version, right?
Posted By: Blink

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 19:01

i just looked at it. i do have it, but was the code ever released?
Posted By: MPQ

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 20:11

nice nice, have got about 25 - 50 fps with a NV GTS250 and the same with a NV 7300LE grin
Posted By: Puppeteer

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 20:33

The c-script code wasnt released. I can give it to you but i think i wont be very handy.
If you guys take a look at the pathpoint.c you'll see that every waypoint traces to all the others. And if you draw the connections there are some traces that go through blocks and i dont know why =( (yet)
but i will work on it.
Posted By: Blink

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 21:57

i would like it anyway if you dont mind. i like the script. its very cool. Thanks!
Posted By: Locoweed

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/23/10 23:53

Sorry, for me the program starts, I see some green (spiders) and then after like 3 seconds, they all disappear.
Posted By: Puppeteer

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/24/10 01:02

Locoweed. You should have read the description above.... the green dots are waypoints. and you have to press space to create 1000 spiders.
Posted By: Puppeteer

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/24/10 23:21

Okay blink here is my ooooold project folder.
*Click*
Beware the ugly code might bite.
BTW: I decided to make a handy script pack as a contribution including an octree solution for entities, my swarm behavior script, a special spider movement script (walk on walls no matter what the normal is) and some collision avoiding stuff.
It should be easy to convert some of those scripts to c-script without going through too much trouble.
Posted By: Blink

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/25/10 01:55

Thanks, it would be great practice, studying scripts for me.
Posted By: FcoElizalde

Re: remember my 1000 spiders crap? forget it! make it 10000! - 08/26/10 02:20

Real nice work man, keep up with that, you already pwned starship troopers(2005) with only 300 bugs. Because some projects need quantity above all else.
© 2024 lite-C Forums