About Store Forum Documentation Contact



Post Reply 
AI Development Questions.
Author Message
Dampire Offline
Member

Post: #16
RE: AI Development Questions.
(04-13-2010 08:32 PM)Esenthel Wrote:  you need to debug and check at which point it doesn't proceed

I cheсed it.
Trouble in this line.
Code:
if(Physics.ray(pos(),Players[i].pos() - pos(),&ray_hit))
Sometimes triggered, sometimes not.
(This post was last modified: 05-02-2010 12:32 PM by Dampire.)
05-02-2010 06:55 AM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #17
RE: AI Development Questions.
Damn...
At very short distances (0-5 units). Ray not collides with player.
05-03-2010 11:48 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #18
RE: AI Development Questions.
you can try visualizing the ray line

void Draw()
{
Renderer(..);

SetMatrix
D.line(..

see if it actually collides
you can also use callback function to test all actors in the ray test


maybe you start the ray-test from within the character shape?
maybe physx will return true only if you start ray test outside the shape.
you can try additionally testing Physics.cuts - tests if you are actually inside the shape.
(so try Physics.ray and cuts simultaneously)
I think Bloody Massacre does that when testing bullets collisions
05-03-2010 12:49 PM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #19
RE: AI Development Questions.
I vizualized ray in game.cpp (I write code based on Bloody Massacre). Start of line - center of AI-actor, end - center of Player-actor. Point of collision drawing on surface of Player-actor. Screen
[Image: bloodymassacre201005031.jpg]

But main ray-testing code uses in AI.cpp in update(). Maybe it's problem?

P.S. It very strange... Today this code one time worked on small distance too.
(This post was last modified: 05-03-2010 03:02 PM by Dampire.)
05-03-2010 02:59 PM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #20
RE: AI Development Questions.
I solved the problem. When I replaced pos() on T.pos() all works perfectly...
05-31-2010 06:30 AM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #21
RE: AI Development Questions.
How to exclude Character from SSAO-effect?
07-18-2010 01:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #22
RE: AI Development Questions.
AO works for fullscreen, can't exclude objects from it
07-19-2010 12:10 PM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #23
RE: AI Development Questions.
Mmm... What about precalculating AO for terrain + embed into terrain objects? Is this possible now?
07-20-2010 06:44 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #24
RE: AI Development Questions.
only additional AO for terrain is calculated (and stored per vertex as vertex color) that is not however the SSAO post-process effect (only terrain vertex color)
07-20-2010 12:07 PM
Find all posts by this user Quote this message in a reply
Post Reply