I have put together a basic version of a script that allows me to change the ortho width on the player camera according to the current screen resolution. I have this set up in the construction script currently, it still needs a bit of tweaking, but now I can mess around with the screen size without worrying about the image losing quality as much. Should make life a bit easier.
Formula for setting the player ortho width. |
Texture Property Node!
And another little thing: I have found a really useful material node inside UE4. Basically you know the other day I was looking for something that would give me the texture size without having to type it in manually?...
I found something that does exact that when a texture object is plugged into it: The Texture Property node!
For my pixelated emissive effect on my tileset, using this node is incredibly useful. This node allows me to get the size of the texture in pixels, I can then use that value to divide the UVs of the panning noise, creating a pixelated, animated noise that fits in perfectly with my pixel art textures.
-James
No comments:
Post a Comment
Leave a comment, I'll try and get back to you soon as possible. ^.^
Note: only a member of this blog may post a comment.