Jump to content

TomStraye

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

1 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Height is not a binary quantity either. Nor is weight. But since when has that stopped anyone describing anybody as 'short', 'fat', 'tall', 'thin' or whatever? We all do it … "if(X>Y && X<Z){A=something;}else{A=something-else;}". Such is the nature of labelling. Of course, you can argue about which values go with which labels, but that's a different issue entirely.
  2. Took the words right out of my mouth. In fact, you could equally ask: "what is gender anyway and does it really matter in a virtual world that does not rely on sexual reproduction to maintain its population?". Or, to put it another way, does not the answer to questions about avatar gender depend on why you are asking? What is it that you actually want to know? Answer that last question and, I suggest, the 'gender detection problem' becomes far more tractable — no longer about gender as such; just a matter of ticking boxes in a purpose-specific truth table. Which is why, for the record, when friends asked me to code them a 'female only' doorway, body-shape was only one of the parameters on their wish-list. For the rest — mostly relating to what the avatar has between its legs — I gather they are now resigned to relying on old-fashioned, personal, physical inspection. It's a hard life!
  3. I had noticed Just put it out there because, while I found this thread quite easily, I found the solution only because a friend of mine stumbled across it pretty much by chance.
  4. Returning to the original question about gender detection, as long as you are content to adopt a pragmatic "if it looks female, it is female" approach, the following (bare-bones outline) seems to work pretty well on humanoid avatars. It's not perfect and I have no idea to what extent it's helpful with non-humanoid types but, basically, I gather the variable 'IsGender' keys on LL's body morphing male/female slider sets: a value of 0.0 being definitively female, a value of 1.0 being definitively male, and anything in between … use your imagination! list BodyShape = llGetObjectDetails(WhoIsID, [OBJECT_BODY_SHAPE_TYPE]); float IsGender = llList2Float(BodyForm, 0);
×
×
  • Create New...