Garry's Mod

Garry's Mod

1,251 个评价
3D Pixel Art Editor
2
2
2
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 卡通, 快乐
文件大小
发表于
更新日期
357.397 KB
2021 年 3 月 16 日 上午 3:05
2021 年 3 月 16 日 上午 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"
121 条留言
chopchop 7 月 24 日 上午 8:19 
painis?1!
Thunderwing DS 4 月 4 日 上午 8:08 
is there a way to fix the color/load image window I keep getting soft locked sometimes since the main window doesn't show and theres no way to close the color window so I can't do anything
a cool pigeon 2024 年 8 月 18 日 上午 11:45 
it just makes scribbles
it dont work
Mystic Flour Cookie 2024 年 1 月 24 日 上午 3:53 
i think its broken
Илья Начос 2023 年 10 月 27 日 上午 3:18 
No work
garbage gordo 2023 年 9 月 17 日 上午 6:33 
FINALY. I CAN MAKE MC 2D BLOCKS
sp4rt4nx666 2023 年 5 月 30 日 上午 11:52 
if i have any problem with this mod its that there isnt enough pixels to make big things
DitieBun 2023 年 5 月 1 日 上午 6:44 
this is pretty sick actually, does it work with dupes?
Mortis 2023 年 4 月 11 日 上午 2:17 
Stary mam problem nie wiem jak to obsługiwać albo coś tworzyć...
:steamsad:
CaydenGames233 2023 年 3 月 21 日 下午 4:20 
Oh so THIS is how they made the 8-bit fred pack..