Some entities with tall don't get translucent

Things that we don't consider worth fixing at this moment.
User avatar
y.petremann
Filter Inserter
Filter Inserter
Posts: 449
Joined: Mon Mar 17, 2014 4:24 pm
Contact:

Some entities with tall don't get translucent

Post by y.petremann »

I'm making a mod for elevated logistics, I've defined a belt-ramp which is a linked-belt and tall
when using the toggle visibility of tall entities, the belt-ramp became unselectable which is expected, but doesn't get translucent.
It's expected that an entity which is tall would get translucent

Code: Select all

data:extend {
  {
    type = "linked-belt",
    name = "belt-ramp",
    tall = true,
    icons = { { icon = "__elevated-logistics__/graphics/icons/belt-elevator.png", icon_size = 64 } },
    flags = { "placeable-neutral", "player-creation" },
    minable = { mining_time = 0.1, result = "belt-ramp" },
    max_health = 100,
    corpse = "small-remnants",
    collision_box = { { -0.4, -0.4 }, { 0.4, 0.4 } },
    collision_mask = collision_mask,
    selection_box = { { -0.5, -0.5 }, { 0.5, 0.5 } },
    water_reflection = build_water_reflection({ "0013", "0014", "0015", "0016" }),
    structure = {
      direction_in  = {
        north = build_layers("0013", color, {0,-0.5}),
        east  = build_layers("0014", color, {0.5, 0}),
        south = build_layers("0015", color, {0, 0.5}),
        west  = build_layers("0016", color, {-0.5,0})
      },
      direction_out = {
        north = build_layers("0017", color, {0,-0.5}),
        east  = build_layers("0018", color, {0.5, 0}),
        south = build_layers("0019", color, {0, 0.5}),
        west  = build_layers("0020", color, {-0.5,0})
      }
    },
    belt_animation_set = base_belt.belt_animation_set,
    animation_speed_coefficient = base_belt.animation_speed_coefficient,
    speed = base_belt.speed
  }
}
09-20-2026, 10-29-51.png
09-20-2026, 10-29-51.png (285.42 KiB) Viewed 57 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4890
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Some entities with tall don't get translucent

Post by boskid »

Thanks for the report however i am not considering this to be a bug, this is working outside of what "EntityPrototype::tall" was intended to be used with. Belts rendering is quite expensive due to items on belt rendering so they are split in 2 parts: structure rendering and items rendering, where items rendering is not fully aware of exact belt pieces those items are rendered on. If belts were expected to be translucent when marked as tall, it would be just the structure that would be tinted and items themselves would remain opaque. I am not convinced i want item on belts rendering to account for belt connectable being marked as tall.
User avatar
y.petremann
Filter Inserter
Filter Inserter
Posts: 449
Joined: Mon Mar 17, 2014 4:24 pm
Contact:

Re: Some entities with tall don't get translucent

Post by y.petremann »

I understand that the belt part (and item on top) are tricky to make transparent, can at least the structure part be transparent ?

I think that any modder that tell the entity to be tall has similar assumption.
Post Reply

Return to “Won't fix.”