Advertisement

Author Topic: Use of the intersect command for vehicles  (Read 1370 times)

0 Members and 1 Guest are viewing this topic.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Use of the intersect command for vehicles
« on: 16 Aug 2008, 17:53:15 »
I've been using intersect to great effect on infantry, but on vehicles, it seems to only give a positive result for some parts of the model. For example, it will only work when the line passes through the wheels of a car or bike, or when it passes through the turret of a tank. This leads me to wonder whether it is only giving positive intersections on the first selection (I don't know anything about models or the applications for examining them, so I can't check this). Either I need it to intersect with any selection (I don't care, which, I actually just need to know if I've intersected with the model as a whole), or with a specific selection.

According to the BIKI, it says "FIRE", "VIEW", "GEOM" and "IFIRE" are appropriate LODs that can be interesected with, and, as I said, this works fine for infantry. I tried things like "FIRE2", "FIRE B", "FIRE 2", etc., to no avail, but I'm groping around in the dark, so I wasn't too hopeful ;P

Hopefully, someone with more knowledge of how selections and LODs work might be able to give me some ideas...
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Use of the intersect command for vehicles
« Reply #1 on: 16 Aug 2008, 18:49:43 »
Well "FIRE", "VIEW", "GEOM", "IFIRE" are the LOD references I suppose:

Fire Geometry LOD
View Geometry LOD
Geometry LOD
Haven't got a clue for "IFIRE"

Only suggestion I can see to find the named selections is to load an mlod version of the model into O2 and check the specific LOD and its named selections which will be listed.


Planck
I know a little about a lot, and a lot about a little.

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Use of the intersect command for vehicles
« Reply #2 on: 19 Aug 2008, 16:49:13 »
Writing some more tests for this, I realise that the array it returns is actually terribly useful (oops, I'd just been using it as a boolean!). The results from testing this command show a number of interesting facts:
  * All selections on a soldier are intersectable.
  * A soldier's gun is in the selection "right foot"!
  * Vehicles have multiple, but not all, selections available for intersection.
  * Static and Thing don't seem to have any selections available for intersection.

This begs the question of whether the the p3ds are wrong, whether the config is wrong or whether intersect is broken.

I've put my LOS function up at the beta testing, since I think it might be useful for other people to play with.
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Use of the intersect command for vehicles
« Reply #3 on: 21 Aug 2008, 17:13:23 »
Spooner,

Reading through this thread might be helpful.
My own question is do static map objects return a LOD via the intersect command?
urp!

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Use of the intersect command for vehicles
« Reply #4 on: 29 Aug 2008, 20:03:48 »
I downloaded Oxygen 2 and looked at a few of the sample BIS models in the various LODs. It seems that the selections that are found by "FIRE" intersect are all selections with specific names given to them (I'm sure I read some mention of "named selections" being special in some way, but I don't make a great effort to remember too much about anything except scripts and config). The LOD selections that don't have specific names are just shown in Oxygen as "component01", "component02", etc. Can't understand why intersect doesn't give those selections, even if it just gives an arbitrary name for them. Still non-plussed, but perhaps if someone fixed all the names, we might get somewhere (I'm not expecting this to happen, sadly).
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)