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
Steering Behaviors? #215925
07/14/08 05:33
07/14/08 05:33
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline OP
User
Frederick_Lim  Offline OP
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
From this website, I found the open source steering behaviors in C++.

http://www.red3d.com/cwr/steer/

The Java applets are really cool but unfortunately the author does not offer the source code.

Is there anyone convert the code to c-scipt/lite-C before?

Otherwise I must learn C++ and OpenGL in order to learn the code from OpenSteer project.

There are a lot of information cover path finding in AUM and forum, but it is almost none in steering behavior.

I need to learn this to continue my project, any advise is welcome.

Re: Steering Behaviors? [Re: Frederick_Lim] #215979
07/14/08 12:42
07/14/08 12:42
Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Machinery_Frank Offline
Senior Expert
Machinery_Frank  Offline
Senior Expert

Joined: Nov 2004
Posts: 7,121
Potsdam, Brandenburg, Germany
Just buy this book:
http://www.wordware.com/files/ai/

You get knowledge about path-finding, steering, autonomous agents, finite state machines and more. The book starts with very simple math and physics lessons. The examples are written in object oriented C++ with all the latest tricks like singletons, template classes or virtual classes.

You can learn a lot from this book.


Models, Textures and Games from Dexsoft
Re: Steering Behaviors? [Re: Frederick_Lim] #216053
07/14/08 21:53
07/14/08 21:53
Joined: May 2008
Posts: 301
Oxy Offline
Senior Member
Oxy  Offline
Senior Member

Joined: May 2008
Posts: 301
The things in the java app are actually quite simple to do.

You just need to use several traces in predefined direction, and
give the entity a moveforce oposing them, when the traces detect a wall.
The closer the wall is, the more force (up to 100% counterforce when at the wall).

The trick is to move then entity before the "normal" collision detection itself forces the entity to stop.

This way entites can easily avoid obstacles and other entities,
and get back onto the path.

The path itself can then be more rough (the positions to
follow as given by the pathfinding).

You can use the intenseX pathfinding for example for the general path to follow,
but you need to make a more sleek obstacle avoidance,
as (given the Demo) IntenseX does not perform
very well in that point.


No rocket science. But still rarely seen in the projects here.

Last edited by Oxy; 07/14/08 21:56.
Re: Steering Behaviors? [Re: Machinery_Frank] #216197
07/15/08 17:28
07/15/08 17:28
Joined: Mar 2007
Posts: 75
Hamburg, Ger
Altimeter Offline
Junior Member
Altimeter  Offline
Junior Member

Joined: Mar 2007
Posts: 75
Hamburg, Ger
yes, this book is worth its money in gold. But some C++ understanding is necessary if you want to use the examples in your own project. The author makes extensive use of classes.

Re: Steering Behaviors? [Re: Altimeter] #216248
07/16/08 02:20
07/16/08 02:20
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline OP
User
Frederick_Lim  Offline OP
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Thanks for the suggestion.

I think it is not avoidable use C++ and OpenGL to learn AI...I think I will look at OpenSteer project first, it also extensive use of classes, and it cost nothing smile It is open source, and it would be awesome if Conitec integrate it in GameStudio.


Moderated by  HeelX, Spirit 

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