1
vote
0answers
6 views

Best way to deal with a large variety of items?

I am currently working on my first java game and I am having trouble figuring out how I should implement my classes that will have heavy variety. For example, I am considering having an abstract item ...
0
votes
1answer
3 views

Solitaire Game: Transferring Cards Design in C++

So, I'm working on a Solitaire game. I already created a the classes: Card, Pile, Stock. Each work as expected on it's own. My question is: What possible design for managing moving card(s) between the ...
0
votes
0answers
14 views

Incorrect Normal Matrix

In my game engine I'm passing a normal matrix to my shaders like so: Matrix3f normalMatrix = modelMatrix.invert().transpose(); However this is causing lighting to rotate with my object, producing a ...
0
votes
0answers
10 views

XNA/MonoGame RenderTargets not working

I'm having a problem with drawing 2 RenderTargets to the screen. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using ...
0
votes
0answers
10 views

SDL — What am I doing wrong with SDL_LockTexture()?

I'm trying to use SDL_LockTexture and SDL_UnlockTexture for direct access to pixels in SDL 2.0. When I try to set pixels, I never see anything happen. Here's my code: void *pixels; int pitch; ...
0
votes
1answer
16 views

Libgdx - Jumping, What am i doing wrong?

I really can't work out whats wrong with my code. I have an input listener for gestures, when I Swipe the position goes up on the y axis fine but he doesn't come back down, if with Gravity added. I'll ...
0
votes
0answers
5 views

Pros and Cons of GJK vs MPR [on hold]

I've heard that MPR is easier to understand and implement, while GJK converges more quickly so is more efficient. I've also heard that you can use EPA with GJK results to get a penetration distance / ...
0
votes
1answer
23 views

How to draw to a surface, then draw that surface to the screen

i have a 2D MonoGame Game (using DirectX), that was originally an XNA game. It involves prerendered shadows (they are Texture2Ds drawn with SpriteBatch.draw). Right now the shadows are being drawn ...
0
votes
2answers
27 views

Drawing a pixel to RenderTexture

I would like to know how you would go about drawing a single pixel to a RenderTexture in Unity. In XNA, it was just a matter of setting the graphic device's active renderTarget, and drawing to it. ...
0
votes
0answers
13 views

Trying to get OOP working with libgdx [on hold]

I'm trying to use this player class for my entity stystem, but rendering isn't working right. I'm trying to have each class render on it's own by calling entity.render(); in my core application class. ...
0
votes
1answer
32 views

SDL pixel access very slow

I'm using SDL and need to plot pixels one by one on the screen. When I do this, it's extremely slow. I followed the tutorial here: http://www.programmersranch.com/2014/02/sdl2-pixel-drawing.html ...
0
votes
2answers
35 views

How to keep a shape inside a rectangle

So i'm making a game which is based on randomly generated rooms and i need a way to keep the player inside them and make the player glide when he collides with the room's bounds. I currently have a ...
1
vote
1answer
10 views

(Fat) ray cast with MPR OR GJK?

I know that it's possible to see if a line segment or a swept shape (to make a "fat" line segment) intersects objects using MPR and GJK. Is it possible in those situations to find out the distance ...
2
votes
1answer
29 views

Are GPU physics implementations branchless?

I've implemented MPR on the CPU and in pixel shaders (long story!) and there seems to be unavoidable conditional loops both to find the starting portal as well as to find the final solution. I know ...
-1
votes
0answers
6 views

Of Skinning Animation with HLSL BoneIndex Data transfer error [on hold]

I am now doing Skinning Animation in HLSL (DirectX9) However, the data does not go over well with Shader for BoneIndex The code for setting the data of D3DVERTEXELEMENT9 D3DVERTEXELEMENT9 ...
0
votes
0answers
13 views

swap rotation problem in mobile game (unity)

using UnityEngine; using System.Collections; [RequireComponent (typeof (CharacterController))] public class Camera_rotation_onSwap : MonoBehaviour { public bool kJoystikEnabled = true; public float ...
1
vote
1answer
18 views

JBullet - How can I make my object float on the water?

I'm trying to use JBullet for a ship PVP game. I've got two ships which are meant to rest on the water. Obviously these ships will be colliding, but the problem I have currently is "water" ...
0
votes
0answers
14 views

SAT MTV collision resolution jittering

Edit: I have updated my approach a bit, but now the problem is that if i'm outside a wall i stick to it, basically i get the Desired vector of motion and move there. Also how would i adapt this ...
0
votes
0answers
16 views

Unity 5 profiler shows Vsync graph even if disabled

My game suffers from some lag spikes over time, wich match with the Vsync graph in the unity 5 profiler. I deactivated Vsync via script and the quality settings but the lag is still there and the ...
1
vote
0answers
19 views

Collision callbacks in a javascript engine

I'm making a game engine in javascript for Educational purpose. I already have the collision detection and collision response parts and are working fine, but i want to let the user define his action ...
0
votes
0answers
9 views

blender2ogre why armature displacig my texture [on hold]

Does anyone had similar issue, or any tip, I have my character its rigged animated nad UV unwraped, the scale is 1 but when I export it with blender2 ogre I cant see texture and whole character is ...
0
votes
0answers
15 views

Shaperenderer not showing any shapes

I'm trying to use the shape renderer in LibGdx, but I don't see anything. I followed the docs as well, but nothing appears. Is there something wrong with my setup? public class MyGame extends ...
-1
votes
1answer
45 views

Why can't I access List<T> through System.Collections.Generic? [on hold]

I have the following small and incomplete script, and I was wondering if anyone knew about this issue. I'm trying to access System.Collections.Generic.List<T>, but I keep getting the error The ...
-2
votes
0answers
24 views

Running Same Minecraft Server On Two Machines At Once [on hold]

Is it possible to make two computers run a single minecraft server? I know there are clusters out there but I don't know if that's what I'm looking for.
-1
votes
0answers
60 views

A complete guide to becoming a game developer [on hold]

I am an experienced PHP developer who has been programming web apps throughout his career and been using lots of PHP frameworks. Have been trying to create a simple 2D football game recently but I ...
1
vote
0answers
12 views

Query regarding a quad tree implementation for spherical terrain

I am having some difficulty conceptualising how a quadtree would be used to implement a spherical terrain system. I currently have a spherical terrain system working, without any form of ...
1
vote
0answers
23 views

Update function - design patterns [on hold]

I started reading about game development design patterns and from my experience there are 2 options for update methods. The first one receive from the game loop and delta time of this update and ...
0
votes
2answers
40 views

How to use TextureArray's Pre-OpenGL 4.2?

I've been using TextureArray's in my current Project; However, I have come to the problem of OpenGL 4.2 functions not being on the present Mac software when ported over. Due to only version 4.1 of ...
0
votes
2answers
30 views

Ball oblique impact physic in Java?

I know Q3 + Q4 = 90 I searched internet and many physic topics, but not found how to calculate this values in Java? (I found V3 and V4 but not found Q3 and Q4) So how can i calculate V3, V4, ...
-1
votes
0answers
20 views

Stochastic process simulations in OpenGL [on hold]

I'm planning on taking on a pet project in OpenGL in which I want to simulate particle movement in 3D, 3D Random Walk, Brownian Motion, state transitions (Gambler's Ruin, Inventory) etc. etc. I also ...
1
vote
1answer
29 views

Proper use of texture units

I'm a beginner using OpenGL v3.3 on C# with SharpGL. I have a simple scene with a Skybox and some OBJ Models. Both the skybox and models have multiple textures. Currently what I do is that I load all ...
1
vote
1answer
28 views

What does the number in TextMesh.lineSpacing refer to?

I have a TextMesh with some text, and mutliple lines. The 4 examples have these settings: lineSpacing = 220, characterSize = 10 lineSpacing = 220, characterSize = 25 lineSpacing = 220, ...
0
votes
1answer
26 views

Unity 2D Current object force

I'm working on a game with an entity firing a shot. This shot could destroy other entities as well as the entity who generated the shot. My first step was to apply a force to the rigidbody2D of the ...
0
votes
1answer
27 views

Unity 2D - scale sprite according to screen width

So I have a square sprite (width == height) and I want to scale it so that both width and height are exactly one fifth of the width screen. To find the desired pixel width I do: float ...
0
votes
1answer
27 views

I want to blit a standing man on pygame

I was making a game with pygame and python and I wanted to blit an image of a standing man and when a right key is pressed I want the man to run and when the right key is released I want the man to ...
2
votes
1answer
52 views

How do I draw a circular portion of a texture within LibGDX using an OpenGL ES shader?

What is the simplest way to implement a shader to draw a circular portion of a full screen texture where the circle is dynamically resized as part of an animation using LibGDX? Is a shader even the ...
-1
votes
0answers
25 views

CEGUI 0.8.4 and SDL2. Crash the app after startup

Do not run the compiled lesson. Link to the lesson. https://bitbucket.org/lucebac/cegui/src/ea8f8c814a4d5dbaa56344218659eb68ce173961/application_templates/SDL2.cpp?at=application-templates-devel Link ...
3
votes
1answer
86 views

Image edges are distorted inside game

I dont know how to explain this, so I will use images to describe my problem. The image I made using InkScape: What it looks like in-game (ignore the runner): As you can see the edges are not ...
-6
votes
1answer
53 views

MMO game made with Unity [on hold]

this is my first post in stack exchange i am currently making a 2D MMO game with Unity 5 and Bolt engine for the networking but i realized that a friend of mine has already made a Fan based game ...
4
votes
2answers
112 views

Glass Material for Unity 5

Anyone know how to make a glass material in Unity 5? I can do metal and image textures, but not sure how to create a glass material(its for a shower door and just plane glass. A search on google ...
0
votes
1answer
17 views

In Unity, why do my animator states wait until the end of each animation to change?

I'm trying to make a simple idle-walk transition in Animator using Unity. I've set a script that changes the Speed value from the Animator, and it works perfectly when I move the character forward ...
-1
votes
1answer
59 views

Are there any topics on Procedural Generation based on a predefined mesh?

I see a lot of post about procedural terrain generation, but this is not what I'm looking for. I want procedural generation, but I want to be able to define the shape of the generation based on a ...
0
votes
0answers
9 views

With Multiple First Person Controllers i cant move the camera up and down UNITY3d [on hold]

Im making a Multiplayer FPS and im having a issue where if i have two clients on the server neither of them can move their cameras up and down BUT they can move them side to side, Why is this ...
3
votes
1answer
76 views

Optimization for Normal maps with lots of wasted space?

I'm working on level/character assets where I'm finding that I use only very little amounts of normal mapping on them, resulting in 2048x2048 textures that are mostly blue/purple. Is there any method ...
0
votes
1answer
26 views

How do i load, render and trasnform 2D images using Direct3D 11 API?

In my small game project using DirectX 11 API, I created a Direct3D device, and can draw 3D meshes, using web tutorials and a book. But I cannot figure out how to load, transform (rotate, scale, ...
0
votes
1answer
35 views

Google Play Game Services real-time multiplayer secure game data architecture

Is it secure to allow all game clients in a multiplayer game session to store sensitive opponent player data which should be revealed in the UI only upon a certain action (e.g. enemy building type ...
1
vote
0answers
39 views

Why is my partially transparent image blitted fully opaque?

I have a part in my program that should display the currently playing song's name for the first 4 seconds, then fade out. Even though Surface.get_alpha() returns expected results, the image still does ...
2
votes
1answer
22 views

How to draw portion of a sprite in libGDX

Let's say i have a sprite like this: and i want to draw the lower portion of it, only the yellow color.. Initially the sprite has dimensions 10x10, i want it to be drawn 10x3 Do i have to ...
0
votes
2answers
41 views

Unity2d bounce only y-axis

I want to make bounce game. I did a bouncing ball. If I wanna to move it with arrow keys, the ball is vibrating. I know why it happens but my english is not enough for explanation. How do I make ...
0
votes
2answers
40 views

Will I lose the mesh if I delete the original prefab?

I'm working in Unity 5, and I currently have the following setup: My project contains two prefabs which we'll call "Cube" and "CubeT". Cube was imported from an FBX file generated by Autodesk 3DS ...

15 30 50 per page