Difference between revisions of "User:Ashe/Sandbox3"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 1: Line 1:
{{hatnote|{{#if:{{{this|}}}|{{lang
+
== Requirements ==
| en = This article is about
+
* To make item demonstration thumbnails, you will need:
| es = Este artículo trata sobre
+
** The ability to use a monitor resolution of at least 1920x1080 (preferably 2560x1440)
}} {{{this}}}.|}} {{lang
+
** Image editing software (Adobe Photoshop, GIMP, Paint.NET, etc.) (This tutorial assumes Adobe Photoshop.)
| en = For
+
** Grab the thumbnails from [[:Category:Item demonstration thumbnails]]
| es = Para
+
** A program to take screenshots (Windows 10/11's native Snip & Sketch, Greenshot, etc.)
}} {{#if:{{{for|}}}|{{{for}}}|{{lang
+
** '''OPTIONAL''': An AI upscaling program
| en = other uses
+
| es = otros usos de este término
+
== Procedure ==
}}}}, {{lang
+
* Configure HLMV as according to [[Help:Model Viewer]]. After all of that is done, run HLMV.
| en = see
+
* Load the model that you need from File -> Load Model. (Ex. c_energy_drink for Bonk! Atomic Punch or Crit-a-Cola). If you need help in finding the model, open "items_game.txt", located in "tf/scripts/items" and use your favorite text editor to search for the name of the thing you need.
| es = {{#if:{{{2|}}}|véanse|véase}}
+
* Positioning:
}} [[{{{1}}}{{#if:{{{l1|}}}|{{!}}{{{l1}}}|}}]]{{#if:{{{2|}}}|&nbsp;{{#switch: {{{cop}}} |si|sí|yes = e| #default = {{common string|and}}}} [[{{{2}}}{{#if:{{{l2|}}}|{{!}}{{{l2}}}|}}]]|}}.}}<noinclude>
+
** For non-melee weapons and cosmetic items, position the model so that the front of it is facing to the right.
<!-- {{translation switching|en, es}} -->
+
** For melee weapons, position it so that it's standing up and is tilted to the right slightly.
{{doc begin}}
+
** For all models, rotate the light source so that the model is slightly shaded near the lower left; the light source should be towards the upper-right.
=== Usage ===
+
** For item set thumbnails, try to make the full-body shot of the model resemble the header image on the actual set's page. Make sure it's facing to the right, of course.
{{tlx|Other uses|this|for|1|l1|2|l2}}
+
* After you have positioned the model, go to Options -> Background Color. Set the background to pure white. Take a picture of HLMV; how you do this doesn't matter, as long as you can get it losslessly (Snip & Sketch: Use Win + Shift + S, Greenshot: Go to Notification area, click on Greenshot icon, capture HLMV. Use the option "Capture last region" in next steps)
 
+
* Open the image editor of your choice; load the image with the white viewport background.
{{code|this}}
+
* Go back to HLMV, and set the Background color to black. Do the same procedure for getting the image, and then load the resulting image in your image editor.
:First parameter is for text inserted before "For" and after "This article is about...". If no value is inserted, the text "This article is about [PARAMETER]." won't be shown.
+
* Re-open HLMV, set the background color through RGB values:
 
+
** 52 for Red
{{code|for}}
+
** 47 for Green
:Second parameter is for text inserted before ", see" and after "For...". Default value is "other uses".
+
** 51 for Blue
 
+
** Capture an image of this.
{{code|1}}<br>
+
* Paste the white background image over the black background, and place the TF2 brown image over the white image.
{{code|2}} (OPTIONAL)
+
* If neccessary, crop all of the images so that only the HLMV viewport is visible.
:Links
+
* The following advice is for Adobe Photoshop, adjust the instructions as neccessary for whatever image editing software you are using: hide the TF2 brown background layer, and set the layer mode for the white background image to "Difference". Select the white area of the result (preferably through selecting the Color Range), and then un-hide the TF2 brown layer. Invert the selection, and copy the area. Paste into the thumbnail.
 
+
* Ideally, when pasted into the thumbnail, the weapon image should only be a little larger than the TF2 logo in the background, unless the weapon is very wide (Scattergun, Force-a-Nature); if necessary, resize the weapon image.
{{code|l1}}<br>
+
** If your image is small compared to the thumbnail, you may use an AI upscaling program (don't upscale it too much, 2x should be fine).
{{code|l2}} (OPTIONAL)
+
* After you have positioned the weapon image on the template to your liking (probably a good idea to center it by selecting the gray with TF2 logo area in the lower right area of the template), save the image as a PNG, and upload it to the Weapon Demonstration page. If you need to, ask [[User:WindPower|WindPower]] <!-- or [[User:Ashe|Ashe]] lol -->to put the thumbnail on the Wiki YouTube channel.
:Custom name for links
 
 
 
{{code|<nowiki>cop=si</nowiki>}} (SPECIAL, ONLY FOR SPANISH)
 
:''English'': Necessary to add if the second link starts with "I". Changes the conjunction "y" to "e". Only use in spanish pages!
 
:''Español'': Necesario añadir si el segundo enlace inicia con «I». Cambia la conjunción copulativa «y» a «e». ¡Solo usar en páginas en español!
 
 
 
=== Examples ===
 
{{code|<nowiki>{{User:Ashe/Sandbox3|this=sandbox3|for=sandbox2|User:Ashe/Sandbox2|l1=this page}}</nowiki>}}
 
:{{User:Ashe/Sandbox3|this=sandbox3|for=sandbox2|User:Ashe/Sandbox2|l1=this page}}
 
 
 
{{code|<nowiki>{{User:Ashe/Sandbox3|this=the map|Medic}}</nowiki>}}
 
:{{User:Ashe/Sandbox3|this=the map|Medic}}
 
 
 
{{code|<nowiki>{{User:Ashe/Sandbox3|Shako}}</nowiki>}}
 
:{{User:Ashe/Sandbox3|Shako}}
 
 
 
{{code|<nowiki>{{User:Ashe/Sandbox3|Shako|Eagle|l2=American bird}}</nowiki>}}
 
:{{User:Ashe/Sandbox3|Shako|Eagle|l2=American bird}}
 
</noinclude>
 

Revision as of 16:10, 30 January 2022

Requirements

  • To make item demonstration thumbnails, you will need:
    • The ability to use a monitor resolution of at least 1920x1080 (preferably 2560x1440)
    • Image editing software (Adobe Photoshop, GIMP, Paint.NET, etc.) (This tutorial assumes Adobe Photoshop.)
    • Grab the thumbnails from Category:Item demonstration thumbnails
    • A program to take screenshots (Windows 10/11's native Snip & Sketch, Greenshot, etc.)
    • OPTIONAL: An AI upscaling program

Procedure

  • Configure HLMV as according to Help:Model Viewer. After all of that is done, run HLMV.
  • Load the model that you need from File -> Load Model. (Ex. c_energy_drink for Bonk! Atomic Punch or Crit-a-Cola). If you need help in finding the model, open "items_game.txt", located in "tf/scripts/items" and use your favorite text editor to search for the name of the thing you need.
  • Positioning:
    • For non-melee weapons and cosmetic items, position the model so that the front of it is facing to the right.
    • For melee weapons, position it so that it's standing up and is tilted to the right slightly.
    • For all models, rotate the light source so that the model is slightly shaded near the lower left; the light source should be towards the upper-right.
    • For item set thumbnails, try to make the full-body shot of the model resemble the header image on the actual set's page. Make sure it's facing to the right, of course.
  • After you have positioned the model, go to Options -> Background Color. Set the background to pure white. Take a picture of HLMV; how you do this doesn't matter, as long as you can get it losslessly (Snip & Sketch: Use Win + Shift + S, Greenshot: Go to Notification area, click on Greenshot icon, capture HLMV. Use the option "Capture last region" in next steps)
  • Open the image editor of your choice; load the image with the white viewport background.
  • Go back to HLMV, and set the Background color to black. Do the same procedure for getting the image, and then load the resulting image in your image editor.
  • Re-open HLMV, set the background color through RGB values:
    • 52 for Red
    • 47 for Green
    • 51 for Blue
    • Capture an image of this.
  • Paste the white background image over the black background, and place the TF2 brown image over the white image.
  • If neccessary, crop all of the images so that only the HLMV viewport is visible.
  • The following advice is for Adobe Photoshop, adjust the instructions as neccessary for whatever image editing software you are using: hide the TF2 brown background layer, and set the layer mode for the white background image to "Difference". Select the white area of the result (preferably through selecting the Color Range), and then un-hide the TF2 brown layer. Invert the selection, and copy the area. Paste into the thumbnail.
  • Ideally, when pasted into the thumbnail, the weapon image should only be a little larger than the TF2 logo in the background, unless the weapon is very wide (Scattergun, Force-a-Nature); if necessary, resize the weapon image.
    • If your image is small compared to the thumbnail, you may use an AI upscaling program (don't upscale it too much, 2x should be fine).
  • After you have positioned the weapon image on the template to your liking (probably a good idea to center it by selecting the gray with TF2 logo area in the lower right area of the template), save the image as a PNG, and upload it to the Weapon Demonstration page. If you need to, ask WindPower to put the thumbnail on the Wiki YouTube channel.