How does grass work?
Moderator: Moporators
Re: How does grass work?
move the leftmost vertex to the left, so that it's horizontally left of the polygon. drawing: http://imgur.com/a/QUWQe
bad-colored vertical line is how the first grass piece's left border goes.
bad-colored vertical line is how the first grass piece's left border goes.
Re: How does grass work?
If I understand correctly...
I did this - http://i.imgur.com/dKWCmTx.png
And now it looks worse I'd say - http://i.imgur.com/8SBFlhL.png
But now I realize that this angle is probably too extreme for grass to work well. Unless there is some workaround for cases like this?
I did this - http://i.imgur.com/dKWCmTx.png
And now it looks worse I'd say - http://i.imgur.com/8SBFlhL.png
But now I realize that this angle is probably too extreme for grass to work well. Unless there is some workaround for cases like this?
Re: How does grass work?
ye, there's a max angle there, just move the leftmost vertex up and you'll see magic happen. elma starts to create grass from the left side and adds pictures next to the previous things imo, and it can't go steeper than a certain angle really either, that's why it fucks up at too steep of a hill
Re: How does grass work?
Yes, what FM said. It starts from the left, and because your angle is so steep it uses the steepest grass picture available and starts drawing that upwards until it meets with the grass line again, at which point it looks normal, but anything before is ugly.
Re: How does grass work?
Also, in steep hills you sometimes need to hev the whole segment of grass closer to the ground, because the grass pieces don't connect to the nearest ground edge, but upwards.
So the left connection thear is obv much bigger and less likely to actually reach the edge.
So the left connection thear is obv much bigger and less likely to actually reach the edge.
then again i don't know anything
maybe easier not to think abouut alöl things thought than not things thought ... or something..=?
maybe easier not to think abouut alöl things thought than not things thought ... or something..=?
Re: How does grass work?
Thanks for that last pic, I understand it much better now I think.
Btw when you guys say that it starts drawing from the left... Does that mean that in a horizontally symmetrical polygon grass might not looks the same on two sides?
Btw when you guys say that it starts drawing from the left... Does that mean that in a horizontally symmetrical polygon grass might not looks the same on two sides?
Re: How does grass work?
ye, it depends on how long the tiles are, which differs in different resolutions. Drawing for tiles: http://imgur.com/a/lp41M . drawed vertical redline there also to show difference osv
if you imagine all the boxes are the same size, you'll get how the tiles are placed. the last box to the right, as far as i know, stops being placed when one of the grass pieces goes over the last vertex horizontally, which makes it kinda tricky and grass errors easily happen in the right side, because the last grass piece can go some 10 pixels over the last vertex horizontally.
if you imagine all the boxes are the same size, you'll get how the tiles are placed. the last box to the right, as far as i know, stops being placed when one of the grass pieces goes over the last vertex horizontally, which makes it kinda tricky and grass errors easily happen in the right side, because the last grass piece can go some 10 pixels over the last vertex horizontally.
Re: How does grass work?
The mistake is not using internal editor where grass is your friend
Re: How does grass work?
Grass needs water to grow. And good soil.
Elasto Mania polygons are a great surface to grow grass.
Elasto Mania polygons are a great surface to grow grass.
Elasto Mania - ez better
Re: How does grass work?
Autograss, you know those storebought rolls of grass you just roll out. They will never look the and feel the same as grass grown from seeds. Handmade grass.
Real grass.
Real grass.
Elasto Mania - ez better
Re: How does grass work?
Something I've been wanting to ask for a while... What is THIS?
Like why is a tiny line of grass visible between the tree and the bike? Does zoom/resolution have anything to do with this?
Like why is a tiny line of grass visible between the tree and the bike? Does zoom/resolution have anything to do with this?
Re: How does grass work?
More importantly, why do you have pictures in front?kuchitsu wrote:Something I've been wanting to ask for a while... What is THIS?
Like why is a tiny line of grass visible between the tree and the bike? Does zoom/resolution have anything to do with this?
<veezay> antti also gonna get stabbed later this month
<nick-o-matic> niec
My fake plants died because I did not pretend to water them.
<nick-o-matic> niec
My fake plants died because I did not pretend to water them.
Re: How does grass work?
My guess is that because of the tree, that pixel is in front of bike, and then due to rounding errors, 1 pixel-high of grass is drawn on the tree - like the line ground bugs
Not sure though
Not sure though
Re: How does grass work?
What is very bad in it? imo, if it isnt this line, it would be seemed strange too.kuchitsu wrote:Something I've been wanting to ask for a while... What is THIS?
Like why is a tiny line of grass visible between the tree and the bike? Does zoom/resolution have anything to do with this?
because of it, i try to not draw foreground pics near corners))
its more realistically, and it doesn't interfere. As a last resort, u can only change high->low graphicsRuben wrote: More importantly, why do you have pictures in front?
-------------------------
(oh, didn't see 2nd line of kuchitsu post, so bit out of topic )
Re: How does grass work?
Yeah, I guess looks kinda weird in any case.
Because that's more romantic!Ruben wrote:More importantly, why do you have pictures in front?
Re: How does grass work?
say what o,oAndrY wrote:it doesn't interfereRuben wrote:More importantly, why do you have pictures in front?
Team TR
Multi WR in Labyrinth with GRob
Best Internal Total Times, Pipe stats & Pipe archive
World kuski map, World Cup stats
Re: How does grass work?
I mean, foreground pictures aren't looks bad (imo good).
and if there are not very much of them, they haven't big influence to playing. bike is visible anyway
and if there are not very much of them, they haven't big influence to playing. bike is visible anyway
Re: How does grass work?
They interfere a little bit (sometimes mo re if the author puts a lot of barrels or something in an important place), but they also add a lot of visual variety to the level, give it a bit of a 3D look, and also make the player feel like he is interacting with the objects. Imo it's a very useful tool for designers that care about visuals.