SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 29/03/2016, 04:54 AM   #11
codectile
Huge Clucker
 
codectile's Avatar
 
Join Date: Jul 2014
Posts: 248
Reputation: 116
Default Re: ColAndreas - What have you used it for?

Quote:
Originally Posted by Crayder View Post
And about the vehicle collision area thing, that was a thing Abagail needed. It's basically just a scan [mesh-like] ray area in front of the car for now. I plan on adding a feature to ColAndreas that will scan shape areas for any world collisions.
It will have spheres and prisms. The prisms would make this collision thing a lot easier. It's going to be exactly like CA_ContactTest but with resizable shapes. For example, you could create a prism that is the exact dimensions of the vehicle (i.e. height and width, length would be your scan area desire) and place it in front of the car (with rotations so it's actually aiming away from the vehicle). You could scan that area for any collisions. This could be used for NPC drivers that would slow down before colliding with objects, detecting a vehicle collision before it happens, and a lot more things that wouldn't have anything to do with vehicles.
Any reason for not using SAMPVehicleCOLs.ccf? It would be more accurate.
codectile is offline   Reply With Quote
Old 29/03/2016, 05:30 AM   #12
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: ColAndreas - What have you used it for?

Quote:
Originally Posted by codectile View Post
Any reason for not using SAMPVehicleCOLs.ccf? It would be more accurate.
I don't think you understood the purpose. We are scanning in front of the vehicle. Plus, like I said, vehicles aren't the only use for these contact shapes.

And about that database, the vehicles are pretty high quality compared to other objects. Wouldn't they take up a lot more memory? I was already considering use of your database before (I'm pretty sure I talked to you about it too) too though, for other reasons.
Crayder is offline   Reply With Quote
Old 29/03/2016, 05:55 AM   #13
codectile
Huge Clucker
 
codectile's Avatar
 
Join Date: Jul 2014
Posts: 248
Reputation: 116
Default Re: ColAndreas - What have you used it for?

Quote:
Originally Posted by Crayder View Post
I don't think you understood the purpose. We are scanning in front of the vehicle. Plus, like I said, vehicles aren't the only use for these contact shapes.

And about that database, the vehicles are pretty high quality compared to other objects. Wouldn't they take up a lot more memory? I was already considering use of your database before (I'm pretty sure I talked to you about it too) too though, for other reasons.
I don't consider 1- 5 MB(211 vehicles) a high memory usage.



This is how vehicle id 577 looks like. Now you can determine what would be the total memory usage of 211 vehicles collision volumes.
codectile is offline   Reply With Quote
Old 29/03/2016, 07:35 AM   #14
ExTaZZ69
Big Clucker
 
ExTaZZ69's Avatar
 
Join Date: Mar 2015
Location: Romania
Posts: 128
Reputation: 23
Default Re: ColAndreas - What have you used it for?

I used ColAndreas in my furniture system.
If someone move an object outside the house, the object position will be the old one.
ExTaZZ69 is offline   Reply With Quote
Old 29/03/2016, 09:11 AM   #15
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Respuesta: ColAndreas - What have you used it for?

I get good results in Pathfinder with ColAndreas


Crayder, only add function in ColAndreas to add a "3d collision with specified values", understand?


So we can add player collision, vehicles collision, and others.

Thank you.

codectile, for now you can read car data yourself and create a small objects like a vehicle collision
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 29/03/2016, 09:50 AM   #16
codectile
Huge Clucker
 
codectile's Avatar
 
Join Date: Jul 2014
Posts: 248
Reputation: 116
Default Re: ColAndreas - What have you used it for?

@ipsBruno, I don't understand what are you trying to say, but if its related to vehicle collisions, then I must say cimulator already has the ability to create accurate vehicle collisions. I have already generated a data base and the picture above is the actual collision architecture of vehicle id 577, believe it or not.

Have a look at this, SAMPVehicleCOLs.ccf.
codectile is offline   Reply With Quote
Old 29/03/2016, 09:52 AM   #17
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Respuesta: ColAndreas - What have you used it for?

Oh god, my English is terrible, but i will try explain how works a good Pathfinder simulation with ColAndreas


- Check all position in area between x,y,z to a,b,c (image)
- Every position, set a node (0.1 by 0.1 distance node per node, for example) (image)
- Check all nodes linked with an other node with ColAndreas (image)
- Run Dijkstra, A* or other algorithm to PathFinder


It work perfect here. but is very slower. I only consider good with a small distances between two positions, the loops aproximate is

(distance * distance) / nodesdistance


Example:
5 * 5 / 0.5 = 250
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 29/03/2016, 09:53 AM   #18
codectile
Huge Clucker
 
codectile's Avatar
 
Join Date: Jul 2014
Posts: 248
Reputation: 116
Default Re: ColAndreas - What have you used it for?

Oh no, double post sorry.
codectile is offline   Reply With Quote
Old 29/03/2016, 10:47 AM   #19
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Respuesta: ColAndreas - What have you used it for?

ColAndreas or Cimulator have any function to return all collisions points of an object?


With this, i can convert object data collision to polygan, and implement a awesome pathfind based this

__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 29/03/2016, 06:20 PM   #20
ForT
Gangsta
 
ForT's Avatar
 
Join Date: Sep 2012
Location: Florianуpolis - SC Country: Brazil
Posts: 676
Reputation: 261
Default Re: ColAndreas - What have you used it for?

I use ColAndreas + FCNPC to chase algorithm and many other things in my project DayZ. For me, it is one of the best plugin already released.

Video:
[ame]www.youtube.com/watch?v=Z6_QdQ3_P-4[/ame]

Sorry for my bad english.
__________________

Novidades em breve


ForT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin ColAndreas Help! CopKing123 Scripting Help 1 15/03/2016 12:40 PM
Help ColAndreas Crystallize Scripting Help 7 02/03/2016 03:53 AM
Fail ColAndreas OrangeJam Русский/Russian 1 15/02/2016 04:47 AM
[Plugin] ColAndreas - (Released) Pottus Plugin Development 415 19/08/2015 12:31 AM


All times are GMT. The time now is 01:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.