Page 1 of 1

[Request] - Wood Rail Bridge

Posted: Wed Aug 16, 2017 3:55 pm
by TheSAguy
Hi,

I have Wooden rail that can cross water. Currently just using default rail.
Was hoping I could get slightly different rail images that look a little more like a Bridge vs Standard Rail.

Thanks.

Re: [Request] - Wood Rail Bridge

Posted: Wed Aug 16, 2017 6:29 pm
by d3x0r
This is probably no help at all; but figured I'd throw it out there.

Finished slicing functions in tool... download can be found here... viewtopic.php?f=135&t=51913

I sort of thought it would be easier to work with rail pictures in a single image instead of all the multiple images that they exist in right now.
I made a program that can composite and decompose rail images.... (the -composite flavor of the image in these shows the masks applied to the rails so you know what areas to avoid putting stuff in... The masks file is a png with the area that should be masked within each section drawn.)

https://drive.google.com/open?id=0B812E ... HppcXMxWjg (rail composits 2; standard factorio rails)
https://drive.google.com/open?id=0B812E ... U5zOXcyOWc (rail masks; probably not useful for others, was mostly a debug file for me)

https://drive.google.com/open?id=0B812E ... TB0U01DRDg (current scrap-rail composites)

composite for low res rail example. There are colored squares on the first composite image, all other images are just the image data. There are some small squares on the diagonals, these are overlaps of the sliced image where the diagonal peices are not clipped. This gives better coverage of the corners between diagonal and curved rail bits, but will overlayed on diagonals... the original images don't have any data there, but it is techincally available.... if it's semi-transparent background area it may overlap and be darker...
layer-composite.png
layer-composite.png (997.39 KiB) Viewed 7784 times
haven't actually finished the slicing part; but would only be a few hours to do so.

Re: [Request] - Wood Rail Bridge

Posted: Sat Aug 19, 2017 11:36 am
by d3x0r
Rough draft...
bridge-demo.jpg
bridge-demo.jpg (127.44 KiB) Viewed 7743 times
Edit: Thought maybe I should try and patch it into bridge rails...
bridge-demo2.jpg
bridge-demo2.jpg (219.71 KiB) Viewed 7737 times

Re: [Request] - Wood Rail Bridge

Posted: Sat Aug 19, 2017 9:29 pm
by d3x0r
Edit: Updated with better horizontals
Edit2: nevermind; low res version were displaced. have to fix my slicer...


(how do you show full res version?)
bridge-demo2.jpg
bridge-demo2.jpg (252.79 KiB) Viewed 7724 times
zipped wood bed graphics...
includes a script 'prototypes/wood_products/entities-update.lua (just copy this into tail of entities)

Didn't make remnant version

(.psd version)
https://drive.google.com/open?id=0B812E ... W9TOUY3NUE

did it in paint shop pro (.psp)
https://drive.google.com/open?id=0B812E ... kZkRXMzaW8

Re: [Request] - Wood Rail Bridge

Posted: Sat Aug 19, 2017 10:51 pm
by TheSAguy
d3x0r,
I think you removed the download, I only see the PSD.
I downloaded it earlier, but it's now missing. The version I did get has an offset issue with the low res version.
(HQ looked good)
Image

Re: [Request] - Wood Rail Bridge

Posted: Sat Aug 19, 2017 11:02 pm
by d3x0r
psd should still be shared... I did remove the rail download; I tested the low res version and saw that too.
have to figure out what's causing that; the position of high res and low res chops seems to be different for some reason. the vertical rails are aligned correctly :)

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 2:09 am
by d3x0r
Okay fixed alignment issues.

fixed my composite/slicer tool too ( viewtopic.php?f=135&t=51913 )


Dirt roads :)
demodirtroad.jpg
demodirtroad.jpg (152.64 KiB) Viewed 7717 times
paved roads ( this one probably needs layers...)
demogoodroad.jpg
demogoodroad.jpg (150.34 KiB) Viewed 7717 times

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 2:53 am
by d3x0r
bridge should have a drop shadow somehow... I'll work on that in a bit; need to do some work first :)

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 3:28 am
by d3x0r
I don't understand how to shadow this....

I did a simple drop shadow on the top layer (bars under the ties and the ties) that is a 45 degree drop (orange line)

So along the upper-left diagonal, it's obvious the poles should be shorter, 45 degree shadows (purple lines)
But then along the horizontal top, this stops making sense, WHY? I'm confused.
howtoshadow.jpg
howtoshadow.jpg (176.47 KiB) Viewed 7713 times

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 11:02 am
by orzelek
With all the nice examples you posted it's a bit of a shame that devs needed to remove various rail typessince they werent fully working.
Roads with cars would be cool :D

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 12:33 pm
by d3x0r
orzelek wrote:With all the nice examples you posted it's a bit of a shame that devs needed to remove various rail typessince they werent fully working.
Roads with cars would be cool :D
I was thinking something like semi trucks ( even with multiple trailers)
I can in a mod protect 'this type of thing can't be placed on this type of rail' and deconstruct it back to your inventory and prevent rails of different types from being connected.

I need to start a thread to request some new vehicle animations :)

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 1:25 pm
by TheSAguy
I agree, there is a lot of potential here d3x0r.
Hope you do something like truck, would be fun.
Looking very nice.

I can't help out with the shadows, but they don't have to be 100%, they are on water, so you can blame refraction of the water :)

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 9:05 pm
by d3x0r
haha I guess

I didn't notice before... shadows aren't all the same direction :)

http://i.imgur.com/Lx2KDvJ.png

I'll probably finish shadows today somtime...

I do like the shadows from the posts added... but that's lots of little lines to draw :)
I'll probably make the 'bed-background' layer be the shadow and just use the posts on -bed layer.
shadowdemo.jpg
shadowdemo.jpg (135.85 KiB) Viewed 7661 times

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 9:13 pm
by TheSAguy
Cool, I'll wait for that before releasing the next version.

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 11:49 pm
by d3x0r
Okay. (zip attached)
lrdemo.jpg
lrdemo.jpg (186.9 KiB) Viewed 7646 times
There's an issue (sort of) with factorio rendering variations...
The bed, and bed-background layers don't get the same variation in the same spot nessecarily...
bad-shadow.jpg
bad-shadow.jpg (24.69 KiB) Viewed 7646 times
good-shadow.jpg
good-shadow.jpg (32.28 KiB) Viewed 7646 times

Re: [Request] - Wood Rail Bridge

Posted: Sun Aug 20, 2017 11:52 pm
by d3x0r
(and more off-topic) I exported my paved road in layers....
road-demo.jpg
road-demo.jpg (24.16 KiB) Viewed 7646 times