Difference between revisions of "Help:Contents"

From Minetest Wiki
Jump to navigation Jump to search
m (Added Todo)
Line 51: Line 51:
 
Please use PNG for screenshots, not JPEG (JPEG provides lossy compression).
 
Please use PNG for screenshots, not JPEG (JPEG provides lossy compression).
  
=====Transparent mob pictures=====
+
=====Creating transparent mob pictures=====
'''Blender'''<br />
+
'''Blender'''
-move to the default 3d view<br />
+
* Move to the default 3D view.
-go to object mode and right click a bone if there is any press m to move them to another layer<br />
+
* Go to Object Mode, right-click a bone if there is any, and press M to move them to another layer.
-go under the camera tab and expand Shading - change Alpha from Sky to Transparent<br />
+
* Go under the Camera tab, expand Shading, and change Alpha from Sky to Transparent.
-press shift + c to reset camera and render picture<br />
+
* Press Shift + C to reset the camera and render the picture.
'''Ingame'''<br />
+
 
-Use [https://forum.minetest.net/viewtopic.php?f=11&t=13180 greenscreen mod] and make a wall out of whitescreen blocks.<br />
+
'''Ingame'''
-add this code to the init.lua to the mobs mod and rename modname with that mod name also rename all the character text with mob you want to take a picture of.<br />
+
* Use the [https://forum.minetest.net/viewtopic.php?f=11&t=13180 Green Screen] mod to make a wall out of white screen blocks.
 +
* Add this code to the init.lua file in the mobs mod, change <code>modname</code> to the mod's name, and change any character text to the corresponding text of the mob that you want to take a picture of.
 
<source lang="lua">minetest.register_node("modname:character_statue", {
 
<source lang="lua">minetest.register_node("modname:character_statue", {
 
   description = 'Character Statue',
 
   description = 'Character Statue',
Line 79: Line 80:
 
       },
 
       },
 
})</source>
 
})</source>
OR<br />
+
 
-Change walk velocity in mob.lua to 0.0000001 (this will stop mob from moving)<br />
+
''OR''
-spawn the mobs with the egg, disable the damage and make screenshots with F12<br />
+
 
<br />
+
* Change the mob's walk velocity in the Lua code to 0.0000001, which will virtually stop the mob from moving.
'''Gimp'''-making picture transparent<br />
+
* Disable damage, spawn the mob with its egg, and take screenshots with F12.
-press shift-o together for color picker - click on the background<br />
+
 
-then layer-transparency-color to alpha-choose the right color-press ok and the picture is transparent
+
'''Gimp''' (making the picture transparent)
 +
* Press Shift + O for the color picker and click on the background.
 +
* Then under Layer &#8594; Transparency &#8594; Color to Alpha, choose the right color, and click OK. Now the picture is transparent.
  
 
[[Category:Minetest (Root Category)]]
 
[[Category:Minetest (Root Category)]]

Revision as of 15:00, 12 April 2017

Languages Language: English • Deutsch • français • Bahasa Melayu

Wiki rules

  • Articles must be related to Minetest.
  • The wiki is not a place to store personal content, images…

Mod and custom game guidelines

  • Content from mods other than those in Minetest Game is allowed, however the fact that the item is not in Minetest Game and which mod it is from must be clearly stated.
    • Mods that place content on this wiki should create a subpage under “Mods” (eg. “Mods/More_Blocks/Stone_Tile”), listing the blocks, items, commands, etc that the mod provides.
    • If the mod is also part of a custom game, then the subpage should still be under “Mods”.
    • If the mod is only part of a custom game and not distributed as a separate mod, then the subpage must be under “Games” (eg. “Games/Carbone/Commands”).

Contributing

Help improving this wiki. Request for an account in the forums thread.

See the Todo page for a list of things that need to be done.

If you know another language, you may translate languages pages.

If you have some technical skills, you may also contribute to the development wiki.

Style

Naming images for mods

It is advised to name images for items, blocks, mobs, etc. like this: Item Name (Mod Name).png, Block Name (Mod Name).png, etc. For an example, see Mods/Protector/Protection.

Blocks

3D blocks used in the wiki (ex. Wooden Planks.png) are generated using Blender and the .blend file linked in this forum post created by Calinou.

Images are 150x150 PNGs and should have the front tile on the bottom-left face as in the game.

Items

Items (ex. Apple.png) are displayed in the wiki as 2D images ranging from 20² to 160² pixels.

It is advised to create a unique version of 160². If you use a 16² image, browsers will scale up the image using interpolation and the result will not look very clean.

Create images by extracting the 16² version available in the GitHub repository and scale them to 160². Do not use scaling interpolation so that pixelized appearance is maintained. For this task, you can use one of the following:

Note: currently many of the items are still 64².

Screenshots

Please use PNG for screenshots, not JPEG (JPEG provides lossy compression).

Creating transparent mob pictures

Blender

  • Move to the default 3D view.
  • Go to Object Mode, right-click a bone if there is any, and press M to move them to another layer.
  • Go under the Camera tab, expand Shading, and change Alpha from Sky to Transparent.
  • Press Shift + C to reset the camera and render the picture.

Ingame

  • Use the Green Screen mod to make a wall out of white screen blocks.
  • Add this code to the init.lua file in the mobs mod, change modname to the mod's name, and change any character text to the corresponding text of the mob that you want to take a picture of.
minetest.register_node("modname:character_statue", {
   description = 'Character Statue',
   drawtype = 'mesh',
   mesh = 'character.b3d',
   tiles = {'character.png'},
   inventory_image = 'character.png',
   groups = {not_in_creative_inventory=0},
   paramtype = 'light',
   paramtype2 = 'facedir',
   groups = {cracky=3, stone=1},
   selection_box = {
      type = 'fixed',
      fixed = {-1, -0.5, -1, 1, 3, 1}, -- Right, Bottom, Back, Left, Top, Front
      },
   collision_box = {
      type = 'fixed',
      fixed = {-1, -0.5, -1, 1, 3, 1}, -- Right, Bottom, Back, Left, Top, Front
      },
})

OR

  • Change the mob's walk velocity in the Lua code to 0.0000001, which will virtually stop the mob from moving.
  • Disable damage, spawn the mob with its egg, and take screenshots with F12.

Gimp (making the picture transparent)

  • Press Shift + O for the color picker and click on the background.
  • Then under Layer → Transparency → Color to Alpha, choose the right color, and click OK. Now the picture is transparent.