0
votes
1answer
4 views

Problem with 2D matrix transform og shapes

I have set myself onto the task of creating a class BaseObject, which represents a graphics object with an associated shape as the member variable shape, which is a pointer an object Polygon. I'll ...
-5
votes
0answers
11 views

Is that possible to use some voxel engine to build games like Virtua Racing or Virtua Fight? [on hold]

On the prior of 3D games we got some nice pretty simple examples however with nice simple environment graphics that I thought could be "remastered" for nowadays graphics engines. So I though ...
0
votes
0answers
7 views

Using Blender to define physics objects for libGDX

I'm in the early stages of building a game using libGDX. The game is 3D and will use Bullet physics (gdx-bullet wrapper). I have a 3D scene loaded and have manually created some physics objects which ...
0
votes
0answers
12 views

Sine wave angle calculation [on hold]

How do you calculate angle of sine wave during it's period? I know that period of sine wave is two PI or 360 degrees. I have been trying find answer to this, but with no luck Thanks already for the ...
0
votes
0answers
11 views

Visual Studio repair probblem [on hold]

Ive been trying to program with visual studio and for the first day it work but now when i try to start up visual studio it keeps telling me to repair it or uninstall it. When i try to repair it it ...
0
votes
0answers
18 views

Architecture vs Performance [Java; Android game] [on hold]

I'm make a sandbox game on Android and can't decide how best way. Has is a significant difference in the performance in Example 2? ~800 tiles drawing on screen 60 times per second. Example 1 (6400 ...
0
votes
1answer
24 views

How do I know whether is normal in one part of plane with a point

Hello. How can i calculate that normal lays in same part of plane with point. I.e. n0 for A and n1 for B. Plane divided by lane CD.
1
vote
1answer
41 views

Smooth slow pixel art movement MonoGame/XNA

When ever I move a sprite that is scaling using point filtering slower then 1 pixel for example 0.1 pixels the movement becomes choppy/jerky instead of moving in sub pixel movement it jumps from pixel ...
0
votes
0answers
29 views

Game written using C++, OpenGL 4.4 on SDL doesn't drop frame rate but runs in slow motion [on hold]

Our game written with C++ on SDL using OpenGL4.4 has a fantastically weird bug. When the game is run for enough time, things begin updating in slow motion. The framerate is still 100fps - 90fps, but ...
0
votes
0answers
13 views

Launching projectile from a “canon” [duplicate]

I'm working on "Scorched earth"-like game just for learning purpose. I can't figure out how to launch the projectile from my tank's position, with a power of X ([0,100]),at an angle of Y ([-180,180]). ...
-1
votes
0answers
16 views

Can't figure out why my sprite isn't moving

In my libGDX game I'm trying to make it so that the player character moves left and right depending on which side of the screen you press. However, when I run my code, I keep getting a null pointer ...
0
votes
0answers
24 views

How can I split my entity manager class into a gameworld class and gamerenderer class?

I currently have a libGDX game where I have an entity manager class which is called in the gamescreen. Instead, I would like to utilise it in a gameworld class and a gamerenderer class, but I cannot ...
1
vote
2answers
33 views

How do I show a small sprite being dragged by touch?

In my mobile game, users drag shapes across the screen. Think of it as a classic Lines game, where you drag a dot on the field, or a chess game where you drag and drop pieces. The problem is that the ...
0
votes
0answers
15 views

webGL sketchfab model responsiveness and loading speed

I've been looking at this sketchfab model: https://sketchfab.com/models/5b2de0c2a94240c2b584fcd8a7c48c61 and wondering: the number of polygons is very large, how do they manage to load it in such a ...
0
votes
1answer
19 views

Will DX10.1 rated motherboard run DX11 graphics card? [on hold]

I have H61 m DS2 which is rated with dx 10.1 but if i use a dx 11 graphics card like GT730 1GD5(asus) will my motherboard support? please reply..
0
votes
0answers
18 views

Fast method to find the nearest point on a model to a point in 3d space?

Lets say I have a 3d model, or more simply, a collection of 3d triangles. I added the triangles to an Octree and now I wish to accept a point as input and return as the output, the nearest point on ...
0
votes
0answers
14 views

Check if an axis aligned cube intersects with a 3d triangle?

Check if a point is inside a cube: def is_point_in_cube(point, cube): return ( p.x > c.x and p.x < c.x + c.size and p.y > c.y and p.y < c.y + c.size and p.z > c.z and p.z ...
0
votes
0answers
2 views

Projection functionality in Andengine

I want to do this functionality on arrow shoot from Bow in andengine can somebody help me to provide some code or demo. engine.
1
vote
2answers
50 views

HLSL Pixel Shader - Color depending on condition

I am new to shaders and HLSL so bare with me on this one. I have a 2D tile map in my game and want to create a mini-map, at first I was just copying all the data from one sprite batch to another and ...
-1
votes
0answers
15 views

How do I store data of game assets in sdcard in unity

I am making game in UNITY3D and Its getting too big, I want to store the game data in sdcard by downloading it when the game start (same like most of gameloft's games). I tried AndroidOBB plugin and ...
0
votes
0answers
25 views

How much is atomicAdd slower than an atomic counter?

I am considering replacing an atomic counter in my shader code with a SSBO an atomicAdd operation. What I need to know is the difference in performance of these two. I know the atomic counter executes ...
0
votes
0answers
27 views

Calculating Bounding Rect

I'm trying to clone space invader of atari and I have problem with bounding rect calculations.. the rect is not correctly bounded.. maybe I have problem with the transformations void ...
0
votes
0answers
5 views

Switch fullscreen resolution at game launch with Adobe AIR

I have a game built in AS3/Flixel that is turned into an executable with Adobe AIR. What's the best way to allow multiple fullscreen resolutions? We have already made the game work for multiple ...
0
votes
0answers
22 views

How to implement data structures for shaders

I'm currently researching computer graphics and esp. how to combine research and it's practical applications. To get started I wanted to implement the methods used by a few papers. First of which I ...
0
votes
0answers
14 views

Unity PolygonCollider2D acts different on iOS Device

I'm instantiating new game object, then adding a SpriteRenderer component and attaching a sprite object, and only after the sprite is fully loaded, I add a PolygonCollider2D, to fit the sprite I've ...
0
votes
0answers
29 views

Good system for experimenting with shaders in different languages

I'm trying to experiment a bit with shaders and they have been programmed in several different languages (GLSL, Cg and HLSL). Now most systems (dirrectX, openGL) have only support for one of them. ...
0
votes
0answers
10 views

save and view snapshot image from android device

I'm having a problem with saving image into an android device this is what i did My java class : package com.test.app; import com.unity3d.player.UnityPlayerActivity; import android.os.Bundle; ...
0
votes
0answers
20 views

Partitioning a Tiled map

In my 2d platformer with libGdx, my maps are quite large (eg. 200x200). The player character is only 2 tiles high. I use Box2d for collision, so in my tiled map I have layers for terrain, ...
-1
votes
0answers
18 views

How to start with game development Android

I am new in Game Development.Basically i want to create android based games.I have seen OpenGl ES is the best way to create games for Android.Is there any Game engine for creating games both 2D as ...
1
vote
0answers
38 views

How to do monster AI movement and attacks server side?

I have my web based rpg game already created. Inventory management, equipment system, character stats, skill tree, and etc. It's almost complete. For the game world, I am creating a top-down rpg ...
0
votes
1answer
44 views

Confused with how I should organize my code in a 2D game using OpenGL [on hold]

I've just now started learning OpenGL and I'm getting very overwhelmed and confused with some things. I don't want to permaturely optimize things, but I also don't make decisions about things I still ...
0
votes
1answer
30 views

Equation for exponential deceleration so the objects “stops” at destination

Let's say my ship's velocity during deacceleration phase is given by: v(t) = v0 * exp(-k * t) where v0 is the speed at the time of starting deacceleration and k is arbitrary constant. My problem ...
0
votes
0answers
32 views

How to resolse collision between moving and static AABB?

What I have is a map represented as list of Rectangles and player's rectangle. Also I have function to determine depth of the collision: Point TestAABBAABB(Rectangle a, Rectangle b) { ...
1
vote
0answers
20 views

XNA Monogame - Move .dll and .xml root folder

I was just wondering if it's possible to move the dll and xml files into a subfolder, like in this picture: Thanks !
1
vote
1answer
17 views

Collision detection between axis-aligned bounding box and bitmap (pixel perfect) terrain

Working on a Worms-type game, I have my objects in bounding boxes and they sit on the pixel terrain. Currently I am able to successfully do the collision detection for objects when they enter the ...
0
votes
1answer
30 views

How do I draw a line from a set of points in unity to use as terrain in a 2D game?

I'm trying to make a 2D game in unity. My terrain is randomly generated and what I'm trying to do is make a bunch of points with different x coordinates and then draw a line through them to use as my ...
0
votes
1answer
37 views

what is the basic concept behind online games? [on hold]

I want to make a 2D car race game which the camera on top perspective like this: And i want to let users play against each other online, Is it about sending sprite position data from the user1 ...
0
votes
1answer
73 views

How should I choose between Vec3 and Vec4?

I find myself torn between using Vec3's vs Vec4's for representing position, directions, etc in my non-gpu code. I see the obvious benefit of using Vec3s for stuff like data in buffers, to more ...
0
votes
0answers
24 views

how can i create game elements like those in Geometry Dash game?

whats the basic idea in creating elements in a level like those in Geometry Dash game ? i'm wondering is it a long background in width such as 60000x400 image for side scrolling game with every ...
0
votes
1answer
44 views

How to deal with events in a game with multiple players, in Unity?

As I'm developing our game I have asked myself a couple times "When we have more than 1 player, how will I ensure events from player A do not crossover to player B?" As an example, lets say player A ...
0
votes
0answers
14 views

Using node JS for web adventure game

I've been working on a single player adventure game using melon JS, and PHP/MySQL for player data storage. I've read up a little bit on node js ...
-1
votes
0answers
58 views

Is XNA still relevant? [on hold]

I am currently devlopping a game with XNA. But the community seems to not be active anymore. That's why I am asking if I should still go on... What's the advantage of using Unity3D ? Will I be able to ...
1
vote
0answers
50 views

How to make a sword swing effect

I'm working on a 2d java game on Slick engine and I always wondered how to make swing effects when striking with a sword? How to code something like this? ...
1
vote
1answer
37 views

Unity2D: Automatic scaling of camera and sprites

I'm working on a point-and-click adventure game using Unity2D for mobile devices and possible PCs and I'm trying to wrap my head around supporting devices with different screen sizes and aspect ...
0
votes
1answer
20 views

maps in a multiplayer diablo clone - unity3d

I'm messing around with unity3d free, trying to figure out if i can get away with using its readymade graphic engine. I have some problems figuring out how maps should be implemented/handled (the ...
0
votes
1answer
15 views

Export Spriter animations to Unity

I want to use bone animations in my 2D game for Unity (5.0 beta). I am trying Spriter. Apparently, it has no official Unity support. There was some guy, back in 2014, who posted a plugin to convert ...
0
votes
0answers
10 views

How can you merge the geometries of cloned objects in Three.JS?

So I'm testing the best non-voxel way to display a lot of objects at once and so I found how to merge geometries. Now, I can easily merge most geometries, but I can't seem to merge the geometries of ...
0
votes
0answers
18 views

Debug vs Release memory [on hold]

My game runs fine in release mode, but in debugging mode if i get too much objects on screen it slows down game fps and the game can get very slow. I am using vstudio and c++ language, is there a ...
0
votes
1answer
17 views

Changing the texture filtering methodology within the same SpriteBatch Begin/End pair

How would I go about using changing the texture filtering method being used within the same SpriteBatch Begin/End pairing? I have this code so far. spriteBatch.Begin(SpriteSortMode.Deferred, ...
23
votes
10answers
3k views

How can I make a “random” generator that is biased by prior events?

I am looking to implement a chance based system which is biased by prior event. Background: Some years back, I remember an update for World of Warcraft announcing that they implemented a new chance ...

15 30 50 per page