Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial: Transform FBX to Collada and change its origin #195

Merged
merged 6 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tutorials.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Ignition @IGN_DESIGNATION_CAP@ library and how to use the library effectively.
8. \subpage simple_demo "Simple demo"
9. \subpage text_geom "Text geom"
10. \subpage particles "Particles"
12. \subpage transform_fbx_to_dae "Transform FBX to collada"

## License

Expand Down
37 changes: 37 additions & 0 deletions tutorials/21_transform_fbx_to_dae.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
\page transform_fbx_to_dae Transform FBX to Collada
ahcorde marked this conversation as resolved.
Show resolved Hide resolved

This tutorial shows how to transform a mesh in fbx format to collada with Blender and and change its origin.
ahcorde marked this conversation as resolved.
Show resolved Hide resolved

You can download Blender +2.81 from [this web site](https://www.blender.org/download/).

# Importing the FBX file

Remove all the elements in the scene. You can select the elements pushing `Ctrl + Shift + left mouse button`
from the list of elements that you can see in the right top corner of the Blender window.

@image html img/transform_fbx_to_dae/remove_elemets.gif

Then import your FBX model. `File -> Import -> Fbx (.fbx).`

@image html img/transform_fbx_to_dae/import_model.gif

# Modify properties of the model

Now we can edit some of the properties of the object.

## Change the origin of the model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just want to confirm that this is an optional step right (and not specific to fbx format)? I think some of our models (usually static background models) have offset on purpose so that when we add the model to the scene, we can just leave the pose at 0 and it'll be at the right location.

If it's an optional step, can we add something like

Sometimes a mesh may have an origin at an offset from the desired location. For example, you may want to move the origin of a robot arm to the base or move the origin of a wheel to its center.


Select the object by pushing the letter `a` and enter to `Edit mode` by pushing `Tab`.
Select the part of the object at which you’d like to place the origin point (vertex, edge or face).
When we are ready push `Shift + s` to bring up the *snap menu* and select `Cursor to active` to locate
the Blender cursor (red/white circle thing) in the selected new place.
Switch back to `Object Mode` and see the Blender cursor where your future origin is going to be.
In the `Options` menu select `Origins` and then select in the object menu `Object -> Set Origin -> Origin to 3D Cursor`.
Now your origin it's the desired place. We can move this origin to another place by editing the
ahcorde marked this conversation as resolved.
Show resolved Hide resolved
transform dialog.

@image html img/transform_fbx_to_dae/edit_orgin.gif

# Exporting to Collada

Finally export your model to collada `File -> Export -> Collada (default)(.dae).`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.