PDA

View Full Version : Selections in a model



Törni
Jun 23 2007, 18:13
Which is a "correct way" of defining selections.

1) overlapping so that entities belong to several selections simultaneously -> otochlaven (gun) is also included in selection otocvez (turret) etc.

2) separate so that each part belongs only to one selection

Both seem to work if skeletons are ok. Common sense would pick option 2 (then there would not be any unnescessary calculations as the model is animated), but BIS example vehicles (which I downloaded) use the method 1 (the overlapping selections)...???

wheres my rabbit ?
Jun 23 2007, 18:16
well as the gun also has to rotate with the turret it has to be part of that selection aswell

Törni
Jun 23 2007, 18:26
So I thought first too, but no it has to be not. The skeleton hierarchy moves the gun even if it left as a separate selection. If you include it in both selections, common sense would say that there is unnescessary location info passed around as the turret selection and skeleton both pass location info for the gun.

EDIT: I did not make difference between memory points and geometry here since the same principles work for the both of them. Wish someone from BIS would give a definite answer to this.

Armored_Sheep
Jul 3 2007, 12:38
It is a matter of animated skeleton bones hierarchy. In OFP the selections overlaped, to build dependency. In ArmA skeleton is defined in model.cfg, so selection of bones don´ t overlap. http://community.bistudio.com/wiki/Model_Config#cfgSkeletons

Törni
Jul 6 2007, 10:42
Quote[/b] ]It is a matter of animated skeleton bones hierarchy

That's how I figured it out too. Based on common sense and experience of other 3D-stuff.