0
votes
0answers
3 views

Lighting done in tangent space?

I need to do lighting in tangent space. My program computes TBN to world space. it says to transform the eye and light vector to do lighting in tangent space. so i have the TBN in world space. how ...
0
votes
0answers
8 views

Finding a place on a team and how to start it [on hold]

I want to start making game and i have a really good story and mecanic for it, but that's the only thing I have . I don't have any skill or talent in any basic gamemaking task outside of writing ...
-2
votes
0answers
9 views

libgdx - 2D Ball Box collision

I want to make the ball reflect when it touches the rectangle like in the picture below. The player can move the ball by moving his finger around the touchscreen and put the ball inside the box. After ...
0
votes
1answer
24 views

Rendering a distant star field in Unity using a separate camera for near stars

I'm currently working on a hobby project which is a universe simulator (exclusive to stars) built in unity3D. In order to deal with the raw scale of the universe I'm trying to implement two ...
0
votes
2answers
24 views

The best way to store and protect game data [duplicate]

I'm writing a sandbox-type game and i'm looking for a good way to store game data. I tryed Lua and plain text files, but the have a big minus - player can edit them his self! So how do I protect data ...
1
vote
4answers
37 views

Get perpendicular vector from another vector

I should clarify that I understand there is an infinite amount of 'perpendicular' vectors in 3D space. I am creating an electricity effect, and to do this the ability to have any number of ...
1
vote
1answer
22 views

Global variables in a multiplayer environment

I would like to know what's the best approach to solve this problem. In a racing game, i need to create the final result chart. In a single environment i've tought something like: private string [] ...
0
votes
1answer
19 views

Can't read input from keyboard

I'm new to game dev,and I just trying to create my first game,a simple pong game.But i can't handle the keyboard input. This is what i got : const Uint8 * keystates = SDL_GetKeyboardState(NULL); ...
0
votes
0answers
11 views

Script for Sprite Slicing works fine as a MonoBehaviour, but not as a normal class called in a Editor Script

I got a script for auto-slicing sprites from the internet. Link to the script. I made the script so that it is not a MonoBehaviour. Then i do this is my custom assets importer: private void ...
0
votes
1answer
10 views

My displayed Tiled map is rendered with different tile indexes than in the editor in Slick2D. Why?

The first picture is what I have in the editor and the second one is what I got when I rendered my map. @Override public void init(GameContainer container) throws SlickException { ...
-1
votes
0answers
30 views

I have an assignment due on Friday to create an android game on Android Studio [on hold]

I need to create a simple android game on Android Studio..please help its my first time using Android Studio.
0
votes
0answers
5 views

add physics to a group or container body in phaser

I'm developing a HTML5 Phaser game. In this game I do have a Group which I would like to behavior as a physics body (arcade-physics). It is a character with a lot of moving parts (sprites) inside ...
0
votes
0answers
12 views

libgdx collision on moving Rectangle with other Rectangle

I'm making a soccer game where you touch the screen and the player shoot the ball to the touched position with the objective of scoring goals when it hits the goal. The player is just a Sprite and the ...
1
vote
1answer
38 views

Increase speed with each enemy destroyed?

I need some help with coding this idea: "For each Target destroyed, increase the Gunner's speed by (speed variable)". The idea is that the Gunner is automatically moving, and I want it to become more ...
0
votes
1answer
19 views

Top down 2d orthogonal view with 3D elements (Unity)

I've decided to give Unity a go with my project. I want to create a 2d RPG perspective world, but with elements of 3D mixed in. So for instance, I think I might make trees and grass 3D, for this to ...
1
vote
0answers
12 views

Learning how to make imposters manually in Unity - how to render an object to a texture not what camera sees?

I am trying to learn the most performant way to make an imposter in Unity manually - not using pre-fabricated solutions. My first guess is that it should be achieved by using RenderTexture and a ...
0
votes
0answers
22 views

How can I use ImGui to render simple text instead of using stb_truetype directly?

Since ImGui builds on top of stb_truetype for its font rendering, I thought it could be nicer to use its already built font-processing capabilities (ImGui::GetIO().Fonts), and render with those, ...
0
votes
0answers
15 views

How can I render text with modern OpenGL and stb_truetype, and why are the loaded textures black?

I've spent the past couple of days just desperately trying to get stb_truetype to render anything using the simple example provided ...
-2
votes
0answers
41 views

What are your tips and tricks to successfully finish a hobby game project in your freetime? [duplicate]

How can I effectively manage a hobby game project?What are your tips and tricks to successfully finish a hobby game project in your freetime? How do you motivate yourself to keep it up and drive ...
2
votes
1answer
18 views

How can I Debug.Draw different shapes in unity?

I want draw new shapes in Sence for example I want Debug.DrawSphere can I Debug.DrawCollider? Is possible that I Debug.DrawSphereCast
1
vote
0answers
13 views

How Would You Animate a 3d Characters Face (With Textures)

So I'd like to do a low poly style of modeling, and one of the corners I'd like to cut is on head geometry. Specifically, making the details of the face a texture (like a Mii or a character in Animal ...
0
votes
2answers
34 views

How to create a linear plateform between two points?

I have a set of 2D coordinates. Their positions are regular on the X axis, but unpredictable on the Y axis: I would like to create slim platform between each point in order tu use it as ground for ...
8
votes
1answer
1k views

Does multiple downsampling have a benefit?

So i came across this site and you can see these lines on the first and second paragraph: For a crude but easy effect, draw the bright portions of the scene (eg, light sources) into an FBO, then ...
1
vote
1answer
32 views

Normals showing unexpected results

I am making a game in c++ with opengl and glm and was working on my terrain when this happend : as it appears it is renderering just the way i planned it, but my question was, how do i make it ...
0
votes
0answers
21 views

What are some good techniques to fill up wall space and make them look “unique”? [on hold]

I have a brick wall: For some reason I thought it was good but when I showed a friend he thought it didnt look good enough. So I ask, what are some thoughts to: Decorate the wall Make it more ...
0
votes
0answers
21 views

NodeJS timed update approach

My game has users building buildings, recruiting units, trading resources and sending attacks. All of this functionality takes a certain amount of time to happen and I'd like help with deciding on the ...
0
votes
0answers
20 views

Drawing a draggable 2d Cartesian grid in C#

I'm developing a C# WinForms application that will connect (via an API) to a 3D environment. The api provides a means of "querying" the environment and determining the x, y, z location of various 3D ...
1
vote
2answers
19 views

How can I get width and height of grouped objects in Unity3D

Is it possible to get height and width of grouped objects like this? I tried boxcollider2d.bounds and renderer.bounds. Each shapes in the group has collider component. Is it possible?
1
vote
1answer
31 views

Shader only rendering 1/4th of the screen

I've asked the same question on SO here and they suggested I should ask here instead. I'm currently trying to create a gaussian blur shader, and while I've successfully created the blur effect my ...
1
vote
0answers
29 views

How do I create tileable 3D Perlin/Simplex noise?

I have a library which provides functions for 1/2/3/4-D simplex noise. With that I successfuly created a tileable 2D cloud texture (see How do you generate tileable Perlin noise?). Now I want to ...
0
votes
1answer
14 views

libgdx sprite placement

Im making a soccer game where you basically have to shoot the ball to the goal and the ball goes to where you touch the screen. Im having an issue with the ball though, when the ball spawns on the ...
0
votes
0answers
20 views

What are different rig types mean?

I think I know what is rig - it's a set of bones for animation. But recently I watched a presentation where the guy mentioned animation rig, mesh rig, dynamic rig. What each mean?
-1
votes
0answers
16 views

Unity3D-C# - Resetting WaitForSeconds() on IEnumerator Coroutine

Mmmmm I dunno if I need to show code for this, ´cause this is more of a general question regarding a resetting of a StartCoroutine, or of the yield WaitForSeconds method. Because when I start the ...
0
votes
0answers
10 views

Problem with camera drag and draggable UI elements

I implemented my camera drag using the following method: if (Input.GetMouseButtonDown(0)) { dragging = true; followPlayer = false; oldPos = ...
-1
votes
1answer
30 views

Obtain jump vector given time, distance and gravity

I tried for several days to solve my problem , but in the end I just gave up and I decided to ask , since the solution is beyond my knowledge I'm writing a 2d top-down game, in order to simulate the ...
-1
votes
0answers
18 views

How to throw an object Unity3d platform? This 2D

There is a platform revolving around its own axis (it works). We need to make sure that when you change the angle of the object platform rolled (it works), and the sudden change in the direction of ...
-1
votes
1answer
71 views

Which scripting engine is free, and secure to use in a C++ game? [on hold]

I am working on a multiplayer game in C++, and I would like to make it scriptable. The scripting language can be Javascript, Python or any language which is quite easy to learn. The reason that I ...
2
votes
1answer
60 views

2D infinite grid data structure

I'm currently developing a game, and I'm in a process of experimenting with various data structures to support my game model and simulation. Here are some of the requirements: Grid structure where ...
1
vote
0answers
12 views

How to know when Android OpenGL Context has been preserved?

I am implementing a pause menu for my game in Android. If the activity pauses and then resume, It lose the OpenGl context. However if you use setPreserveEGLContextOnPause(true) it MAY preserve the ...
0
votes
1answer
47 views

How to “mark” a track/ road?

I'm developing a simple racing game, using Unity. I've created a road simply applying a texture (asphalt) to a terrain . Is it possible (and how to do) to mark that roard with an invisible marker to ...
0
votes
0answers
19 views

Opentk hdr rendering with framebuffer white screen problem

I am trying to do hdr rendering with two shader programs: one simply draws a hdr texture on a fullscreen quad and the other one does tonemapping. I am trying either linear tonemapping colorOut = ...
0
votes
2answers
37 views

Cannot overlay text?

I'm trying to make text have a fixed position in world space and be overlayed in screen space at the same time. I have text in canvas with "Screen Space - Overlay" which covers my text located in ...
0
votes
1answer
18 views

OnPointerClick not being called

I implemented the IPointerClickHandler in a script that runs on multiple GameObjects in my scene. I'm definitely missing something since the implementation is not being called at all. The objects are ...
0
votes
1answer
35 views

Advice on Story Text-Based Game

I am currently in preparation on making a game. This game will be looks like Lifeline by 3 Minute Games, which is a story text-based game. My game will have the same concept with it. Where there will ...
0
votes
2answers
34 views

Script no longer working now that it is attached to a child object. Why is this?

So I decided I wanted to make this script part of a separate swap-able weapon so I made a child and put the script there. Before the script worked fine but now it won't work. The script works as ...
2
votes
1answer
47 views

Anti-Aliasing Problem

So, I was annoyed by how the HUD for my GameState was very pixel-ated and I wanted to change that through the use of anti-aliasing. However, it works with a small exception: It adds all these lines ...
0
votes
1answer
14 views

Finer collision detection with multi-path Polygon2DCollider from Tiled2Unity

I'm in the process of incorporating Tiled2Unity prefabs into my code. Their exporter creates a collision object (shown below) that amalgamates the collider of each tile into a single Polygon Collider ...
0
votes
2answers
29 views

Unity inspector script - making it save the global variables for what it's creating

I have a script which initialises a bunch of child gameObject(s). I wanted all of this to happen outside of the game, so I created an inspector script which has a button which triggers the method ...
4
votes
0answers
22 views

Why Can't I duck reverb on the mix bus in Unity?

i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game. Now it works great except ...
-1
votes
0answers
21 views

Is the palletes from color-hex website are free? [on hold]

I'm really sorry for asking that question but I cannot find anywhere the answer. I want to develop a game and I need some of palletes. The problem is that I am wondering if I can use palletes from ...

15 30 50 per page