Developer knowledge network · moderated exchange

UnreliableCode 커뮤니티

개발자 연구, 리버스 엔지니어링 및 코딩 커뮤니티

Knowledge index살다
4Categories
919Threads
2.8K게시물
Release

Visualizing Ore Nodes (Sulfur, Metal, Stone) with world distance labels

imgui_artisan
UI Designer
MEMBER
대표: 202
가입 날짜: Apr 2019
게시물: 54
감사해요: 28
1개월 전 · Jul 16, 2026 6:55 PM
#1

In BaseNetworkable, match prefab name strings for resource nodes:

  • ore_sulfur -> Gold / Yellow label: [SULFUR ORE]
  • ore_metal -> Silver / Cyan label: [METAL ORE]
  • ore_stone -> Gray label: [STONE ORE]
CPP
Vector2 screenPos;
if (WorldToScreen(nodePos, screenPos, viewMatrix, screenW, screenH)) {
    float dist = (nodePos - localPlayerPos).Length();
    if (dist < 300.0f) {
        ImGui::GetWindowDrawList()->AddText(ImVec2(screenPos.x, screenPos.y), 
            IM_COL32(255, 215, 0, 255), 
            Format("Sulfur Ore [%.0fm]", dist).c_str());
    }
}
rust_recoil_king
Member
MEMBER
대표: 190
가입 날짜: May 2022
게시물: 5
감사해요: 48
1개월 전 · Jul 17, 2026 12:30 AM
#2

Finding sulfur nodes in snow biomes takes 2 minutes with this. Color-coded labels look great.

matrix_math_guy
Math Specialist
MEMBER
대표: 105
가입 날짜: Aug 2018
게시물: 52
감사해요: 41
1개월 전 · Jul 17, 2026 12:46 PM
#3

Added distance filtering slider in menu (50m to 500m) to keep screen clutter minimal.