- Home /
2D GAME - Pixel - OnGUI/GUITexture/2D planes ... ? best solution ?
Hi,
I'm new to unity ! The crazy thing about the unity community and 2D games is that there is no real clear answer except "SM2" ...
I saw different things :
- The good old plane with a texture on it After hours of research & test I managed to display a descent 32x32 texture (Filter mode to "Point" and all) on a 1x1x1 Cube with an orthographic camera. But the result isn't perfect...
And
- OnGUI + GUI.DrawTexture()
- The GUITextures
But is GUITextures/GUI.draw very suited for that kind of development ? (even for iOS ?). I'm thinking about the framerate (didn't tried this method yet).
How does people makes pixel-art games with unity ? is it even possible ?
Thanks !
Answer by loopyllama · May 03, 2011 at 08:43 PM
SM + edit it yourself. SM2, no additions needed but costs $$. or, Flat planes in 3d package with joints to animate things like arms, legs, head. Search zombieville in forums for details. The dev team was super cool about releasing how they did it.
Do not use unity gui anythings for this. they do not batch at all. you will have a draw call for each gui element.
you can get pixel pefect art. yes, set to point filtering, but also set to advanced and turn off mipmaps and turn off compression.
Just tried S$$anonymous$$. Not that easy to use. What is the "3D package" ? UnityPro package ?
When I set everything like that (point filtering, mipmap off, comp off) Unity render what I'm showing in my screenshot. This is far from perfect.
For others > Zombieville info : http://www.thecareergamer.com/braaaains-zombieville-usa-tech-review/
Thx for your help !
By 3D package he means a modeling suite such as $$anonymous$$aya, Blender, 3DS$$anonymous$$ax, etc.
Answer by bernardfrancois · Oct 20, 2011 at 08:38 AM
Both using Unity's GUI class or a sprite manager system, you can achieve 'pixel perfectness'. This should give better results than doing it in 3D with point filtering (especially when moving objects).
More info about this can be found here: 2D Game Development in Unity3D: Overview.
Your answer
Follow this Question
Related Questions
Is it possible to make a game that looks 2d in Unity? 3 Answers
how can I create a virtual command prompt GUI for my game? 1 Answer
Automatically resize quad to match texture, in the editor 1 Answer
I need help with moving a character in Unity2D c# but just along a path 0 Answers
Having some stuck issues on the 2D infinite runner 0 Answers