Stencil Buffers | Ronja's tutorials
Follow-up for recent posts with stencil buffer effects, basics of working with stencil buffer.
https://www.ronja-tutorials.com/post/022-stencil-buffers/
#stencil #shader
Follow-up for recent posts with stencil buffer effects, basics of working with stencil buffer.
https://www.ronja-tutorials.com/post/022-stencil-buffers/
#stencil #shader
Ronja-Tutorials
Stencil Buffers
Summary The depth buffer helps us compare depths of objects to ensure they occlude each other properly. But theres also a part of the stencil buffer reserved for โstencil operationsโ. This part of the depth buffer is commonly referred to as stencil buffer.โฆ
๐1
Triangle.Net-for-Unity
Triangulation lib wrapper for Unity. Triangle.NET generates 2D (constrained) Delaunay triangulations and high-quality meshes of point sets or planar straight line graphs. I guess you already knew about it, if you were interested in mesh generation. If not, then if you ever stumble upon triangulation in Unity, you should know there is the lib available for doing it.
https://github.com/Nox7atra/Triangle.Net-for-Unity
#triangulation #mesh
Triangulation lib wrapper for Unity. Triangle.NET generates 2D (constrained) Delaunay triangulations and high-quality meshes of point sets or planar straight line graphs. I guess you already knew about it, if you were interested in mesh generation. If not, then if you ever stumble upon triangulation in Unity, you should know there is the lib available for doing it.
https://github.com/Nox7atra/Triangle.Net-for-Unity
#triangulation #mesh
GitHub
GitHub - Nox7atra/Triangle.Net-for-Unity
Contribute to Nox7atra/Triangle.Net-for-Unity development by creating an account on GitHub.
๐2
Unity VFX Graph - Stylized laser beam tutorial
https://youtu.be/_SaBXY-Ejqo
#vfx #shadergraph #vfxgraph #beam #laser
https://youtu.be/_SaBXY-Ejqo
#vfx #shadergraph #vfxgraph #beam #laser
YouTube
Unity VFX Graph - Stylized Laser Beam Tutorial
In this Unity tutorial we are going to create a Stylized Beam effect with a touch electricity! We will mix Visual Effect Graph and Shader Graph with a bit of Blender and Krita in between.
Hope you guys like it!
Btw, I created and Indie Game Studio: hโฆ
Hope you guys like it!
Btw, I created and Indie Game Studio: hโฆ
๐2
UI with rectangles? Don't use null as a source!
Create a 1x1 square image and add it to your sprite atlas. That way all rectangles will be drawn together with the images. You can reduce several draw calls per frame!
When using a null reference in an Image field: "None (Sprite)", Unity actually puts a UnityWhite texture in there that causes the GPU to make an additional draw call.
https://twitter.com/HetiDev/status/1493317817688629252
#ui #optimization #tips
Create a 1x1 square image and add it to your sprite atlas. That way all rectangles will be drawn together with the images. You can reduce several draw calls per frame!
When using a null reference in an Image field: "None (Sprite)", Unity actually puts a UnityWhite texture in there that causes the GPU to make an additional draw call.
https://twitter.com/HetiDev/status/1493317817688629252
#ui #optimization #tips
Twitter
Heti
#unity3d UI with rectangles? Don't use null as a source! Create a 1x1 square image and add it to your sprite atlas. That way all rectangles will be drawn together with the images. You can reduce several draw calls per frame! #unitytips #gamedev #indiedevโฆ
๐1
Rendering meshes in Unity without MeshRenderers
Simple example how to use DrawMesh(), DrawMeshNow(), and DrawMeshInstanced().
https://www.edraflame.com/blog/unity-graphics-drawmesh-drawmeshinstanced/
#rendering #drawmesh #instancing
Simple example how to use DrawMesh(), DrawMeshNow(), and DrawMeshInstanced().
https://www.edraflame.com/blog/unity-graphics-drawmesh-drawmeshinstanced/
#rendering #drawmesh #instancing
Edraflame
Rendering meshes in Unity without MeshRenderers | Edraflame
How to use Graphics.DrawMesh and Graphics.DrawMeshInstanced in Unity to render meshes from code without MeshRenderers
๐3
Unity Recorder
Use the Unity Recorder package to capture and save data during Play mode. For example, you can capture gameplay or a cinematic and save it as an .mp4 file.
https://docs.unity3d.com/Packages/com.unity.recorder@2.0/manual/index.html
#video #recorder
Use the Unity Recorder package to capture and save data during Play mode. For example, you can capture gameplay or a cinematic and save it as an .mp4 file.
https://docs.unity3d.com/Packages/com.unity.recorder@2.0/manual/index.html
#video #recorder
๐3
Feature highlight: IL2CPP runtime performance improvements in Unity 2021.2
https://blog.unity.com/technology/feature-highlight-il2cpp-runtime-performance-improvements-in-unity-20212
#il2cpp
https://blog.unity.com/technology/feature-highlight-il2cpp-runtime-performance-improvements-in-unity-20212
#il2cpp
๐2
13 Most Useful Unity Attributes
https://medium.com/geekculture/13-most-useful-unity-attributes-d7514bc749d
#editor #attribute #tips
https://medium.com/geekculture/13-most-useful-unity-attributes-d7514bc749d
#editor #attribute #tips
Medium
13 Most Useful Unity Attributes
So far. More to come!
๐3
Trajectory prediction in Unity
Predict trajectory with Physics.Simulate. Not sure about performance if there is a lot of stuff going on, but should be absolutely fine for small simulations. Anyway in case you use Physics.Simulate a lot dont forget to always profile before optimizing. Or if you are still in a preproduction phase, make a small proof of concept with expected amount (and more for greater confidence) of operations to simulate, so you can be sure that this approach is suitable for your case.
https://www.youtube.com/watch?v=4VUmhuhkELk
Repo: https://github.com/ToughNutToCrack/TrajectoryPrediction
#simulation #physics #trajectory #prediction
Predict trajectory with Physics.Simulate. Not sure about performance if there is a lot of stuff going on, but should be absolutely fine for small simulations. Anyway in case you use Physics.Simulate a lot dont forget to always profile before optimizing. Or if you are still in a preproduction phase, make a small proof of concept with expected amount (and more for greater confidence) of operations to simulate, so you can be sure that this approach is suitable for your case.
https://www.youtube.com/watch?v=4VUmhuhkELk
Repo: https://github.com/ToughNutToCrack/TrajectoryPrediction
#simulation #physics #trajectory #prediction
YouTube
Trajectory prediction in Unity
In many games, especially in 2d puzzles, the player can see a line that represents the bullet trajectory before shooting.
This mechanics is used for example in Puzzle Bubble, Tank Wars, Peggle, and many more.
It's commonly used for power-ups or tutorial levels.โฆ
This mechanics is used for example in Puzzle Bubble, Tank Wars, Peggle, and many more.
It's commonly used for power-ups or tutorial levels.โฆ
๐1
Talking to your unmanaged code efficiently from Unity using P/Invoke
How to use P/Invoke with blittable types. A type is blittable if it has the same memory representation in C# as in the target language.
https://medium.com/baracoda-engineering/talking-to-your-unmanaged-code-efficiently-from-unity-using-p-invoke-6bb26f43f428
#extern #plugins #pinvoke
How to use P/Invoke with blittable types. A type is blittable if it has the same memory representation in C# as in the target language.
https://medium.com/baracoda-engineering/talking-to-your-unmanaged-code-efficiently-from-unity-using-p-invoke-6bb26f43f428
#extern #plugins #pinvoke
Medium
Talking to your unmanaged code efficiently from Unity using P/Invoke
Sometimes Unity projects need to interface with native plugins that are written in other languages, or maybe your company has a library inโฆ
๐2
Unity Spline-Based Tank Tracks System Package
https://timcoster.com/2021/01/17/unity-spline-based-tank-tracks-system-package/
#tank #tracks
https://timcoster.com/2021/01/17/unity-spline-based-tank-tracks-system-package/
#tank #tracks
CosterGraphics
Unity Spline-Based Tank Tracks System Package
Free Unity Spline-Bases Tank Tracks System Unity Package. Including driving scripts and a small demo scene.
๐1
Kenney โข Prototype Textures
Free textures for prototyping
https://kenney.nl/assets/prototype-textures
#assets #prototype
Free textures for prototyping
https://kenney.nl/assets/prototype-textures
#assets #prototype
kenney.nl
Prototype Textures ยท Kenney
Download this package (75 assets) for free, CC0 licensed!
๐1
Unity Shader Graph Procedural Planet Water Tutorial
https://timcoster.com/2021/09/24/unity-shader-graph-procedural-planet-water-tutorial/
#water #planet #shadergraph
https://timcoster.com/2021/09/24/unity-shader-graph-procedural-planet-water-tutorial/
#water #planet #shadergraph
Coster-Graphics
Unity Shader Graph Procedural Planet Water Tutorial
Unity Shader Graph Planet Water Tutorial Calculate depth from water surface to underlying geometry,Use the depth value to blend from deep to shallow water color,Use the depth value and noise to genโฆ
๐2
Scriptable Renderer Feature
A barebones sample implementation of a scriptable renderer feature for Unity's scriptable render pipeline
https://samdriver.xyz/article/scriptable-render
#srp #rendering
A barebones sample implementation of a scriptable renderer feature for Unity's scriptable render pipeline
https://samdriver.xyz/article/scriptable-render
#srp #rendering
samdriver.xyz
Scriptable Renderer Feature
A barebones sample implementation of a scriptable renderer feature for Unity's scriptable render pipeline.
๐1
How to make a Homing Missile in Unity with Trajectory Prediction (source included)
https://youtu.be/Z6qBeuN-H1M
#missile #feature
https://youtu.be/Z6qBeuN-H1M
#missile #feature
YouTube
How to make a Homing Missile in Unity with Trajectory Prediction (source included)
Homing missiles are fun as hell, so let's make one. This rocket will predict future motion using velocity. We'll also use cosine to make the rocket trajectory more interesting.
Make sure you leave a like on the video if you enjoyed it :)
Source: https:โฆ
Make sure you leave a like on the video if you enjoyed it :)
Source: https:โฆ
๐2
OPTIMISING A COMPUTE SHADER
Using RenderDoc to help find a faster compute shader for the simple lens flare effect.
https://samdriver.xyz/article/optimise-compute-shader
#shader #profiling #renderdoc #nativeprofiling
Using RenderDoc to help find a faster compute shader for the simple lens flare effect.
https://samdriver.xyz/article/optimise-compute-shader
#shader #profiling #renderdoc #nativeprofiling
samdriver.xyz
Optimising a Compute Shader
Using RenderDoc to help find a faster compute shader for the simple lens flare effect
๐2
Culling system and effects for Top-Down games
Simple fade out/culling system for top down game with 3 different shader-based effects to fade out objects that get in the way of the player seeing their avatar
https://www.patreon.com/posts/culling-system-60214085
#cull #vfx
Simple fade out/culling system for top down game with 3 different shader-based effects to fade out objects that get in the way of the player seeing their avatar
https://www.patreon.com/posts/culling-system-60214085
#cull #vfx
๐2
Create Bouncing/Ricocheting Raycast Bullets From Scratch! Unity Tutorial
Learn how to implement, from scratch, raycast (or "hitscan") bullets, with trails, that can bounce/ricochet off objects!
https://youtu.be/GkStW8-Q5P0
#ricochet #bullet #feature
Learn how to implement, from scratch, raycast (or "hitscan") bullets, with trails, that can bounce/ricochet off objects!
https://youtu.be/GkStW8-Q5P0
#ricochet #bullet #feature
YouTube
Bouncing Bullets with Hitscan Guns | Unity Tutorial
Learn how to implement, from scratch, raycast (or "hitscan") bullets, with trails, that can bounce/ricochet off objects!
We'll start off by using some free starter assets from Unity and the New Input System. We'll write a Gun script from scratch that shootsโฆ
We'll start off by using some free starter assets from Unity and the New Input System. We'll write a Gun script from scratch that shootsโฆ
๐2
Create A White Noise Shader With Shader Graph In Unity
https://vintay.medium.com/create-a-white-noise-shader-with-shader-graph-in-unity-220dd9d24e92
#shadergraph #whitenoise #vfx #tv
https://vintay.medium.com/create-a-white-noise-shader-with-shader-graph-in-unity-220dd9d24e92
#shadergraph #whitenoise #vfx #tv
Medium
Create A White Noise Shader With Shader Graph In Unity
Today I am creating a static/white noise shader similar to what could be seen on older televisions years ago.
๐2
Polygon Clipping (Part 1 & 2)
Polygon clipping is an interesting problem: how do you intersect, union, or diff two polygons?
The Greiner-Hormann clipping algorithm is quite beautiful and intuitive. However the Greiner-Hormann clipping algorithm cannot deal with coincident lines. This turns out to be a huge pain โ so there is part 2 that works for all polygons.
https://sean.cm/a/polygon-clipping-pt1
https://sean.cm/a/polygon-clipping-pt2
#polygonclipping #clipping
Polygon clipping is an interesting problem: how do you intersect, union, or diff two polygons?
The Greiner-Hormann clipping algorithm is quite beautiful and intuitive. However the Greiner-Hormann clipping algorithm cannot deal with coincident lines. This turns out to be a huge pain โ so there is part 2 that works for all polygons.
https://sean.cm/a/polygon-clipping-pt1
https://sean.cm/a/polygon-clipping-pt2
#polygonclipping #clipping
๐2