Train wagon graphics - you are not stretching it properly

Post all other topics which do not belong to any other category.
RnMss
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Apr 09, 2016 11:53 pm
Contact:

Train wagon graphics - you are not stretching it properly

Post by RnMss »

Stretching the graphics is not the problem. The problem is that you didn't do it properly.

Image
Looks like your have stretched the length in the 3D model. (Like the length is a linear function of the rotation, that's why it looks like rubber.)

That's not correct. You should leave length in the 3D model as it is, and instead stretch the generated 2D graphics.

sckuzzle
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Thu Mar 31, 2016 8:51 am
Contact:

Re: Train wagon graphics - you are not stretching it properly

Post by sckuzzle »

I'm not sure if you are just trolling, but is there a difference? Can you provide an example of the 2d-stretching such that it doesn't look like rubber?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3714
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Train wagon graphics - you are not stretching it properly

Post by DaveMcW »

Yes, the bounce effect is due to a bad animation. The function should be: scaled_length = sqrt( length^2 + (length * sin(angle))^2 ) .

But the other point is still valid, a difference of 41% is not hideable.
Last edited by DaveMcW on Sun May 01, 2016 12:15 pm, edited 2 times in total.

RnMss
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Apr 09, 2016 11:53 pm
Contact:

Re: Train wagon graphics - you are not stretching it properly

Post by RnMss »

sckuzzle wrote:I'm not sure if you are just trolling, but is there a difference?
Why? To be honest I didn't get it. What words should I have chosen? (This is a real question)
sckuzzle wrote:Can you provide an example of the 2d-stretching such that it doesn't look like rubber?
I'll try. (But I'm not an expert at 3D animations, so it may take some time...)

kovarex
Factorio Staff
Factorio Staff
Posts: 8195
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Train wagon graphics - you are not stretching it properly

Post by kovarex »

The example was just an example, we will use different function obviously. Also we don't need to stretch by 41% anymore, more like 15% and also the model is made in a way to make it not noticable. From the examples I saw so far, it looked very good.

Sean Mirrsen
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Wed Apr 27, 2016 6:30 pm
Contact:

Re: Train wagon graphics - you are not stretching it properly

Post by Sean Mirrsen »

I'm sure it's a "has been discussed since the beginning and could maybe have worked back then" thing, but why not make the visual grid of the game non-square? Fitting isometric graphics into a square grid creates more visual problems than just the trains.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3714
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Train wagon graphics - you are not stretching it properly

Post by DaveMcW »

DaveMcW wrote:The function should be: scaled_length = sqrt( length^2 + (length * sin(angle))^2 ) .
Here is the result of doing that. Blender does not make it easy, I had to to compute everything in a spreadsheet and enter the differences in 20 keyframes.
Attachments
train.gif
train.gif (245.06 KiB) Viewed 2893 times

Post Reply

Return to “General discussion”