ribbybibby / Grimm-Journey

A local co-op multiplayer platformer based in a fairytale world.
0 stars 0 forks source link

[Graphics] Platform graphics, kind of ugly #18

Open ribbybibby opened 9 years ago

ribbybibby commented 9 years ago

We don't have any specific assets for platforms; we're using standard quads/cubes. If possible we should get some assets for these.

ChildOfTheCron commented 9 years ago

I was going to ask for some assets for my Uni project I need done so I'll give her a shout about this as well. Last time she said she'd be happy to do this but I'll confirm today.

ChildOfTheCron commented 9 years ago

Okay, artist says all is good. I'll try and add these platforms in along with the other missing assets from bug #9

ChildOfTheCron commented 9 years ago

Just a note - If we use a RAWImage to make the platforms looks sexy we can make use of the UV Rect setting. What this means is we can have the artist make say for a horizontal platform an asset 3 'units' wide. We can then stretch the bejesus out of the platform horizontally and when the texture stretches out of proportion we can make use of the UV Rect width property to tessellate the texture over and over again. This means 3 units can become as many units as we need and it'll be using the same texture. This is pretty nifty and will save on overly complicated textures or faffing with a lot of micro management.

ChildOfTheCron commented 9 years ago

Rather than UV Rect its called tiling.

There are now two platform textures. One for vertical and one for horizontal :) Need to slap them on our platforms then we can close this! :D

They can be found in Resources / Platforms

ribbybibby commented 9 years ago

I gave this a little try a while back but I couldn't figure it out. Will need some advice from RDJ!

ChildOfTheCron commented 9 years ago

Added the book platforms in, they don't work to well yet due to the following issue. When scaling the texture a small platform it work really well. However when scaling the texture for a larger platform is stretches the smaller platforms texture out of proportion.

We'd need to set up separate prefabs for the different platform sizes we use (example a small one and a big one and a middle sized one etc). Once we do this it'll allow us to scale the platform texture properly for each type of platform size. The platform texture is also currently transparent. And while it works it might look better if it was not transparent. Will try this out once we get time to make new assets. And I'll see about setting up some new prefabs for the platforms, unless Rob can beat me to it. Will tag as bug now, since this is technically a bug now.