Categories
Development Game Creation

intersection of primitive in a unit wrapping 3D space

is there people good enough for a math problem (for a shader)? I want to write an algorithm that would intersect any primitives (circle, sphere, cube, cylinder) inside a unit wrapping space, no raymarching similar to this math problem https://amininima.wordpress.com/2013/05/27/the-laser-gun/ But without the reflection. I figure out how to do it with a single point […]

Categories
Development Game Creation

Graphics look blurry in SFML

I’m working on a 2D game using SFML and many textures (which I’m loading from PNG files, created with Gimp) I use are appearing blurry. They’re being drawn without any kind of scaling and transformation, and I have confirmed that smoothing is not enabled for the textures, so I’m not sure what would be causing […]

Categories
Development Game Creation

Graphics look blurry in SFML

I’m working on a 2D game using SFML and many textures (which I’m loading from PNG files, created with Gimp) I use are appearing blurry. They’re being drawn without any kind of scaling and transformation, and I have confirmed that smoothing is not enabled for the textures, so I’m not sure what would be causing […]

Categories
Development Game Creation

Graphics look blurry in SFML

I’m working on a 2D game using SFML and many textures (which I’m loading from PNG files, created with Gimp) I use are appearing blurry. They’re being drawn without any kind of scaling and transformation, and I have confirmed that smoothing is not enabled for the textures, so I’m not sure what would be causing […]

Categories
Development Game Creation

Hello Every one, I was studding A* Algorithm and its is Showing nullObjectException n OnGizmos Function

I was studding A* Algorithm and its is Showing nullObjectException n OnGizmos Function when ever it complete Compiling the Code here is my Code Can anybody Tell me what i am doing Wrong; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace PathFinding { public class Grid : MonoBehaviour { public Transform Startpostion; public LayerMask Layer_Mask; public […]

Categories
Development Game Creation

Hinge joints chain movement (2D)

I have some problems with hinge joint chain movement calculations… Here is my algorithm for segments location/rotation adjustments after a previous segment update (C#): void AdjustLocation() { float halfWidth = size.Width / 2; // Translations Vector parentBack = PrevSegment.Center – (halfWidth * new Vector(Cos(PrevSegment.Rotation), Sin(PrevSegment.Rotation))); // Green on the pic Vector front = this.Center + […]

Categories
Development Game Creation

Shader intersection radiate outwards

I’ve been working on a water shader for a project I’m currently working on and have been trying to work on the intersections between objects in the water to create a foam effect that radiates outwards. I’m very new to shaders so my code is probably horribly inefficient! But here it is: Shader “Unlit/WaterShader” { […]

Categories
Development Game Creation

Shader intersection radiate outwards

I’ve been working on a water shader for a project I’m currently working on and have been trying to work on the intersections between objects in the water to create a foam effect that radiates outwards. I’m very new to shaders so my code is probably horribly inefficient! But here it is: Shader “Unlit/WaterShader” { […]

Categories
Development Game Creation

Shader intersection radiate outwards

I’ve been working on a water shader for a project I’m currently working on and have been trying to work on the intersections between objects in the water to create a foam effect that radiates outwards. I’m very new to shaders so my code is probably horribly inefficient! But here it is: Shader “Unlit/WaterShader” { […]

Categories
Development Game Creation

What is the use case of long range? [closed]

What is the use of setting value to long -9 quintillion (-9,223,372,036,854,775,808) to 9 quintilion (9,223,372,036,854,775,807) and with unsigned ulong 0 to 18 quintillion (18,446,744,073,709,551,615) What is the use case of these ranges in gamedev? I see one application: when the value exceeds the int range so use long so when it exceeds 2 billion […]