[11:54]Â Jurgi Harlan: kage, I came to Second Life to design, pilot and sell mecha.
[11:54]Â The Sojourner: Hi Xanshin
[11:54]Â Jurgi Harlan: I believe you are my superior in this, and I wish to learn from you.
[11:55]Â Xanshin Paz: hiya,
[11:55]Â Xanshin Paz: Soj1
[11:55]Â Xanshin Paz: jeez…..keybd impaired again
[11:55]Â Xanshin Paz: hi guys!
[11:55]Â You: I’d be happy to help you learn everything I know about mecha design. WHen would you like to begin?
[11:55]Â Jurgi Harlan: At your convenience, I am a complete novice.
[11:55]Â You: Hello, Xanshin
[11:56]Â Jurgi Harlan: I am offering myself as apprentice, and intern.
[11:56]Â Xanshin Paz: hello, Kage!
[11:56]Â You: Well, if you have an hour or so, we could start right now, Jurgi.
[11:56]Â Jurgi Harlan: I do.
[11:56]Â The Sojourner: I will sit on the fence and write notecards
[11:57]Â Jurgi Harlan: There, that got rid of the fur.
[11:57]Â You: Great! Let’s have a seat and get a sense of what you already know.
[11:57]Â Jurgi Harlan: Alright.
[11:57]Â The Sojourner: Kage and I are good sitters
[11:58]Â Jurgi Harlan: Apparently, I am not!
[11:58]Â Kage Seraph dreams of the day when LL makes sitting a painless process.
[11:58]Â Jurgi Harlan: Bah
[11:59]Â Xanshin Paz: I’d pay to be a fly on this wall, but I’ve *got* to get some sleep :/
[11:59]Â Jurgi Harlan: Nonetheless, what I know thusfar is slim.
[11:59]Â Xanshin Paz: nice meeting you, guys
[11:59]Â You: We can notecard the chat transcript, Xanshin, if everyone consents..?
[11:59]Â Jurgi Harlan: I can show you my work, and it will say more than I can.
[11:59]Â Xanshin Paz: oh, that’d be great !
[11:59]Â Xanshin Paz: thanks!
[11:59]Â Kage Seraph nods, no problem
[12:00]Â Jurgi Harlan: These are the starting point of an idea I had…
[12:00]Â Xanshin Paz: ‘nite, all……!
[12:00]Â You: Night!
[12:00]Â DragonChiq Thereian is online
[12:00]Â Jurgi Harlan: You might not notice, but it is actually sized for your DIY kit.
[12:01]Â Misty Rhodes is online
[12:01]Â You: Intended as an attachment to the hips?
[12:01]Â Jurgi Harlan: A pelvis attach…though eventually I planned to add actual moving treads.
[12:02]Â Jurgi Harlan: This was my first attempt, disassembled for you.
[12:02]Â Kage Seraph ponders. Shooting for a Madcat?
[12:02]Â Jurgi Harlan: Feel free to get a closer look, and yes, I was basing my idea on a reverse knee Clan mech like a Mad Cat or Vulture.
[12:03]Â You: Sounds good so far.
[12:03]Â Jurgi Harlan: At the time, I hadn’t learned rescaling the whole model, so you’ll notice they’re too large.
[12:04]Â Jurgi Harlan: For the DIY kit anyway.
[12:04]Â You: Perhaps we could begin the discussion with animations and how they work in SL. They’re kinda the key concept in mecha design
[12:04]Â Jurgi Harlan: Indeed, I have made animations in Avimator. Is that useful?
[12:05]Â You: Yes, that is an excellent start (though I use Poser, so I can’t walk you through difficulties in Avimator directly)
[12:05]Â Jurgi Harlan: That is what I have learned of particle effects.
[12:06]Â Jurgi Harlan: The fly/follow effect is sadly copied from someone else’s work.
[12:06]Â Jurgi Harlan: My goal was to keep the particles in the ball.
[12:06]Â You: Looks good as a start, Jurgi.
[12:07]Â Jurgi Harlan: It also makes a useful hands-free light source, when it’s not chasing pretty girls.
[12:07]Â Kage Seraph grins
[12:07]Â Jurgi Harlan: Well, I have one more work piece to show you.
[12:07]Â You: Okay, rez it at will. =D
[12:08]Â Jurgi Harlan: This was based off your Steam Golem design.
[12:08]Â Jessica Qin is offline
[12:08]Â DragonChiq Thereian is offline
[12:08]Â Jurgi Harlan: It’s not done, but I was more trying to get the techniques you used down more than to copy every facet.
[12:09]Â Jurgi Harlan: I hope my imitation didn’t offend.
[12:09]Â You: Sure, it looks like you have a good eye for the forms involved
[12:09]Â You: No, I have no problem with practicing that way.
[12:10]Â Jurgi Harlan: I really like your Steam Golem as it gives you size, as well as maintaining a posable head which which conversations stay fluid.
[12:10]Â You: Well, let’s use the Steam Golem as a conversation piece. We’ll pull it apart to see how it works, then put it back together as a complete piece.
[12:11]Â Jurgi Harlan: At your leisure, sensei.
[12:11]Â You: I’ll transplant the functional bits out of the anim overrider so we can concentrate on functionality, not form at this stage
[12:12]Â Object: Loading notecard ‘*Default Anims’…
[12:12]Â Object: Finished reading notecard. (4215 bytes free)
[12:13]Â Ned Nolan: hello
[12:13]Â Jurgi Harlan: So the invisiprims are on the feet, and the mech legs are on your lower legs, yes?
[12:13]Â Ned Nolan: hi Soj
[12:13]Â Higbee Protagonist is online
[12:14]Â The Sojourner: Hi Ned.. working on something
[12:14]Â You: Okay, as you saw before I attached the wooden box anim overrider, the attachments on the legs don’t determine the position of the av above the ground. Only the anim overrider does that
[12:14]Â Bob Bunderfeld is offline
[12:14]Â Jurgi Harlan: yes, I learned that, hence I was sizing my treads to match the overrider’s height limit.
[12:14]Â You: So the legs can be arbitrarily short or long, and only have to extend to the ground if you’re shooting for a sense of realism. 😉
[12:14]Â Jurgi Harlan: The code involved is completely unknown to me.
[12:15]Â Zekeen Phoenix is online
[12:15]Â You: In this case, I’ve integrated the invisiprims covering the mesh avatar’s calves and feet right into the lower legs of the prim av
[12:15]Â Jurgi Harlan: Okay, give me a second there.
[12:15]Â You: clarification in terms: mesh av = the regular human av almost all of us use
[12:16]Â You: in my case, the mesh av is the one in jeans and a tee shirt
[12:16]Â Jurgi Harlan: Okay, so those invisiprims are built into the legs, not separate attaches.
[12:16]Â Zekeen Phoenix is offline
[12:17]Â You: yes, though they could be separate attaches if you preferred to build it that way. I try to minimize the number of attachments used for sanity’s sake when tuning the av’s movement
[12:17]Â Jurgi Harlan: Learning the exact function of invisiprims is going to be a lesson I will require.
[12:17]Â You: Certainlyh, let’s handle that now.
[12:17]Â Jurgi Harlan: Please do.
[12:19]Â You: invisiprims use special textures to obscure any texture behind them by canceling the texture out. Some textures contain an extra “color” (called an alpha channel)
[12:19]Â You: that programs like SL can interpret as transparency.
[12:19]Â Jurgi Harlan: Alright, by “behind them” you mean contained within the prim’s area?
[12:20]Â You: within and/or behind, the effect is the same. All that matters is which texture is encountered first when you sort them by distance from the SL client’s camera
[12:21]Â You: so for me, the SL client camera is over and behind my shoulder
[12:21]Â Jurgi Harlan: Well, I notice that when the mech’s leg is behind the invisiprim, it is not being obscured.
[12:21]Â You: Very astute.
[12:21]Â Jurgi Harlan: How is the prim discerning betwixt your foot, and the mech’s knee?
[12:22]Â Jurgi Harlan: I also notice -I- am being obscured by them.
[12:22]Â You: SL is mercifully set up such that textures that do NOT contain an alpha channel are not obscured by textures that DO contain an alpha channel
[12:22]Â Jurgi Harlan: And my staff is not.
[12:22]Â You: so, for this application we have two kinds of textures, alpha textures and non-alpha textures
[12:22]Â Jurgi Harlan: Alright…
[12:23]Â You: alpha textures obscure (hide) each other, and non-alpha textures of course obscure both alpha and non-alpha textures behind them.
[12:23]Â Jurgi Harlan: I see.
[12:23]Â You: so, it follows that the rusty textures on the mecha’s legs are non-alpha, and the textures on you and me are alpha textures
[12:23]Â Jurgi Harlan: How can we manipulate what possesses the alpha channel state, and what does not?
[12:24]Â DragonChiq Thereian is online
[12:24]Â You: alpha channels can be added to any image in an offline image editor such as Adobe Photoshop or GIMP
[12:24]Â You: Numerous excellent tutorials are on the web to do this.
[12:25]Â You: Also,
[12:25]Â Jurgi Harlan: I will acquire them.
[12:26]Â You: when we change the transparency in the object editing toolbox (“Texture” tab, “Transparency” box), SL forces the texture in question to have an alpha channel
[12:26]Â Jurgi Harlan: Even if we reset it to 0%?
[12:27]Â You: Setting it to zero removes the alpha channel from a texture that was originally non-alpha to begin with.
[12:27]Â Jurgi Harlan: Ah, I see.
[12:27]Â Jurgi Harlan: I believe I have a functioning grasp of the concept.
[12:27]Â You: Good! Let’s move on to the next brain-bender.
[12:28]Â You: As it turns out, you and I and Soj each have two representations here on the inworld grid
[12:28]Â Jurgi Harlan: Our location and our avatar.
[12:28]Â You: First, the avatar that we all know and love and can see
[12:29]Â You: Second, as you mentioned, our position is analogous to the agent representing each of us
[12:29]Â Jurgi Harlan: yes, agent, the term had escaped me.
[12:29]Â Jurgi Harlan: It is the agent by which we “play”, seeing and moving.
[12:29]Â Jurgi Harlan: The avatar becomes merely the visual placemarker for the agent.
[12:30]Â You: Most of the time, the agent and avatar can be used interchangeably. But there are a few crucial differences.
[12:30]Â You: Yes, you’ve nailed it.
[12:30]Â Jurgi Harlan: I have studied some, sensei.
[12:30]Â You: The camera and collision detection are tied to the agent, NOT the avatar, and it is this distinction that makes giant mecha in SL possible
[12:31]Â You: i.e., if we use an animation to move the apparent location of the avatar (for giant mecha, we move it straight up, no?), the agent’s position does not change.
[12:31]Â Jurgi Harlan: Indeed.
[12:32]Â Jurgi Harlan: We continue to interact with terrain, despite being above the ground.
[12:32]Â You: that is, it stays on the ground. So, where is my agent right now?
[12:32]Â Jurgi Harlan: Because our agent is at ground level.
[12:32]Â You: true true
[12:32]Â Jurgi Harlan: I have a question.
[12:33]Â You: So, all of that to say that as you construct animations and later prim models,always remember where the av is and where the agent is.
[12:33]Â You: Yes?
[12:33]Â Jurgi Harlan: If our agent is on the ground, how does the avatar look correctly when I focus my vision below me by bending over?
[12:33]Â You: Losing track of the relative positions in agent and av leads to some pretty glaring animation issues. =)
[12:34]Â Jurgi Harlan: Allow me to visualize my question.
[12:34]Â Jurgi Harlan: Now, I am starting at Soj.
[12:34]Â Jurgi Harlan: My agent is at ground level.
[12:35]Â Jurgi Harlan: Why does my head tilt down?
[12:35]Â The Sojourner: soj waves
[12:35]Â Jessica Qin is online
[12:36]Â You: This is one case where LL did excellent bookkeeping.
[12:37]Â Jurgi Harlan: So their systems manage it inherently?
[12:38]Â You: Recall that the avatar is not fully tied to the agent, so each of our clients can calculate the proper avatar articulation regardless of where the agent is, that is, the av’s position and orientation are handled relative to the agent, but the algorithms
[12:39]Â You: that determine head facing and foot facing in particular, are handled separately. That way, your feet are properly angled onto the ground and you can look about naturally regardless of most animations( i.e., animations that do not take over the head)
[12:39]Â Jurgi Harlan: I see.
[12:39]Â You: Other questions before we move on to articulation?
[12:40]Â Jurgi Harlan: So this is not an issue we must constantly correct when building a mech with a poseable head.
[12:40]Â You: that is correct. LL has done a good job formalizing how an unconstrained head should act. =)
[12:40]Â Jurgi Harlan: I think I have a grasp of it, sensei, please move along if you are ready.
[12:41]Â You: Okay, on to articulation.
[12:42]Â You: The root of the magic in the animation here is to set the hips in the animation upward into the air as appropriate. The position and overall orientation of the avatar are determined thus:
[12:42]Â You: get the position and rotation of the agent, add the effect of the active animation(s) to that, then display
[12:43]Â You: As you know one can have multiple animations playing simultaneously, as when we are standing and typing at once
[12:43]Â Lazarus Bogan is offline
[12:43]Â Jurgi Harlan: Yes.
[12:44]Â You: So, SL combines the animations mathematically and drops any subset of the animations that are of a lower priority that the highest-priority animation, as well as non-animated bodyparts.
[12:44]Â You: another way to say that:
[12:44]Â Jurgi Harlan: My staff overriding my left hand while I type, for example.
[12:45]Â You: a priority 4 animation (the mecha standing animation) negates the default standing animation for all joints that the mecha animation takes control of
[12:45]Â Jurgi Harlan: Ah, my slouching animation is a priority 4…can you teach me of the priorities?
[12:45]Â You: Yes, your staff is a perfect example of that
[12:46]Â The Sojourner: poor Kage looks like he has been riding a horse too long
[12:46]Â You: Ha! Actually, Soj, that’s a pretty important detail we’ll get to soon
[12:47]Â You: Priority for our needs with mecha are a sledgehammer kind of tool, that is, Mecha animations are totally “unnatural” to the normal SL av, so I typically set all the mecha animations to the highest priority to minimize overlap
[12:47]Â Raistlin Otis is online
[12:48]Â You: The notable exception to that is that I did not animate the mesh avatar’s head with the mecha animations, which is why the mesh head remains naturally articulated / animated even when I’m wearing this avatar.
[12:48]Â Jurgi Harlan: Alright…at the same time, my priority 4 slump overrides my head movement.
[12:48]Â Jurgi Harlan: How did you prevent the head override exactly?
[12:49]Â You: Good question, and a key skill for animating capably
[12:50]Â You: As it turns out, any animations we make only affect the joints for which we explicitly specify animations. So, in Poser or Avimator, we load up an SL mannequin and start manipulating, say, the left arm.
[12:50]Â Forseti Svarog is online
[12:51]Â You: If we upload that arm-waving animation without specifying any new movement for the other limbs, SL will continue to animate those other limbs normally while the arm animation plays or loops.
[12:51]Â Jurgi Harlan: Does this cause a more natural blend, or more jerky chaos?
[12:51]Â You: So, for this mecha set of animations, the arms, legs, and torso all have movements specified, but the head and neck do not.
[12:52]Â You: Regarding jerkiness, much of that is dependent on (1) the character of the animation itself. Is it jerky? (2) the values specified in the transition-in and transition-out attributes when uploading the animation
[12:53]Â You: those values determine how much weight the client gives to the early and late frames of the custom animation as it starts and ends.
[12:53]Â You: basically analogous to a “fade in” and “fade out” effect
[12:54]Â Jurgi Harlan: Transition-in and transition-out were very difficult for me, I mostly hotwired it until it ran for my slump.
[12:54]Â Jurgi Harlan: I didn’t really have an understanding, just poked and prodded till it worked.
[12:55]Â Jurgi Harlan: More training and examples would help…
[12:55]Â Jurgi Harlan: But we can save it until appropriate…
[12:55]Â The Sojourner is offline
[12:56]Â You: Sounds good. Let’s finish up this discussion on articulation with a brief bit on joints of the mesh avatar and how we ‘hack’ them
[12:56]Â Jurgi Harlan: So the goal when animating is to produce smooth movements that override as little as necessary to keep the body’s reactive coding intact.
[12:56]Â You: Generally, yes. THat’s a good way to summarize it
[12:57]Â Jurgi Harlan: Oh, yes, that’s a part I was definately curious about.
[12:57]Â You: THough for mecha, we tend to have to take control of almost everything with the custom animations.
[12:57]Â You: Soj noted earlier that I look like I’ve been riding a horse too long
[12:58]Â Jurgi Harlan: Because of the wide hips.
[12:59]Â You: That is an artifact of the fact that we cannot with custom animations break the joints of the av. That is, I cannot specify a shoulder joint position that is 5m, say, from the rest of the body. The joints, though they’re all raised into the air, have
[12:59]Â You: to remain at normal human proportion to one another, except as far as we can push them with the normal appearance dials / sliders.
[13:00]Â Jurgi Harlan: Yes.
[13:00]Â You: So, since mecha are of course bigger than we are, all of the size-related sliders are maxed out for this mesh av to get the joints closer to where they should be for humanoid mecha.,
[13:01]Â Jurgi Harlan: Yes, to keep the attachments moving as much like the body as we can.
[13:01]Â Jurgi Harlan: The closer the body to the joints, the more natural the interplay.
[13:02]Â You: But as you can see, the mecha’s knee joints are further out along the av’s y-axis (left-right). For legs, this isn’t much of a problem, since the hips and knees primarily function like hinges
[13:02]Â Jurgi Harlan: For upper arms, you’ve substituted energy streams.
[13:02]Â You: Since the prim legs are only slightly displaced, the effect is pretty good. Arms, however, are much trickier.
[13:03]Â Jurgi Harlan: An inventive technique, in my opinion.
[13:04]Â You: A last-ditch one. 😉 As you can imagine, the ball-and-socket joint and movement of the shoulder leads to crazy displacements as the animations play; the particle streams are one way around this problem
[13:04]Â Jurgi Harlan: Yes, I couldn’t figure out how to make it work either…
[13:05]Â Jurgi Harlan: I’ve been planning to save for a Decepticon or Gundam one to study their trick…
[13:05]Â You: How much are they?
[13:06]Â Jurgi Harlan: Though the code to make the streamers move from shoulder to elbow is another mystery to me.
[13:06]Â You: I’ll walk you through that another day if you like.
[13:06]Â Jurgi Harlan: I could take you to them…I don’t have prices memorized.
[13:06]Â Jurgi Harlan: …um, wow.
[13:07]Â Jurgi Harlan: Bring them with me when I come next time?
[13:07]Â You: That should be enough to get you started on one or the other. Consider it a homework assignment to tear them apart and learn their techniques? Bring them if you wish
[13:07]Â Jurgi Harlan: Will do sir!
[13:08]Â Jurgi Harlan: I was also noting that the steam golem itself is moddable.
[13:08]Â Jurgi Harlan: Though the demo version I have is not.
[13:08]Â Lazarus Bogan is online
[13:08]Â Jurgi Harlan: As I understood the sign.
[13:09]Â Jurgi Harlan: And so you know, I am a buyer of your work.
[13:09]Â You: Yes, that was intentional; the demo is simply a demo– if it were mod, folks would have no reason to get the full version. For those that did, I wanted them to be able to make it their own if they wished
[13:09]Â Dirty McLean is offline
[13:09]Â Jurgi Harlan: I have a question on this model however…
[13:09]Â You: Yes?
[13:09]Â Jurgi Harlan: if you would look at my left hip.
[13:10]Â Jurgi Harlan: There is some loose tubing or handles or some such, free floating.
[13:10]Â You: Ah, so I see. Carelessness in the gunship attachment on my part
[13:11]Â Jurgi Harlan: Yours doesn’t have it.
[13:11]Â Jurgi Harlan: Wait, there they are
[13:12]Â Jurgi Harlan: After you transformed back to robot mode.
[13:12]Â Jurgi Harlan: They’re there now.
[13:13]Â Nomad Nighbor: COOL transformers convention 😀
[13:13]Â Jurgi Harlan: Now they’re gone
[13:13]Â You: Much better
[13:13]Â You: Just had to fox 3 scripts
[13:13]Â You: *fix
[13:13]Â Jurgi Harlan: Alright…
[13:14]Â Jurgi Harlan: Once they test clean, can I expect a copy?
[13:14]Â Jurgi Harlan accepted your inventory offer.
[13:14]Â You: I’ll update the vendor as well
[13:15]Â Forseti Svarog is offline
[13:15]Â Jurgi Harlan: Nice.
[13:15]Â You: I think we’re at a good stopping point for today; Any last questions for the moment? Message me when we’re both online and we’ll continue
[13:15]Â Jurgi Harlan: Only this.
[13:16]Â Jurgi Harlan: May I use some of that Linden to purchase a Steam Golem to study?
[13:16]Â Jurgi Harlan accepted your inventory offer.
[13:16]Â You: Not much need for that. =)
[13:16]Â Jurgi Harlan: THANK YOU!
[13:17]Â Jurgi Harlan: I have been wanting this since I first laid eyes on it.
[13:17]Â Jurgi Harlan: You have a thankful student.
[13:18]Â You: Hey, no problem. Some folks learn best by pulling apart previous stuff and seeing what makes it tick.
[13:18]Â You: That should be all moddable right down to the scripting
[13:18]Â Jurgi Harlan: Thank you sensei, I will study well before our next meeting.
[13:18]Â You: Open ‘er up and see what forms more questions for you. We’ll cover them when next we meet.
[13:18]Â Jurgi Harlan: I will, and thank you again.
[13:19]Â Kage Seraph nods.
[13:19]Â Jurgi Harlan: I am off to purchase more mecha!
[13:19]Â Jurgi Harlan: Farewell!
[13:19]Â You: Have fun!
Mecha Construction in SL, Lesson 1
by