Subpixel Camera for a 3D Pixel Art Game Engine

  Рет қаралды 34,214

t3ssel8r

t3ssel8r

Күн бұрын

Пікірлер: 34
@mondzahn
@mondzahn 2 жыл бұрын
i love your channel and your work just looks so beautiful i hope this will be finished and released someday^^
@kevinziegler8664
@kevinziegler8664 Жыл бұрын
Love this! Just tried it myself and after a bit of tinkering I got the camera to work in both directions.. but only when using 45 degrees in the x axis.. when I set it to let's say 30 it's not pixel perfect anymore (I guess it's because the camera is moving in the z direction and the 30 degree angle means the camera needs to move slightly different compared to 45 degrees). Now I can't wrap my head around the maths. Do you have any suggestions / a formula how to calculate the amount of pixel I need to move when going up and down? Thanks in advance!
@ibbymuk1232
@ibbymuk1232 3 жыл бұрын
are u ever gonna release this or make a tutorial ? ...... cos this looks soo goodd
@Andrew90046zero
@Andrew90046zero 3 жыл бұрын
Does this function similarly to how the "pixel-perfect component" works in unity? or is your method slightly different?
@squeenixu
@squeenixu 3 жыл бұрын
OOH. Could be used for some really cool camera gimmicks in-game
@t3ssel8r
@t3ssel8r 3 жыл бұрын
yeah! like some camera based puzzles. I haven't thought it through though
@DreamingOfTheHeart
@DreamingOfTheHeart Жыл бұрын
Hope you don't mind me asking, how do you deal with odd resolutions and aspect ratios that aren't 640x360? Love the work btw!
@rhaskia7807
@rhaskia7807 Жыл бұрын
How did you manage to do the sort of shading outlines of the boxes and such? I'm creating something sorta similar for a game and want to know how
@DcCoO
@DcCoO Жыл бұрын
One doubt came up when I read your description: what happens to the borders? If there is a snap offset of x, all the rendered scene should move x, opening a "letterbox" of size x in the borders. How do you guess what should be there?
@t3ssel8r
@t3ssel8r Жыл бұрын
x is always at most a single texel, so you can either pad the RT size by 1 texel in each dimension, or what I do is just set the texture extrapolation mode to clamp, and in practice it's pretty unobtrusive
@starbi
@starbi 3 жыл бұрын
Thank you t3ssel8r for the amazing inspiration. I recreated something like this without any shader code, just using a render texture and a script. Moving the camera actually pans the whole viewport. Whenever the viewport moves one pixel or more from the center, I move it back a number of pixels and transform the camera with the same number of pixels, taking into account the units per pixel and some trigonometry for the angles. I was suprised, it works really well with almost no peformance hit, including rotations and zooming. I'll have to see how it works with moving entities though. Yours is probably the proper way of doing it and mine relies on C# code in the update function, it feels like it will lead to problems down the line.
@t3ssel8r
@t3ssel8r 3 жыл бұрын
this is essentially what I do as well
@Cheeztaco
@Cheeztaco 3 жыл бұрын
Would you mind sharing your camera script? I'm trying to get this to work but I still get the annoying jitters. I also have the slight suspicion, that cinemachine won't work for this.
@starbi
@starbi 3 жыл бұрын
@@Cheeztaco I haven't worked with cinemachine. But if it does any transformations like smoothing then it will cause jitter. To start out with I recommend making a regular camera pointing straight down. That way the number of units accross the height of the screen is 2 * orthographic size. So if you have a camera resolution of 360 and an orhographic size of 5. The units you have to move per pixel will be 1/36. Every translation of the camera should be dictated by the viewport panning across the screen. I can't really show my code as I'm not home yet and it also depends on other objects and it's really messy right now.
@Cheeztaco
@Cheeztaco 3 жыл бұрын
@@starbi I'll grab me a coffee an try that. Thanks for pointing me in the right direction :)
@Cheeztaco
@Cheeztaco 3 жыл бұрын
@@starbi I can't seem to wrap my head around that. Relatively new to unity btw. Switched from gamemaker because plain 2d just wasn't enough for my idea. I'll ask a bit around and see if someone can help me, but thanks
@Ziplock9000
@Ziplock9000 Жыл бұрын
So am I right in assuming you render in a higher resolution to a texture and just reduce the size for displaying?
@t3ssel8r
@t3ssel8r Жыл бұрын
the opposite: render to low resolution and upscale for displaying
@Ziplock9000
@Ziplock9000 Жыл бұрын
@@t3ssel8r If that's true then it's not sub-pixel, it's extra-pixel
@fransbstrom1666
@fransbstrom1666 Жыл бұрын
@@t3ssel8r how do configure render to a low resolution other than the display resolution? 👀
@MrYaroph
@MrYaroph 2 жыл бұрын
do you use a shader found on the net to have this rendering?
@StarCourtesan
@StarCourtesan 3 жыл бұрын
How did you make the grasS?
@elojoquetodolove3162
@elojoquetodolove3162 3 жыл бұрын
Excelent work but i need to know how to do this
@CaffeinatedCombatant
@CaffeinatedCombatant Жыл бұрын
What method did you use to render the scene? Is this an actual shader system? I have lots of questions.
A Unique way of doing Pixel Art in Unity | 3D Pixel Art Unity
3:55
aidencantcode
Рет қаралды 55 М.
Creating a Scene for my 3D Pixel Art Game
5:01
t3ssel8r
Рет қаралды 1,2 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 39 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 1,7 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 76 МЛН
10 ХУДШИХ ИГРОВЫХ МЕХАНИК
23:42
Никитун
Рет қаралды 420 М.
GEORGE IS IN BIG TROUBLE
4:03
Mega YTP
Рет қаралды 44 М.
3 ans pour créer un JEU VIDÉO (en SOLO)  |  NEOTAG LEAGUE Devlog#01
8:25
amfibio // indie gamedev
Рет қаралды 14 М.
Procedural Walking Animation in Minecraft
8:41
Cymaera
Рет қаралды 1,4 МЛН
What is SUBPIXEL? | Advanced Pixel Art
14:36
DHDevStudio
Рет қаралды 1,1 М.
What is Sub-Pixel Animation?
4:32
Ansimuz
Рет қаралды 565 М.
Godot in 100 Seconds
2:40
Fireship
Рет қаралды 1,1 МЛН
Creating Trees for 3D Pixel Art
5:17
Voyage
Рет қаралды 48 М.
Creating Particle Effects Without Particles
3:30
t3ssel8r
Рет қаралды 190 М.
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 39 МЛН