pXPolyPaint – Polygon Painting Script for 3ds Max

pXPolyPaint - Polygon Painting Script for 3ds Max

pX Poly Paint is a 3Ds Max script I felt the need to develop when I started creating #LowPoly style models. They are based on a fundamental principle: each face will have a single flat color from a texture pixel.

Then, we don’t need to make traditional UV Mapping, just map all the vertices of each polygon to a pixel in the texture because I want to use a texture, not a different material for each color. So just use a hands-on MAXScript and there it is.

Watch the demonstration video:

Right-click here to Download the script or see it on Github here.

This helps to make the UV Mapping + Texturing much quicker, and the size of the textures can be very small because they will act now as a color palette and you can even share the same tiny texture with many 3D models. The model featured in this post uses this 128x128px texture:

pXPolyPaint - Polygon Painting Script for 3ds Max

The UV Mapping looks like this, where dots are faces with all their vertices sharing the same pixel:

pXPolyPaint - Polygon Painting Script for 3ds Max

I think adopting this style and using the polygon painting tool is good for low budget game development, especially for mobile games. Besides the low texture sizes, the other advantage is that since faces are filled with flat colors you will never see texture pixelation and your low poly style 3D models will look nice on any high definition display.

Tool help

pXPolyPaint - Polygon Painting Script for 3ds Max

Installation/Testing: Run the macro script PolyPaint.ms, and find it under ‘pX Tools’ category as ‘Poly UV Painter’ when customizing your menus. (Or comment/disable first line on the code starting with macroScript before running it if you only want to try it without installing)

Requisites: The object to paint has to be an Editable Poly with applied material with a diffused bitmap.

– With the object selected click ‘Start Paint Tool’. It will display the texture on the window and auto-insert an Unwrap_UVW modifier.

  • Click on the image to select a texel color and paint over the 3D object.
  • Check ‘Mirror Paint’ to paint mirrored along the X-axis if your model is symmetrical.
  • ‘Spread’ value allows to increase the size of the “brush”.
  •  ‘Full Repaint’ to repaint the whole object or selected faces with the current color.
  • ‘Fill Area’ performs a flood fill algorithm on the polygons. (This was cool to implement).
  •  ‘Undo’ to undo operation made by this tool. Standard Max Undo will not work. 
  • Use Copy, Paste, Set buttons to copy, paste and set UV coords from clipboard.
  • ‘APPLY UV modifier’ collapses the stack to the Unwrap_UVW position, applying the UVs to the Editable_poly.
  • ‘Remap Texture with –>’ This allows you to replace the model texture while keeping as close as possible the current paint. For this the tool will analyze the polygon colors and find the most similar on the new bitmap provided.

Secret Tip: Press Alt+Click to pick the color right directly from the 3D object!

Still here!? Well then you deserve the bonus stuff:
Download the cute Lowpoly Owl for free here! (Use CC License)
Right click to Download the script or visit Github folder.

Enjoy!

Share

Popular Today

  • Free Low Poly Donald Trump 3D CharacterFree Low Poly Donald Trump 3D Character Low Poly Donald Trump 3D Character is a minimalist artistic representation inspired by the most relevant features of the real person. It is rigged in 3Ds Max and ready to use for animations and games. It also includes FBX format and Unity Demo. Brought for you by me, for FREE…
  • Free Low Poly Style Casual Couple 3D CharactersFree Low Poly Style Casual Couple 3D Characters I'm giving away for free download these male and female 3D rigged characters! Low Poly 3D style is not only attractive, but it's easy-to-handle, lightweight mesh data is ideal for mobile games and presentations. Characters very low in polygon count don't have to be ugly; the right handmade simplification preserving…
  • Downtown Couple Free 3D Characters in Low Poly StyleDowntown Couple Free 3D Characters in Low Poly Style New pair of 3D characters you can download for your animations, ideally for Unity mobile games with this optimized Low Poly style and a single small texture. He is a successful software engineer and she an emerging TikTok star. Specifications These models are made with 3Ds Max, with only around…