Inkipedia:3D Models: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Added weapons to do list)
Line 47: Line 47:
===Addon Structure===
===Addon Structure===
'''PIC OF ADDON'''
'''PIC OF ADDON'''
The main meat of the addon is its ability to rotate and render 3D models to form the pseudo-3D images you see around the wiki. However, it comes with a few helper functions to make your life easier when rendering the models.


The helper functions can be found under "Basic Settings" and help complete commonly used tasks on the model to prepare it for rendering. Their exact functions are as follows:
====Base armature====
This is to select the top-level Armature object of the model, which will dictate which model is rotated and processed. If something isn't working right, check that the correct armature is selected!
====Rotate and Scale====
Rotate and Scale does exactly what it says on the tin, rotates the model and scales it up so it's easier to navigate from the default Blender view. It relies on the fact that each model comes with the same starting rotation though, so take care to check it's done its job correctly.
====Position Cursor====
The addon rotates the 3D model around the 3D cursor when rendering, rather than object origin, since the origin is rarely at the centre of mass of the model. This button places the 3D cursor at an approximate midpoint of the model. Again, it's not infallible, so check that it looks approximately right before rendering.
====Position Camera====
This button positions the camera to look at the model side on, with enough margin around the edges to leave some space if the model grows when rotating. Check that the model is centred okay, and that fills the camera with a bit of margin.
====Fix Object Material====
For some reason, Splatoon models are imported with backfaces visible. This button simply disables this for all meshes, so that you don't have to do this yourself. You can easily see what it does to an imported model in Rendered view.
====Set HDRI====
This just adds a Skate Park HDRI to the scene to add some organic lighting.
<br><br>
Some further options are available in Advanced Settings:
====X Rotations====
Sets the number of rotations in the X axis displayed on the final image. More leads to a smoother rotation experience, at the cost of higher storage space.
====X Resolution and Y Resolution====
These determine the resolution of the image rendered by Blender, '''NOT''' the final generated image. I haven't really found a use for this, except to tweak aspect ratio, but I've left it in anyway.
====Output Format====
Does what it says on the tin. Choose between PNG (transparent) or JPEG (lower file size)
<br><br>
Then finally to render, there are the following options:
====Output Folder====
The folder where the final image will be placed. '''CAUTION:''' The addon uses folder called 'tmp' within the selected folder to store images. So maybe make a separate folder to store the outputs if you have a folder called tmp with important stuff.
====Render to Wiki Image====
Renders the final images, generates a weapon.{output format} file and a weaponoffsets.txt file with the description needed to get it to work.


=== Taking images ===
=== Taking images ===

Revision as of 22:45, 24 August 2021

Shortcut:
INK:3D

The 3D Models project's goal is to construct pseudo-3D images of the weapons in Splatoon that can be freely rotated.

Example

Template:!! This is not for the faint of heart. It requires a bit of knowledge on how Blender works, and a lot of time and patience since a lot of models will not be centered correctly by default, or would require to manually edit the textures, thus requiring plenty of tweaking to get them ready for the process.

Requirements

Eel construction worker.png
This page or section is under construction.
Please excuse its informal appearance while it is being worked on. We hope to have it completed as soon as possible!
Can you help us get it done?

The rendering system works as a Blender addon, so you'll need the latest version of Blender, which you can get here: TODO

You'll also need the latest version of the addon itself, where you can get here: TODO.

Select "Download Zip" from the download menu and you should be good to go.

Initial setup

If you have never used Blender before, you'll want to play around with it a bit to get used to the basics.

This might be a good video to follow, not really sure: https://www.youtube.com/watch?v=Z8sg0nHNTTo

Installation

Once you've got Blender up and running, you'll need to install the Addon itself. This is pretty straightforward. Open Edit->Preferences and select the Addons sub-menu.
Click on the "Install" button at the top right and then select the zip file you've downloaded.

You should see the SplatoonImageGenerator addon pop up. Tick the checkbox to the left of the menu to enable the addon.

Now that you've got the addon installed, you'll need to install the libraries the addon needs to run. Expand the menu that just appeared with the dropdown arrow, and click on "Install Dependencies". This will install the Python library Pillow link? so that it can be used by Blender.

In the case that the button doesn't work, or an error appears either near the button or on the bottom bar, don't panic! TODO Explanation of how to fix

Once you successfully install the required libraries, you should see a new category in the tools panel (press N on your keyboard to open the tools panel when in the 3d layout). That's it! You're all set up and ready to start loading in your models.

Getting Models

You can get almost all of the Splatoon models from https://www.models-resource.com/nintendo_switch/splatoon2/. The addon has only been tested with a select few weapon models, so don't be too surprised if it doesn't work out of the box for some of the other types. However, with a bit of tweaking, you should be able to take images of any model of your choice, Splatoon or otherwise!

Importing Models

Importing models is quite straightforward, simply File->Import->fbx, and select the model you'd like to take an image of.

Using the addon

Addon Structure

PIC OF ADDON The main meat of the addon is its ability to rotate and render 3D models to form the pseudo-3D images you see around the wiki. However, it comes with a few helper functions to make your life easier when rendering the models.

The helper functions can be found under "Basic Settings" and help complete commonly used tasks on the model to prepare it for rendering. Their exact functions are as follows:

Base armature

This is to select the top-level Armature object of the model, which will dictate which model is rotated and processed. If something isn't working right, check that the correct armature is selected!

Rotate and Scale

Rotate and Scale does exactly what it says on the tin, rotates the model and scales it up so it's easier to navigate from the default Blender view. It relies on the fact that each model comes with the same starting rotation though, so take care to check it's done its job correctly.

Position Cursor

The addon rotates the 3D model around the 3D cursor when rendering, rather than object origin, since the origin is rarely at the centre of mass of the model. This button places the 3D cursor at an approximate midpoint of the model. Again, it's not infallible, so check that it looks approximately right before rendering.

Position Camera

This button positions the camera to look at the model side on, with enough margin around the edges to leave some space if the model grows when rotating. Check that the model is centred okay, and that fills the camera with a bit of margin.

Fix Object Material

For some reason, Splatoon models are imported with backfaces visible. This button simply disables this for all meshes, so that you don't have to do this yourself. You can easily see what it does to an imported model in Rendered view.

Set HDRI

This just adds a Skate Park HDRI to the scene to add some organic lighting.



Some further options are available in Advanced Settings:

X Rotations

Sets the number of rotations in the X axis displayed on the final image. More leads to a smoother rotation experience, at the cost of higher storage space.

X Resolution and Y Resolution

These determine the resolution of the image rendered by Blender, NOT the final generated image. I haven't really found a use for this, except to tweak aspect ratio, but I've left it in anyway.

Output Format

Does what it says on the tin. Choose between PNG (transparent) or JPEG (lower file size)



Then finally to render, there are the following options:

Output Folder

The folder where the final image will be placed. CAUTION: The addon uses folder called 'tmp' within the selected folder to store images. So maybe make a separate folder to store the outputs if you have a folder called tmp with important stuff.

Render to Wiki Image

Renders the final images, generates a weapon.{output format} file and a weaponoffsets.txt file with the description needed to get it to work.

Taking images

Advanced Usage

Changing Rotation

Setting Materials

Changing Lighting

Uploading your image

Tips and debugging

Models Repositories

Help develop the addon!

Needed Features

Known Bugs

Github

Weapons

Needed weapons

Splatoon 2

Main
Shooters
Rollers
Chargers
Sloshers
Splatlings
Dualies
Brellas
Sub
Special

Splatoon

Main
Shooters
Rollers
Chargers
Sloshers
Splatlings
Sub
Special

Finished weapons