Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 6 1 2 3 4 5 6
Re: 200 Spiders... [Re: William] #188292
03/14/08 06:13
03/14/08 06:13
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Quote:


Quote:

Without tracing? but how ? ^^




Probably through collision events I'm guessing.



collision events and ignore_model? that doesn't sound right. i would guess they're just avoiding each other it's the fastest way if done properly, especially if you want imprecise collision.

julz

EDIT: btw, it's pretty cool. i think it could be faster with some octree (or in this case quadtree since it's on a plane) management and a custom, less-precise entity detection.


Formerly known as JulzMighty.
I made KarBOOM!
Re: 200 Spiders... [Re: JibbSmart] #188293
03/14/08 09:15
03/14/08 09:15
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
More spiders! Looks freaky.
Maybe let spawn some more on pressing spacebar?
And try to let them crawl over eachother when it's getting too crowded hehe (e.g. they can't move anymore).


Click and join the 3dgs irc community!
Room: #3dgs
Re: 200 Spiders... [Re: Joozey] #188294
03/14/08 10:20
03/14/08 10:20
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline OP
Expert
Puppeteer  Offline OP
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
No i dont use any event functions
The spider just check all the spiders in a definded range and get via -vec_to_angle an angle force away of the spider in their way and simply add the forces to a final force if there is more than one spider.
Additionally they are speeding per spider in range a specific amount down so they won't get to the same position.
One other important thing is that the spiders dont check only if there is a spider in range they check too if the spider is walking towards the other spider AND the other spider towards the spider then the angle will be calculated.
If the spider only walks towards the other, but the other doesnt walk towards the spider the speed will be decreased.

(wow, what weird sentences xD )

hmm i dont know if using a quadtree would improve the collision avoinding but i have an idea how i can add some pathfinding to those creatures or a way how they could walk randomly through a maze without running against walls and without tracing i think i will do that today

EDIT: @ Joozey: Okay i will do that xD

Last edited by Puppeteer; 03/14/08 10:21.

Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: 200 Spiders... [Re: Puppeteer] #188295
03/14/08 11:37
03/14/08 11:37
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
this looks really cool and well done
maybe you could also do a code like if there is an obstacle they fear that they make place for the obstacle if you know what I mean.
looks cool anyway(and scary^^)
Regards
Aztec


Visit:
schwenkschuster-design.de
Re: 200 Spiders... [Re: aztec] #188296
03/14/08 12:20
03/14/08 12:20
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
quadtree's not to improve quality, but quantity see, each of the 200 spiders are checking their distance from every other spider every frame, right? that's 199 * 200 = 39800 distance checks each frame. with quadtree you could significantly reduce the amount of spiders checked to the few that are in the same grid-square as the spider (or include adjacent squares).

even splitting space into a consistent and regular grid should improve the speed.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: 200 Spiders... [Re: aztec] #188297
03/14/08 12:20
03/14/08 12:20
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline OP
Expert
Puppeteer  Offline OP
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
thx
I done some pathfinding still without trace:
(Now they are really (in) A-MAZE-(th)-ing )
Click
I added too the joozey key (space) and you can see in the upper right corner the current amount of spiders ^^
I will add soon some spider traps just 4 fun with some splatter effects so you will spend some more time watching them walking on the ground.
But wait only on the ground? Spiders can walk at walls too so i will do that to
While i am working on it have fun with the spiders on the ground

Last edited by Puppeteer; 03/14/08 12:38.

Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: 200 Spiders... [Re: DavidLancaster] #188298
03/14/08 14:10
03/14/08 14:10
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
Quote:

Nice work! I feel a little freaked out now, seeing all those spiders...eeee




i'm with david, although the first one is really cool. for your ai......just don't make it spiders next time....

Last edited by mpdeveloper_B; 03/14/08 14:18.

- aka Manslayer101
Re: 200 Spiders... [Re: mpdeveloper_B] #188299
03/14/08 14:35
03/14/08 14:35
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
very cool!

I really miss them crawling up the walls though!!

I like spiders ... well done!

Make them crawl up the walls and along the ceiling and let them sit still every now and then (more realistic spider-movement... spiders don't move around all the time, in fact, most of the time they sit still). once you're done with that, let them come down from the ceiling using a thread they create every now and then


~"I never let school interfere with my education"~
-Mark Twain
Re: 200 Spiders... [Re: Germanunkol] #188300
03/14/08 14:42
03/14/08 14:42
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline OP
Expert
Puppeteer  Offline OP
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
@ Manslayer:
I decided to make something with spiders because humans are boring and everything else too xD

@ Germanunkol:
That is exacly what i wanted to do


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: 200 Spiders... [Re: Puppeteer] #188301
03/14/08 16:12
03/14/08 16:12
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl



"empty"
Page 2 of 6 1 2 3 4 5 6

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1