0
votes
1answer
63 views

QuadTree nice design for nodes

I'm using c++ and have some problems with the QuadTree design. I have some components which are not related to the QuadTree directly. These components are eg. RenderableMesh, PointLight, etc. Some of ...
0
votes
1answer
24 views

Problem with JFrame? [closed]

So I'm not sure why (because this didn't use to happen before) but once I run my program the JFrame appears but then it waits 1 or 2 seconds before it draws anything to the screeen. So basically for ...
0
votes
0answers
34 views

Removing no longer used paint out of screen

I have Paint, like this: Paint paint = new Paint(); paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setStyle(Paint.Style.FILL); paint.setStrokeWidth(5); paint.setColor(Color.BLUE); and I'm drawing ...
0
votes
0answers
22 views

What ways can I draw a single pixel or single fragment with Modern OpenGL? [duplicate]

I've been researching around the internet looking for ways to plot a single fragment or single pixel which ever is more usable for the case I will present now: I want to plot a pixel every click of ...
0
votes
0answers
30 views

Transforming the bounding sphere of an object [closed]

I'm getting the bounding sphere of a tree object and then I draw a bounding sphere around it in world space coordinates. From that mesh I can get a bounding sphere. I'm trying to transform it ...
1
vote
1answer
56 views

Shooting Projectiles

I am using cocos2D-x and am trying to achieve the effect of enemies going past and shooting projectiles at the player who is moving around the screen. I am using the code below, which is based on this ...
3
votes
1answer
97 views

When should i use GL_TRUE or GL_FALSE values?

When using GLboolean, should i just use true and false or should i use GL_TRUE and GL_FALSE, when should i prefer using GL_TRUE and GL_FALSE? or maybe i shouldn't care at all (Because both works)? ...
0
votes
1answer
50 views

Targeting logic for 100.000 units army

I am making an army fight for my website armyfight. There can be fights of hundreds of thousands units. I am looking for better unit targeting. in jsfiddle is an example. var enemy = { 2: { ...
0
votes
0answers
22 views

Platformer command queue - not sure how to proceed

While trying to figure out how to implement platform agnostic input handling for a platformer, I've discovered the command pattern and I liked the idea so I wanted to take it a step further. I got ...
0
votes
0answers
35 views

Collision LibGdx

Shape 1 is falling. I want Shape 2 to land on Shape 1. Shape 2's gravitational movement gets choppy after adding if(Shape1.collides(Shape2.getBounds())){ SHape2.Collide } and it ...
3
votes
1answer
33 views

How can I add a new item to my enum list in the inspector?

I have a list of enums. I want to add a new item to it without scripting to make them more easily modifiable for game designers. I made an inventory system and I want to define the type of an item. ...
0
votes
0answers
32 views

How To Point An Object At Cursor? [duplicate]

I'm trying to make a Nuclear Throne like game in python 3 and pygame, but I got stuck at how to make the gun point at the cursor. If someone could show me how, that would be great. :D I looked at the ...
3
votes
0answers
16 views

Imported Blender .fbx model appears transparent

I exported a model that i made in blender to a .fbx file. I imported it to Unity and, as you can see in the image, one arm of my character appears transparent. I already have the normals pointing ...
0
votes
0answers
28 views

How would I do torn clothing for zombies?

Should I give the clothes depth? I played Blackops III and it seems as if the clothing on the zombies have no depth when I look at torn areas. How do I do the torn areas? They seem to have a lot of ...
-1
votes
0answers
9 views

calculate ray picking using directx11 [duplicate]

I'm trying to generate a ray to check which objects has been picked. I want to check the math if its correct or no, because when I try to draw a ray, Its not visible at all, and the ray origin is in ...
0
votes
1answer
45 views

Hide network latency for ingame dialog

I have a tick-based Multiplayer-RTS game: Client sends action to server at Frame n which will be broadcasted to all clients and executed at Frame n+x (x depends on network latency of slowest player) ...
0
votes
1answer
15 views

onTriggerEnter(Collider obj) is not invoked on collision with a trigger or a rigidbody

void onTriggerEnter(Collider other){ if (other.gameObject.CompareTag("Pick Up")) { other.gameObject.SetActive(false); count = count + 1; setCountText (); } This ...
0
votes
0answers
48 views

How to apply Buoyant force to a Box2d body?

I have been following a formula to calculate the buoyant force needed to apply to a dynamic body to be able to simulate water. Fb = ρgV Fb - is the buoyant force ρ - density of the liquid g - ...
5
votes
1answer
119 views

How do I change a value gradually over time?

I'm using Unity3D 5-point-something, and I'm planning on making a game where the player travels through a hot, dry desert, and so the heat causes the player's energy to deplete. The object of the ...
-1
votes
0answers
37 views

Is it possible a programmer learn to model? [closed]

I'm graduating in Digital Games here in my country. I'm programmer cause that is easier for me since the beginning. But always liked modeling and animation. Arts requires a lot of time of dedication ...
-1
votes
2answers
48 views

SFML Increasing random falling meteors [on hold]

Im working on a small project where i have to creat a 2d game using C++ and SFML (it wasn't my choice to use them) i did every thing like creating the ship ,shooting ,score counter ..etc i managed to ...
0
votes
0answers
33 views

LibGDX works well on android 4 and very bad on android 5 and 6

I have a problem with my game. The game is made with libgdx, scene2d and box2d and it uses an AssetManager. I tested this app on all my devices and here it is the results: Galaxy S3, android 4 ...
0
votes
0answers
20 views

picking ray in directx11 [closed]

I'm trying to generate a ray to check which objects has been picked. I want to check the math if its correct or no, because when I try to draw a ray, Its not visible at all, and the ray origin is in ...
0
votes
1answer
27 views

Creating 3D gravity in zero-G tied to mass in unity with c#

As a total beginner, I've been working on a patch-job script for a gravity mechanic in an open space sim, I want to derive all my objects from this "Block ALPHA" object and its' set of variable ...
1
vote
1answer
48 views

Rendering issues in Monogame when using shaders

I am currently fiddling with Monogame, trying to work with Shaders and I have encountered a really weird issue. If the first ever draw in the application's lifetime is with a custom shader all further ...
0
votes
2answers
45 views

Making an object hang

This image is pretty self explanatory I hope: How can I achieve this effect without animating it? I want to avoid animations as there are many objects hanging and I dont want them to move the exact ...
1
vote
0answers
57 views

Anti-Aliasing + Atlas Texture + VBO = nasty looking artifact

With my research I have found that using a VBO to render graphics is much faster than using depreciated OpenGL. I've found with this that you can't switch textures mid VBO render, so if I have ...
3
votes
1answer
68 views

Just how expensive is it to bind textures in OpenGL? (LibGDX)

I'm using LibGDX on top of OpenGL and currently my game engine does something along the lines of the following per frame Bind a terrain texture sprite atlas and a set of transparency masks in ...
-1
votes
1answer
54 views

Game Maker Studio - Check Collision With Subimages

I have an obj_roulette, which contains 4 subimages, with value 2-5 and image_number 0-3. The value result from roulette stored as var global.roulette. Then, I make many obj_meteorite, which contains ...
0
votes
0answers
21 views

HLSL texture not reading from register S1

I made a simple post processing shader, that draws scanlines. This all works perfectly. I wanted to make it a bit more interesting by applying a shadowmask instead so I wanted to pass a texture to the ...
0
votes
0answers
25 views

POST & push for turn-based network?

Can you create a viable two player turn-based networking implementation using only REST API for outbound and push for inbound data? If a game is comprised of, on average, 30 moves, is it a bad idea to ...
-4
votes
1answer
19 views

Problem in moving object on movement of mouse cursor in unity [closed]

I was watching a tutorial on how to move objects on mouse movement. https://youtu.be/7OJQ6MbHuvQ this is the link to that tutorial and below is the error I got while scripting. Pleas watch the whole ...
0
votes
1answer
21 views

Color aura around object in libGDXs actor

my question is, if there is some easy mechanism to create color aura around actor in libGDX? Thanks for all tips
0
votes
0answers
22 views

Have there been precedents where a closed-source game maker adopted user-made code (major overhaul)?

I'm interested to learn if there have been notable cases of a game maker accepting code or game engine portions developed by fans to replace their own buggy/flawed/slow parts, or even complete game ...
3
votes
1answer
51 views

Ability/Skill Data and Method Structure (C#, Unity3D)

So I've come to design my game which players will be having a unique set of skill or ability to come with. I can store skill name, mana cost, cooldown, etc in database which each skill have in common, ...
1
vote
1answer
45 views

Simulating elastic ball collisions quickly escalates to disaster

I'm trying to learn HTML canvas and was working on a basic physical simulation, where a number of balls are drawn and set in motion, and the program simulates them colliding and bouncing off the walls ...
0
votes
1answer
34 views

How to remove terrain in 3d? [duplicate]

After the release of Minecraft I saw more and more rip offs of the game but some actually began to change it up a bit making the game have a organic look instead of the iconic blocky one that ...
0
votes
2answers
96 views

Java, spawn algorithm that gets harder each level

I am currently in the process of making my 3rd Java game (everything I have learned is from YouTube videos, so I may be doing some things wrong) named "Blocked". But I have run into a problem: how do ...
-1
votes
1answer
64 views

Game puzzle pop in java [closed]

I am making a game in Java based of those puzzle popping games. The objective is to select with the mouse and remove a tile. The game i want to build. I have a JPanel and on top, several Components, a ...
0
votes
2answers
120 views

TCG Board Architecture

While I was, sort of, studying the various TCGs around, concepts, similarities, differences and how they could be implemented, if designed to be in a virtual environment (e.g. PC game) I obviously ...
1
vote
1answer
38 views

How do I make my indices anti-clockwise, so I can cull triangles in OpenGL? (immediate mode)

At the moment, I'm attempting a basic game engine in OpenGL using immediate mode. I'm trying to render a cube. Cube is a class with the vertices, normals, and indices. Here is part of the Cube class: ...
2
votes
1answer
18 views

DX11 Camera not working properly

I'm currently trying to implement a ArcBall Camera which should fly around a given XMFLOAT3 position stored in a cb with a spezified distance to the position. I used the code from Allen Sherrod for ...
1
vote
0answers
38 views

Game Physics: Calculating a collision response using the Separating Axis Theorem?

I am working on a project in which I have implemented the Separating Axis Theorem to detect collisions between objects. My current collision response is an object that contains whether it is ...
2
votes
0answers
41 views

Optimise Gear-VR text rendering with Unity

I have a problem with my text being always kind of broken, so there are just some parts of the text visible (parts of letters) and the text flickers a lot. At the moment I have this text 2D-UI text ...
0
votes
2answers
59 views

A single libgdx gamescreen with pop-up menu, getting ready, hud and game over?

Is it possible and practical to have only one screen, like a GameScreen class, where the menu, getting ready (plus instructions), hud (only score) and game-over screens can pop-up when needed. Can I ...
1
vote
2answers
76 views

How can I add holes to a sprite? [duplicate]

I'd like to find a way to add holes caused by a 'bomb' to my floor sprite, a bit like what is in this game here. Basically there is a sprite (the green floor) and another sprite (the bomb) that ...
1
vote
1answer
88 views

Android OpenGL Sprite Component Pattern

Ok so I have a 2D OpenGL project that was originally a class assignment, and now I am using it to experiment with and to broaden my knowledge. Originally, I had been using the Normalized Devices ...
0
votes
0answers
32 views

plane bend problem

I thought to make the objects to view in the direction where the camera faces. But i have encountered a problem, When the camera goes near to the object, It bends. I don't know how to solve it. Here ...
5
votes
1answer
42 views

Playing Audio in Unity 5.x

I've started using Unity recently and have ran into some snags with the built audio features. I am trying to have multiple sounds play from the Player Game Object. I'm not sure what the best way to do ...
0
votes
1answer
54 views

Getting the Right Vector from the Forward Vector

I'm currently working on a small Camera (ArcBall) and I finally am starting to understand how it will work. I will first create a basic View Matrix using a LookAt function. Then, I will send the ...

15 30 50 per page