1
\$\begingroup\$

i'm working in a 3d flash role-playing game with alternativa 3d engine.

My game requires the main character to be customizable, for example, the player must be able to add a mustache, a hat, a tie, change colors of sking, clothing, etc, to the character.

How am i able to do that?.

(I'm using maya for modeling.)

Thanks in advance.

\$\endgroup\$
3

1 Answer 1

1
\$\begingroup\$

If your 3d engine supports a scene graph, some scene graphs will have a node called a switch node. This can be used to switch between different types of geometry. So, you could put a switch node above the lip and switch between a mustache and no geometry (an empty node in the switch). For clothing and skin tone, you might be able to do something similar with switch nodes at the texture level. Not sure though.

\$\endgroup\$
5
  • 1
    \$\begingroup\$ I've never heard of a "switch node" and don't see why you need some special node for switching geometry; why can't you do this with any other node? Otherwise, I agree with this answer! \$\endgroup\$
    – jhocking
    Sep 26, 2011 at 18:55
  • \$\begingroup\$ You can do the same thing by finding the node in the scene graph that you want to attach the new node to. Switch nodes simply encapsulate that behavior for you. \$\endgroup\$
    – zooropa
    Sep 27, 2011 at 15:22
  • \$\begingroup\$ I still dispute that scene graphs "usually will have a node called a switch node." Personally I think this answer would be better reworded to not muddy the waters with this term "switch nodes" and simply explain the underlying concept. Does Alternativa support these switch nodes? \$\endgroup\$
    – jhocking
    Sep 27, 2011 at 15:33
  • \$\begingroup\$ i have no idea if alternativa3d support this "switch nodes". Never heard of them before. i've got to make some research. \$\endgroup\$
    – OscarVGG
    Oct 5, 2011 at 20:55
  • \$\begingroup\$ Switch nodes are used in the Gamebryo (gamebryo.com) rendering system which is a commercial product. You can download the free version which is called Wild Magic - geometrictools.com. So, there's at least one credible source which uses switch nodes. \$\endgroup\$
    – zooropa
    Oct 6, 2011 at 15:54

Not the answer you're looking for? Browse other questions tagged .