Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Beating the sensor limit of 16

Fiona Fatale
Registered User
Join date: 19 Aug 2004
Posts: 16
02-19-2005 06:08
Could someone send me some sample code on how to beat the sensor limit of 16? I've been working on one for two days now and have some code that scans the area, then checks against a list, but it's not working and I'm frustrated. :cool: I don't want to call it quits, but I haven't the time right now to debug it to death. Any help would be greatly appreciated.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
02-19-2005 11:50
What you can do is use multiple objects each with a sensor that is limited to a certain arc. Each object must be in the same position, and must be rotated so that its sensor makes up a portion of the total detection sphere. Note that this can be intensive on the server, so dont use llSensorRepeat with a small triggering interval.

==Chris
Fiona Fatale
Registered User
Join date: 19 Aug 2004
Posts: 16
02-19-2005 12:18
Oh, that's a good idea!! Never thought of that... Then would they communicate with a root prim and compile the list?
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
02-19-2005 12:53
From: Fiona Fatale
Oh, that's a good idea!! Never thought of that... Then would they communicate with a root prim and compile the list?

Yup, you've got the idea :)
==Chris
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
02-20-2005 02:57
From: Fiona Fatale
Oh, that's a good idea!! Never thought of that... Then would they communicate with a root prim and compile the list?


you should note that since sensors use spherical angles there will be some areas of overlap, especially at extreme ranges.

-- C
Rhombur Volos
King of Scripture & Kebab
Join date: 6 Oct 2004
Posts: 102
02-20-2005 09:38
From: Caoimhe Armitage
you should note that since sensors use spherical angles there will be some areas of overlap, especially at extreme ranges.

-- C


not neccesarily. Two sensors using PI_BY_TWO as a sensor angle will form two half spheres that can be combined into a full sphere.
Chage McCoy
Aerodrome Janitor
Join date: 23 Apr 2004
Posts: 336
02-20-2005 15:37
Can I ask why multiple sensors are required, where you could just use one and write the additional code to filter out what is required? especially when dealing with more than 16 sensors - this is gonna take up a quite a bit of sim resources otherwise,.
Rhombur Volos
King of Scripture & Kebab
Join date: 6 Oct 2004
Posts: 102
02-20-2005 16:42
From: Chage McCoy
Can I ask why multiple sensors are required, where you could just use one and write the additional code to filter out what is required? especially when dealing with more than 16 sensors - this is gonna take up a quite a bit of sim resources otherwise,.


From: Fiona Fatale

Could someone send me some sample code on how to beat the sensor limit of 16?


This refers to the maximum limit of sensed objects using one sensor, not the number of sensors you can use in an object.
Carnildo Greenacre
Flight Engineer
Join date: 15 Nov 2003
Posts: 1,044
02-21-2005 23:15
From: Chage McCoy
Can I ask why multiple sensors are required, where you could just use one and write the additional code to filter out what is required? especially when dealing with more than 16 sensors - this is gonna take up a quite a bit of sim resources otherwise,.


Multiple scans with a single full-sphere sensor will catch more than 16 objects, but there'll be a lot of overlap between sets of 16. Multiple scans with a partial-sphere sensor will be more efficient, but will take longer, and you need to worry about rotating the sensor after each scan.
_____________________
perl -le '$_ = 1; (1 x $_) !~ /^(11+)\1+$/ && print while $_++;'