๐Ÿ“–

ACE Wiki

The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.

Try:
๐Ÿ’ป
Developer DocsAPI Reference

๐Ÿ–ผ๏ธRendering

198 articles

Sort by:
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

War Thunder to p2m pipeline

The frowned-upon part is importing Blender models into p2m. The pipeline is: take a model from War Thunder, import it into Blender, cut it into parts for p2m, aโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Compiling a custom GMod model

Export to the right format in Blender, import into a compiler, compile both the model AND its material, then place them in the correct materials/models folders.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

render.readPixel returns alpha; RenderView for offscreen

render.readPixel() returns RGBA including alpha - for reading game textures render the view to an RT first (render.RenderView with origin/angles/fov params) theโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Fake outline via scaled-down black RT

Draw the shape to a render target, draw the RT scaled slightly larger in black behind the main draw - classic RT outline trick; also lowering FOV approximates oโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

http.get regex limit ~15000 chars

Starfall's regex engine caps pattern/search length around 15000 chars - parsing large steamcommunity HTML pages hits this; fetch smaller endpoints or parse manuโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Anti-materiel rifle damage unchanged

The ammo itself is unchanged since the old SWEPs, so it still does 83 damage. Only the mechanics of how the guns work were changed.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Loading a texture from a file written by file.writetemp

Use render.createFromImage("data/sf_filedata/file.jpg", "smooth") to create a material directly from the saved image (any resolution). Also make sure you load iโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Material on custom prop invisible - missing mesh

You need to assign a mesh - the default mesh has no UV mappings so textured materials render nothing.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Custom OBJ model textures misaligned

textureurl textures must be 1024x1024 (there's a callback that auto-resizes); downloading to temp and setting the texture can bypass the dimension limit. By defโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Cubemap/envmap materials in SF

Cubemaps need the envmap flag set when the material is created - $flags isn't a normal keyvalue so setInt may not cover it; try setting the flag and calling theโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Getting a prop's bumpmap texture

Bumpmap is a shader parameter ($bumpmap or similar) - check the entity's keyvalues / the list of shader parameters, or the 'bumpmap' SF example. Other material โ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ–ผ๏ธ
๐Ÿ–ผ๏ธRendering

Animating a texture on a hologram (spritesheet/proxy)

Use a material with a rendertarget as the basetexture and animate it - either via a spritesheet (all frames of a gif/video cropped into one texture, advance theโ€ฆ

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
Loading more...
๐Ÿ“

Help Improve the Wiki

We know our documentation can be better. Quality wiki content takes time and expertise. If you're experienced with ACE and want to help, we'd love your contributions!