LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Plane Triangles Primitives

Open NotZer0Two opened this issue 1 year ago • 20 comments

Goal Description

We need a triangle prefab because it's the fundamental building block of 3D games. Every mesh in the engine is already triangles under the hood. Quads? Triangulated. N-gons? Triangulated. The GPU literally won't draw anything else. Pretending triangles don't matter is pretending the renderer doesn't exist.

Why it matters as a prefab:

Debugging tool: lets us visualize core geometry and collision at the lowest level.

Prototyping: great for testing shading, UVs, normals, culling, and lighting without extra complexity.

Performance testing: isolate how the engine handles the smallest renderable primitive.

Teaching/onboarding: not everyone understands that the entire graphics pipeline is triangle-based. This forces clarity.

Procedural generation: having a triangle prefab avoids reinventing a base unit every time we create procedural meshes.

Accurate lighting + physics tests: triangles avoid distortions and math errors larger primitives introduce.

The engine already lives and dies by triangles. Adding a prefab isn't “extra” — it’s exposing the core mechanic that’s already doing all the work. It’s like adding a brick prefab in a building game. Why wouldn't you expose the thing the whole world is built from?

If someone still says no, they're not thinking about how GPUs work — they're thinking about aesthetics. This isn’t aesthetics. This is correctness and developer efficiency.

Short version: We aren’t adding a triangle prefab “for fun.” We’re adding it because the whole engine is made of triangles, and pretending otherwise wastes time and hides the truth of the pipeline.

Notes

Also — having a triangle prefab is straight-up useful for modeling. If we ever do in-engine mesh editing, procedural mesh building, or block-style construction, triangles give us:

The smallest, most precise modeling unit

Control over topology instead of letting auto-triangulation guess wrong

Clean subdivision and deformation foundations

Guaranteed predictable geometry for bevels, cuts, and booleans

Accurate UV seams so the texture doesn’t stretch like garbage

Artists already fight auto-generated triangles that cause shading artifacts, bad normals, or broken deformation. Giving them a raw triangle prefab means:

They can build precise low-poly shapes

They can lock geometry exactly how they want

They don't get surprise splits from the engine later

This isn't “just a triangle.” It’s literally the atom of 3D modeling.

Take it away and you’re building with mystery mesh. Give it to us, and we can build anything — clean and intentional.

NotZer0Two avatar Oct 31 '25 15:10 NotZer0Two

I, @Someone, approve this message

Someone-193 avatar Oct 31 '25 16:10 Someone-193

this^^^

officialvirtualrain avatar Oct 31 '25 22:10 officialvirtualrain

Yes we need this, map making would go to another level

elevatormusic22 avatar Nov 01 '25 15:11 elevatormusic22

This is very important. It helps majorly with optimization. I don't want to spend so many resources on something that could be done with a single triangle. And, opens so many more possibilities to map editing and schematic creation.

MaarwanBinked avatar Nov 01 '25 18:11 MaarwanBinked

Image

mawosl avatar Nov 01 '25 18:11 mawosl

Sierra Studios agrees with this message

Saskyc avatar Nov 11 '25 07:11 Saskyc

#triangleupdate

Unbistrackted avatar Feb 13 '26 22:02 Unbistrackted

Please Add Accepted tag

louis1706 avatar Feb 15 '26 10:02 louis1706

nw should really listen to this person🥵🥵🥵

Narcotraffic avatar Feb 20 '26 15:02 Narcotraffic

This is such a smart idea. I don’t see why they wouldn’t add it

dissles avatar Feb 20 '26 15:02 dissles

I'm gonna refer this crazy project that utilises triangles and allows blender usage in SCP:SL. https://github.com/Foiboss/TriangleScpSl

2052941.JPG

This would allow for much more optimised versions of this, which would redefine how building is done.

Saskyc avatar Apr 07 '26 19:04 Saskyc

Plz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need itPlz add this I need it

GoldenPig1205 avatar Apr 13 '26 05:04 GoldenPig1205

I've seen that NW has a bit of a problem, so for any NW staff who needs it here some useful files expl

Downloads.zip

aning how to do a triangle and my own example

https://github.com/user-attachments/assets/f065d8e8-8f64-4b40-a51d-afe8fb1bbf4e

NotZer0Two avatar Apr 17 '26 12:04 NotZer0Two

do or ill kill myself and i'll type a note that says northwood blackmailed to me

seksirakun avatar Apr 18 '26 18:04 seksirakun

northwood should add triangles to prove they care about their community

3m377 avatar Apr 27 '26 02:04 3m377

It would be cool for NW to add triangles, but so that they can only be seen from one side. I think this would solve a lot of complex performance problems when a lot of computer resources are spent on a simple object.

risottoman avatar Apr 28 '26 15:04 risottoman

Image

This has been a suggestion for 4 years, 5 months, and 2 days. Its only downvote is the automated one that the bot gives to every post. Why is this still unimplemented? Is NW lazy, or are they purposefully ignoring possibly the most requested feature from the entire development community in the game?

3m377 avatar May 19 '26 23:05 3m377

Dear NW, You could also just create some kind of CustomMeshAdminToy, which would allow us to change the verticies and the triangles of the toy's mesh. This would expand on this idea

michcio15 avatar May 24 '26 09:05 michcio15

https://docs.unity3d.com/ScriptReference/Mesh.html

michcio15 avatar May 24 '26 11:05 michcio15

I have tried to make it in my unity and came up with this prototype:

    public readonly struct MeshData
    {
        public readonly Vector3[] Vertices;
        public readonly int[] Triangles;

        public MeshData(Vector3[] vertices, int[] triangles)
        {
            Vertices = vertices;
            Triangles = triangles;
        }
    }

    public static class MeshDataReaderWriter
    {
        public static void WriteMeshData(this NetworkWriter writer, MeshData meshData)
        {
            writer.WriteArray(meshData.Vertices);
            writer.WriteArray(meshData.Triangles);
        }

        public static MeshData ReadMeshData(this NetworkReader reader)
        {
            Vector3[] vertices = reader.ReadArray<Vector3>();
            int[] triangles = reader.ReadArray<int>();
            return new MeshData(vertices, triangles);
        }
    }

And in the idk like CustomMeshPrimitiveToy

        public MeshFilter MeshFilter;

        [SyncVar(hook = nameof(ChangeMeshData))]
        public MeshData MeshData;

               public void ChangeMeshData(MeshData _, MeshData newMeshData)
        {
            Render(newMeshData);
        }

        public void Render(MeshData meshData)
        {
            Mesh mesh = new();


            mesh.vertices = meshData.Vertices;
            mesh.triangles = meshData.Triangles;

            // There is no need to recalculate bounds and normals on the server.
            if (NetworkClient.active)
            {
                mesh.RecalculateBounds();
                mesh.RecalculateNormals();
            }

            MeshFilter.mesh = mesh;
        }

michcio15 avatar May 24 '26 18:05 michcio15