How to create new Spore part models (animated parts!)

Learn how to use tools, install mods and so much more. Feel free to share your knowledge as well.
Forum rules
Can't get a mod to work?
Try these... FIRST!

http://www.davoonline.com/phpBB3/viewforum.php?f=6
User avatar
emd
Admin
Admin
Posts: 619
Joined: Sun Dec 09, 2012 6:21 am

How to create new Spore part models (animated parts!)

Unread post by emd »

WARNING: THIS TUTORIAL IS OLD. NOW YOU SHOULD USE SporeModder FX AND FOLLOW THIS TUTORIAL


[hr][/hr]

Welcome! In this tutorial I will teach you how to export new parts for Spore using SporeModder Blender addons. This method allows us to use the latest version of Blender, create animated parts, building/vehicle parts and other types of models.

In this tutorial I will only show you how to use the Blender addons, not how to use Blender itself (there are lots of better tutorials out there) nor how to make the part appear in Spore; for the later, I recommend you to unpack and explore Spore mods like BetterSpore or Spore Resurrection: Next Steps, to see how it's done there.

[table][tr][td]1 [goto=How_to_install_SporeModder_addons]How to install SporeModder addons[/goto]
2 [goto=Export_a_basic_part]Export a basic part[/goto]
    2.1 [goto=UV_Maps]UV Maps[/goto]
    2.2 [goto=Export_the_model_with_a_texture]Export the model with a texture[/goto]
    2.3 [goto=Advice_and_frequent_errors]Advice and frequent errors[/goto]
3 [goto=Animated_parts]Animated parts[/goto]
    3.1 [goto=Common_animations]Common animations[/goto]
    3.2 [goto=Morphs]Morphs[/goto]
4 [goto=Other_modelos]Other models[/goto]
    4.1 [goto=Building_vehicle_parts]Building/vehicle parts[/goto]
    4.2 [goto=Static_models]Static models[/goto][/td][/tr][/table]


[hr][/hr]

[marker=How_to_install_SporeModder_addons][/marker]1. How to install SporeModder addons

The first thing we must do is to prepare the tool with which we will create and export the models. For that, we need two things:

* Blender, a 3d modelling program. SporeModder only works with versions 2.7x (where X is any number). You can download it here: https://www.blender.org/

* The SporeModder addons, an extension for Blender that will allow us to export the parts in a format Spore supports. You can download it here: viewtopic.php?f=108&t=5458

Once you've installed Blender, we'll follow this steps to install SporeModder addons:

1. Unpack the file you've downloaded and copy the folder named "sporemodder".
2. Go to the folder where you've installed Blender. There will be a folder with your Blender version, for example 2.77a. Once inside that one, go to the folder scripts and inside there, go to addons.
3. Paste the sporemodder folder there.
4. Now, open Blender and go to the File -> User Preferences... menu.
Image

A new window will appear. Go to the "Add-ons" tab and search "sporemodder". In the result that appears, ensure the checkbox on the right is checked, like here:
Image

[hr][/hr]
[marker=Export_a_basic_part][/marker]2. Export a basic part

To complete this tutorial some basic knowledge of Blender is required, like selecting objects and changing the editors.

To export the model to Spore's format you just have to go the menu File -> Export -> Spore RenderWare4 (.rw4), like in here:
Image

Nonetheless, there's a condition you need to export: UV maps.

[marker=UV_Maps][/marker]2.1 UV Maps

An UV Map is a flat representation of the part, which is used for texturizing it. For example, here we can see the UV Map of the "Spuradic Spine" part, from the Spore Resurrection: Next Steps mod:

Image

Our part must have an UV map in order to be exported. To create a simple UV map, you can follow these steps:

1. In the bottom left corner, there's an icon of a clock. Click on it and in the menu that appears, select UV/Image Editor.
Image

2. In the main editor, select your model (with the mouse right click button) and go to Edit Mode (using the TAB key or changing it here: http://i.imgur.com/8MQHNj9.png)

3. In the main editor, press the key U and in the menu that displays, choose Unwrap. This will create a basic UV map.
Image

Finally, to be able to export you must be in "Object mode", like it's shown here:
Image

We won't explain how to create UV maps nor texturize the model in this tutorial; there are lots of tutorials about this on Youtube ;)

[marker=Export_the_model_with_a_texture][/marker]2.2 Export the model with a texture

If you have already made a texture for your model (the texture must be in the .dds format, DXT5), we can add it to the model so it's shown in Spore. For creature parts, this texture only displays in the editor "Build Mode".

To change the texture the model will be exported with, follow these steps:

1. Select your model and, in the rightmost panel, go to the Material tab (Image).
2. If your model doesn't have a material, create a new one pressing "New". Models can't export without a material.
3. If you scroll down the panel, we'll reach a smaller panel, "RenderWare4 Material Config". From there, the only property we're interested in at the moment is Diffuse texture: . There you find the file you want to use as the texture.

It's recommended to use as dimensions powers of 2, like 128x256, 1024x1024, etc. For creature parts, Spore uses textures of 64x64. If you don't specify any texture, a transparent one will be used (so the part will use the creature color).

[marker=Advice_and_frequent_errors][/marker]2.3 Advice and frequent errors

Use only one object (for creature parts)

It's recommended that, for creature parts, you only use one object. To merge multiple objects into one, select all them and press Ctrl + J.

The part appears moved, very big or wrongly rotated

This happens because any changes made in "Object Mode" won't be applied when exporting the model. To apply those changes, in the main editor, go to the Object -> Apply menu and there, select Location (if you want to apply the object's position), Rotation (if you want to apply the object's rotation), or Scale (if you want to apply the object's size).

"Error: No materials are used in object Cube"

This happens when an object has no "material". To add a new one, go to the panel on the right side of the screen. There, go to the Material tab (Image) and click New:
Image


[hr][/hr]

[marker=Animated_parts][/marker]3. Animated parts

When we talk about animations, we are talking about two things:
* The natural movements the part does, like opening the mouth, screaming,...
* Morphs, those arrows that let us change the shape of the part.

To animate the parts, Spore uses a method known as "Skeletal animation". Basically, it consists in creating an "skeleton" for the model and then animating that skeleton.

In this tutorial we won't explain how to create those animations in Blender, since there are lots of better tutorials for that. However, there's something you must see before creating animations.

To create the animations, you must go to the Dope Sheet editor.
Image

Once there, you must change the mode to Action Editor.
Image

To create an animation, you just have to click on New. The name of the animation is important and varies depending on what you want to do; the used names will be explained later.
Warning: Next to the animation name, there's an F. Ensure it's selected for every animation, because if it isn't it might not get saved.

Generally, all part animations last 1.25 seconds (that is, 30 frames). Please note that they start on frame 0, and end on frame 30.

[marker=Common_animations][/marker]3.1 Common animations

To make an animation be considered a "natural movement" (open the mouth, close the fist, etc) you just have to give it one of the used names. Here's a list of all the names used in movements:
Spoiler
[table][tr][td]Part type[/td][td]Name[/td][td]Use[/td][/tr]

[tr][td]Cell eye[/td][td]0x89E06A31[/td][td]Open the eye.[/td][/tr]
[tr][td][/td][td]0x15054351[/td][td][/td][/tr]
[tr][td][/td][td]impact[/td][td][/td][/tr]
[tr][td][/td][td]madasd[/td][td][/td][/tr]
[tr][td][/td][td]scared[/td][td][/td][/tr]

[tr][td]Cell mouth[/td][td]0x89E06A31[/td][td]Open the mouth.[/td][/tr]
[tr][td][/td][td]breathe[/td][td][/td][/tr]
[tr][td][/td][td]0x15054351[/td][td][/td][/tr]
[tr][td][/td][td]impact[/td][td][/td][/tr]

[tr][td]Flagella/cilia[/td][td]idle[/td][td][/td][/tr]
[tr][td][/td][td]move[/td][td][/td][/tr]
[tr][td][/td][td]0x15054351[/td][td][/td][/tr]
[tr][td][/td][td]impact[/td][td][/td][/tr]

[tr][td]Cell spikes[/td][td]idle[/td][td][/td][/tr]
[tr][td][/td][td]0x15054351[/td][td][/td][/tr]
[tr][td][/td][td]impact[/td][td][/td][/tr]
[tr][td][/td][td]attack[/td][td][/td][/tr]

[tr][td]Cell weapons (electrical and poison)[/td][td]0x15054351[/td][td][/td][/tr]
[tr][td][/td][td]impact[/td][td][/td][/tr]
[tr][td][/td][td]0xFD29BD8E[/td][td][/td][/tr]
[tr][td][/td][td]0x2D7AE6C2[/td][td][/td][/tr]
[tr][td][/td][td]0x0EFD249C[/td][td][/td][/tr]

[tr][td]Ear[/td][td]0x39E912E1[/td][td][/td][/tr]

[tr][td]Eye[/td][td]0x89E06A31[/td][td]Open the eye.[/td][/tr]
[tr][td][/td][td]madsad[/td][td][/td][/tr]
[tr][td][/td][td]scared[/td][td][/td][/tr]

[tr][td]Foot[/td][td]bend[/td][td][/td][/tr]

[tr][td]Grasper[/td][td]0x89E06A31[/td][td]Open the grasper.[/td][/tr]
[tr][td][/td][td]point[/td][td][/td][/tr]

[tr][td]Poison weapon[/td][td]turnon[/td][td][/td][/tr]

[tr][td]Mouth[/td][td]0x89E06A31[/td][td]Open the mouth.[/td][/tr]
[tr][td][/td][td]0x5D8D0055[/td][td][/td][/tr]
[tr][td][/td][td]lickair[/td][td][/td][/tr]
[tr][td][/td][td]unique[/td][td][/td][/tr]

[tr][td]Weapons[/td][td]turnon[/td][td][/td][/tr]

[tr][td]Wings[/td][td]flap[/td][td][/td][/tr]
[tr][td][/td][td]idle[/td][td][/td][/tr]
[tr][td][/td][td]tuck[/td][td][/td][/tr][/table]

[marker=Morphs][/marker]3.2 Morphs

To make an animation be considered a morph, you must mark it as a morph.
To do that, we go to the Scene tab (Image) in the right panel.
Once there, at the bottom, we'll find a list with all the animations. Select the one you want to use as a morph and check Use this animations as a morph handle.

After checking that, new options will appear:
Initial position: Controls the coordinates where the moprh handle on frame 0.
Final position: Controls the coordinates where the moprh handle on frame 30.
Default frame: Controls the frame the morph is on by default.

Morphs also have specific names for the animations. The most common ones are:
DeformAxisForward, DeformAxisLeft, DeformAxisRight, DeformAxisUp and DeformAxisDown.


[hr][/hr]

[marker=Other_modelos][/marker]4. Other models

SporeModder addons not only allow exporting creature parts; you can also export building/vehicle parts and static models (that is, those used in the game and in adventures). To export a model of one of those types, follow these steps:

1. Select your model and, in the right panel, go to the Material tab (Image).
2. If we scroll down through the panel, we'll reach a smaller panel, "RenderWare4 Material Config". There you can change the Material type: property, which can be one of the following values:
  • Skinpaint part: A creature/cell/plant part.
  • Mineralpaint part: A building/vehicle part.
  • Object model: An static models, like those used in adventures.
  • No material: We don't really know what it is for, it might not work correctly.
Building/vehicle parts and static models have some extra properties, which we'll explain next:

[marker=Building_vehicle_parts][/marker]4.1 Building/vehicle parts

Material group: This property makes the part have multiple areas to paint.
Use paint's texture: If it's not selected, you will only be able to change the area's color, and not the texture.

Image

As you can see, each area has a different Material group, and the gray zone doesn't have Use paint's texture selected.

The other two properties, Tiling and Projection mode, control how the paint texture is applied to the part, but we still don't quite know how they work.

[marker=Static_models][/marker]4.1 Static models

Normal texture: This texture is used to simulate bumps in the model. For more information, check Normal mapping. There's no need to specify any texture.

The other four properties, Specular exponent, Specular strength, Gloss y unkFloat3 control how lighting affects the model; we still don't quite know how they work.


I think that's all; for any problem or doubt, just ask!


Spore Modding Tools:
[list]
[*] SporeModder FX
[*] SporeModder Blender Addons
[*] Spore ModAPI SDK[/list]
User avatar
GBAura
Sentient
Sentient
Posts: 260
Joined: Sat Sep 17, 2011 7:24 am

Re: How to create new Spore part models (animated parts!)

Unread post by GBAura »

You have no idea how much I love you right now.
Ripper of Spore: Unofficial Galactic Score and... that's about it.

Need to download all the official Maxis and Robot Chicken Adventures? Click here!
User avatar
Darhagonable
Admin
Admin
Posts: 394
Joined: Mon Feb 23, 2015 9:37 am

Re: How to create new Spore part models (animated parts!)

Unread post by Darhagonable »

Right now we all do :lol:
Image
Image
Image
Image
rob55rod
Admin
Admin
Posts: 4086
Joined: Sat Jul 02, 2011 9:50 am

Re: How to create new Spore part models (animated parts!)

Unread post by rob55rod »

Right now I still intend to turn this into a video tutorial which covers the entire process :lol:
Having trouble with the Spore ModAPI Launcher Kit? Get help here!

If you're reading this, you have my permission to build off of my mods as long as I am credited. Please don't mirror my work unaltered, unless I no longer provide a working download.
User avatar
Vallachan
Sentient
Sentient
Posts: 1352
Joined: Thu Mar 17, 2011 5:26 pm
Age: 24

Re: How to create new Spore part models (animated parts!)

Unread post by Vallachan »

From what I know from the source engine,

Specular Exponent: should change how the shinyness applies over the whole mesh, or the "tightness" of the shine highlight. smaller values concentrate the shine into a smaller highlight, larger values create a broader, more uniform shine.

Specular Strength: likely adjusts the overall opacity and brightness of the shine or highlight. higher values are brighter and more prominent, lower values are more transparent. think of it as a modifier for the specular mask.
Spore is creative, even the mods and hacks.
Or, should I say, especially the mods and hacks?

Now currently making content for the Life is Strange and Portal communities. Check me out on YouTube
User avatar
Shattered
Sentient
Sentient
Posts: 272
Joined: Sat Apr 25, 2015 3:22 pm
Age: 26

Re: How to create new Spore part models (animated parts!)

Unread post by Shattered »

I'm glad all the animation names are here. it will really help with my mod... I didn't know the same animation name was used for graspers and eyes as well as mouths. That's really helpful, because I am branching off from mouths and making different parts now.
Thanks for killing me
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

Just a question on animations, since I'm not seeing any names for "close," am I correct in thinking that for a mouth you would only need the "open mouth" animation for both opening and closing? That is the game doesn't actually play the animation from beginning to end but moves through it depending on how wide open the mouth needs to be?
User avatar
emd
Admin
Admin
Posts: 619
Joined: Sun Dec 09, 2012 6:21 am

Re: How to create new Spore part models (animated parts!)

Unread post by emd »

tklarenb wrote:Just a question on animations, since I'm not seeing any names for "close," am I correct in thinking that for a mouth you would only need the "open mouth" animation for both opening and closing? That is the game doesn't actually play the animation from beginning to end but moves through it depending on how wide open the mouth needs to be?
Yes, I think that's what it does. If I remember correctly, at frame 0 the mouth is closed and at frame 30 it's opened.
Spore Modding Tools:
[list]
[*] SporeModder FX
[*] SporeModder Blender Addons
[*] Spore ModAPI SDK[/list]
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

I managed to get the mouth close animation on a modded T. rex head, but I'm running into two issues. First, the mouth doesn't seem to want to be partially open, when a vanilla mouth is only partway open the modded mouth opens all the way. Second, I'm getting some weird deformations in the jaw, the strange part being it's only part of the jaw, the area in the snout is fine but around the jaw hinge it's stretched out sideways. Here's a pic showing the issue as well as my rig setup in Blender in case that's the source of the issue (I barely use Blender so I don't know if there's some stuff I should be aware of that's different from my usual 3ds Max).
Image
rob55rod
Admin
Admin
Posts: 4086
Joined: Sat Jul 02, 2011 9:50 am

Re: How to create new Spore part models (animated parts!)

Unread post by rob55rod »

tklarenb wrote:I managed to get the mouth close animation on a modded T. rex head, but I'm running into two issues. First, the mouth doesn't seem to want to be partially open, when a vanilla mouth is only partway open the modded mouth opens all the way. Second, I'm getting some weird deformations in the jaw, the strange part being it's only part of the jaw, the area in the snout is fine but around the jaw hinge it's stretched out sideways. Here's a pic showing the issue as well as my rig setup in Blender in case that's the source of the issue (I barely use Blender so I don't know if there's some stuff I should be aware of that's different from my usual 3ds Max).
Image
Does the root bone start at (0, 0, 0)?
Having trouble with the Spore ModAPI Launcher Kit? Get help here!

If you're reading this, you have my permission to build off of my mods as long as I am credited. Please don't mirror my work unaltered, unless I no longer provide a working download.
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

No, it does not, 0 is where the jaw and skull bones branch from the root bone, wasn't aware I should have it start at 0.
User avatar
emd
Admin
Admin
Posts: 619
Joined: Sun Dec 09, 2012 6:21 am

Re: How to create new Spore part models (animated parts!)

Unread post by emd »

The addons are still very untested so they might have bugs. Could you send me the .blend file for that part so i cant ry to investigate what happens, please?
Spore Modding Tools:
[list]
[*] SporeModder FX
[*] SporeModder Blender Addons
[*] Spore ModAPI SDK[/list]
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

Emd4600 [ASR] wrote:The addons are still very untested so they might have bugs. Could you send me the .blend file for that part so i cant ry to investigate what happens, please?
Here you go: http://www.mediafire.com/file/ycunf7fo6co9i6d/trex.zip
User avatar
Vallachan
Sentient
Sentient
Posts: 1352
Joined: Thu Mar 17, 2011 5:26 pm
Age: 24

Re: How to create new Spore part models (animated parts!)

Unread post by Vallachan »

Emd4600 [ASR] wrote:Yes, I think that's what it does. If I remember correctly, at frame 0 the mouth is closed and at frame 30 it's opened.
in that case, you can also make it be a more complex animation in which the model does something different at halfway open than fully open... interesting.
I assume this means the animation could also just have min-max frames as 0 and 1.
Camßεn wrote:shinyness related stuff
here's a visual example I pulled from the valve dev wiki. just think of whats labeled "specular" as the strength.
Image
Spore is creative, even the mods and hacks.
Or, should I say, especially the mods and hacks?

Now currently making content for the Life is Strange and Portal communities. Check me out on YouTube
User avatar
emd
Admin
Admin
Posts: 619
Joined: Sun Dec 09, 2012 6:21 am

Re: How to create new Spore part models (animated parts!)

Unread post by emd »

Camßεn wrote:
Emd4600 [ASR] wrote:Yes, I think that's what it does. If I remember correctly, at frame 0 the mouth is closed and at frame 30 it's opened.
in that case, you can also make it be a more complex animation in which the model does something different at halfway open than fully open... interesting.
I assume this means the animation could also just have min-max frames as 0 and 1.
Camßεn wrote:shinyness related stuff
here's a visual example I pulled from the valve dev wiki. just think of whats labeled "specular" as the strength.
Image
You can have the min-max frames as 0 and 1, but the number of frames determines the length of the animation. So that would be only 0.042 seconds long.

And keep in mind that I'm not sure those values are actually Specular exponent and such, that's still to be fully tested.
Spore Modding Tools:
[list]
[*] SporeModder FX
[*] SporeModder Blender Addons
[*] Spore ModAPI SDK[/list]
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

tklarenb wrote:I managed to get the mouth close animation on a modded T. rex head, but I'm running into two issues. First, the mouth doesn't seem to want to be partially open, when a vanilla mouth is only partway open the modded mouth opens all the way. Second, I'm getting some weird deformations in the jaw, the strange part being it's only part of the jaw, the area in the snout is fine but around the jaw hinge it's stretched out sideways. Here's a pic showing the issue as well as my rig setup in Blender in case that's the source of the issue (I barely use Blender so I don't know if there's some stuff I should be aware of that's different from my usual 3ds Max).
Image
Managed to figure out how to fix the stretching problem, I just didn't catch it at first since I'm used to 3ds max skinning compared to Blender skinning. 3ds max automatically normalizes vertex weights, while Blender doesn't, so the vertexes that were connected to more than one bone had weights that added up to more than 1. For anyone else who has that problem just click the "normalize all" button in the weight paint tools tab.
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

Sorry for the double post, but I've run into another problem. I've got several mouth parts, each with just the mouth open animation. They all work perfectly fine in the editor, but in game they don't animate. I'm not sure exactly what I could be missing, I've dug through SRNS and several other mods with animated parts and am not finding any differences between their files and mine. Has anyone else had experience with this problem?
rob55rod
Admin
Admin
Posts: 4086
Joined: Sat Jul 02, 2011 9:50 am

Re: How to create new Spore part models (animated parts!)

Unread post by rob55rod »

Copy the models to the "part_models_lod1~" folder.
Having trouble with the Spore ModAPI Launcher Kit? Get help here!

If you're reading this, you have my permission to build off of my mods as long as I am credited. Please don't mirror my work unaltered, unless I no longer provide a working download.
User avatar
tklarenb
Tribal
Tribal
Posts: 60
Joined: Sat Feb 19, 2011 2:39 pm

Re: How to create new Spore part models (animated parts!)

Unread post by tklarenb »

rob55rod wrote:Copy the models to the "part_models_lod1~" folder.
I had assumed that was the problem so I already tried that before posting here, but it doesn't appear to have done anything.
rob55rod
Admin
Admin
Posts: 4086
Joined: Sat Jul 02, 2011 9:50 am

Re: How to create new Spore part models (animated parts!)

Unread post by rob55rod »

tklarenb wrote:
rob55rod wrote:Copy the models to the "part_models_lod1~" folder.
I had assumed that was the problem so I already tried that before posting here, but it doesn't appear to have done anything.
Okay, that is weird.

Yeah, I'll tell Emd to check this thread, hopefully he'll have an answer or something.
Having trouble with the Spore ModAPI Launcher Kit? Get help here!

If you're reading this, you have my permission to build off of my mods as long as I am credited. Please don't mirror my work unaltered, unless I no longer provide a working download.
Post Reply Previous topicNext topic

Return to “Tutorials”