Garry's Mod
1,205 оценки
3D Pixel Art Editor
2
2
2
2
   
Награда
Добавяне към любими
В любими
Премахване от любими
Content Type: Addon
Addon Type: Tool
Addon Tags: Cartoon, Fun
Размер на файла
Публикуван на
Обновен на
357.397 KB
16 март 2021 в 3:05
16 март 2021 в 4:27
3 бележки за промени ( преглед )

Абониране, за да се свали
3D Pixel Art Editor

Описание

How to use
Go to Entities / Jakub Baku / 3D Pixel Art and spawn it. Press "E" (or any +use key), the Pixel art editor should pop up. You can draw on the canvas with left mouse button and erase with right mouse button. In the color mode the color's alpha controls the mixing of a color. Press Toggle Heightmap View to edit the height map. In this mode you paint a height value (color's alpha) with left mouse button and erase (set to 0) with right mouse button.

To save a pixel art type in a name in the text box and press "Save Image as". To load an image, type in the name of the image and press "Load Image". I've included two images with the addon by default: pixelpick and pixelabstract3, which you can load up and test / edit.

To apply the result click "Update".

I know the editor is a little bit clunky so there's an option of importing the images from, let's say, GIMP or any other editor.

Click C - > Edit Properties.. to change the PWidth (Pixelmap width), PHeight (Pixelmap height), PScale (scale of the rendered pixelart) or HeightMapScale (how high is the heightmap).

MAKE SURE TO "UPDATE" THE PIXEL ART after changing the scale, otherwise the render bounds will be messed up.

Importing/Exporting Pixel Arts
The pixel arts are stored as TARGA images, so you can make a custom pixel art with GIMP or any other image editing software and import it into the game!

Requirements:
  • The image's width or height must NOT be bigger than 100px. Otherwise it won't import.
  • The image must be in a TARGA format.
  • Must be a true color image (non indexed / colormapped)
  • Must be in top-left orientation and must NOT be RLE compressed.

After exporting as <name>.tga please change the extension to .txt, so it will be <name>.txt, and put the file in a garrysmod/data folder. Now just go into the Pixel art editor, type in <name> into the text box and click "Load Image". Update the pixel art and you should now see it in game :)

Alpha channel of an image is treated as a heightmap and visibility map:
alpha 0 - pixel invisible
alpha 1 - pixel visible, height 1
alpha x > 0 - pixel visible, height x

I recommend importing images WITHOUT an alpha channel thus no height map, and adding any height info in the pixel art editor in game, however if you want to do that in gimp just right click the layer -> Add Layer Mask and then Fill the entire area with r = 1, g = 1, b = 1 (010101 in HTML notation) and finaly paint the height info over that or even simpler: paint the height map or copy-paste it and then Colors -> Levels -> Output Levels 1 - 255.

FAQ
- My TGA does not import
- Make sure your targa's origin is top-left and it's not RLE compressed

- My pixel art is not fully-rendered
- 100x100 images tend to break the Mesh rendering system because of the overload. Try to keep
your image within 50x50.

- My pixel art does not show in the world, only in editor.
- Press "Update"
119 коментара
afton guy 18 авг. в 11:45 
it just makes scribbles
it dont work
i think its broken
Zlobniy_Sigma 27 окт. 2023 в 3:18 
No work
The ruling peeper 17 септ. 2023 в 6:33 
FINALY. I CAN MAKE MC 2D BLOCKS
sp4rt4nx666 30 май 2023 в 11:52 
if i have any problem with this mod its that there isnt enough pixels to make big things
DitieBun 1 май 2023 в 6:44 
this is pretty sick actually, does it work with dupes?
Mortis 11 апр. 2023 в 2:17 
Stary mam problem nie wiem jak to obsługiwać albo coś tworzyć...
:steamsad:
CaydenGames233 21 март 2023 в 16:20 
Oh so THIS is how they made the 8-bit fred pack..
Filsov 12 март 2023 в 5:33 
Аддон просто идеальный в рисовании, но когда хочешь создать типичную ситуацию то от нарисованного рисунка остаётся невидимый куб, который легко виден ночью
wraith 30 авг. 2022 в 21:19 
Oh wait nvm