Page 1 of 1
Layers of perspective ???
Posted: Sat Dec 24, 2016 6:50 pm
by Ace-Athor
Hi... I'm a beginner, my question is probably stupid

... I modified a sprite of a mod (factorissimo) and now when I connect a pipe down the factory, it passes over the roof.

I've been searching for a long time on the forum, but I'm not an English speaker, so I have difficulties to understand the subtleties, and I don't know the name for this. (Entity over another)
Re: Layers of perspective ???
Posted: Tue Dec 27, 2016 12:53 am
by darkfrei
See roboport config, it have some patch for overlapping another textures.
Re: Layers of perspective ???
Posted: Tue Dec 27, 2016 2:28 pm
by darkfrei
In data\base\prototypes\entity\assemblerpipes.lua you can find how it was added to the standard assemblers:
Code: Select all
function assembler2pipepictures()
return
{
north =
{
filename = "__base__/graphics/entity/assembling-machine-2/pipe-north.png",
priority = "extra-high",
width = 41,
height = 40,
shift = {0.09375, 0.4375}
},
east =
{
filename = "__base__/graphics/entity/assembling-machine-2/pipe-east.png",
priority = "extra-high",
width = 41,
height = 40,
shift = {-0.71875, 0}
},
south =
{
filename = "__base__/graphics/entity/assembling-machine-2/pipe-south.png",
priority = "extra-high",
width = 41,
height = 40,
shift = {0.0625, -1}
},
west =
{
filename = "__base__/graphics/entity/assembling-machine-2/pipe-west.png",
priority = "extra-high",
width = 41,
height = 40,
shift = {0.78125, 0.03125}
}
}
end
Re: Layers of perspective ???
Posted: Fri Dec 30, 2016 3:54 am
by Ace-Athor
Thank you for your reply...
I tried adding a patch (base_patch) to hide the entry of pipes unsuccessfully ... I keep the same size as the original picture.
Maybe I should reduce the size of my patch and ( shift ) it after. Or apply a ( render_layer ) or a ( final_render_layer ).
We should be able to shift the render layer to be easier...
Re: Layers of perspective ???
Posted: Fri Dec 30, 2016 6:35 pm
by aubergine18
Did you ever find solution to your problem? I have similar issue when using underground pipes for wooden bridges - I was unable to get the pipe end to be on the bottom (ground) layer.
Re: Layers of perspective ???
Posted: Fri Dec 30, 2016 7:52 pm
by Arch666Angel
You could try to make the frames higher, e.g. add more empty space to the top and bottom of the picture. The renderer seems to put other things in front/top if they are in the lower half of another sprite.
Re: Layers of perspective ???
Posted: Sun Jan 15, 2017 2:26 pm
by Ace-Athor
Sorry for the late time reply...
Ha yes thank... I know what you says, because the layer switch at the middle of the sprite, if I make more empty space by adding just one pixel at the bottom the midle of the sprite (so the layer) will be down too. I will try this...