Arma 3 Scripting

Arma 3: Scope 3D

  • Also known as Arma 3 Scope 3D

Topic · Markdown · JSON · original wiki page

This page will show you how to make a 3D scope, step by step.

The black tunnel

Cut a black tunnel through the LOD ViewPilot, so it is see-through from aiming point of view. (Take advantage of one-sided polygons)

If the shape is unsuitable, don't be afraid to deform it - it will be visible only from 1st person, so it might not look so apparent.

Alpha planes

Add inside alpha planes, as described on the picture:

Sort alpha

Assign respective textures and materials to alpha planes

Look on example package for specifics and more detailed materials and textures setup.

The parallax effect of the holosight and the scope elements is activated inside .RVMAT (material). When you assign such material to a model, it will start working automatically.

Troubleshooting

If an error saying "collimator is probably not planar" is shown by the game, it means the active planes must be moved closer together in X axis and make their unwraps similar texel and size.

If you see light blue inside of the scope, alpha are incorrectly sorted, double check the step "Sort alpha".

If you see white inside scope, it means that at least a texture is missing.

There can be an issue in the game where your entire attachement will turn blue at certain ranges or view angles. This may have to do with a lack of resolution LOD, but this is not entirely certain. Make sure that you have up to 6 or 7 resolution LOD, as this seemed to have fixed it. This can also happen to other attachements (e.g. Bipods)