0
votes
0answers
23 views

Libgdx getting random position on screen is null?

So, I want to get the random position on my screen to spawn enemies on them. but here's problem. int randX = r.nextInt(screenWidth); int randY = r.nextInt(screenHeight); Apparently these are null, ...
1
vote
1answer
24 views

GJK point-in-tetrahedron - capping the number of searches?

The very informative mollyrocket video has given me quite a lot to work with, but one thing that the video seems to suggest is that the algorithm should ideally run until it definitely determines ...
0
votes
0answers
14 views

There is any nosql database for libgdx? [duplicate]

my question is simple. There is any nosql database compatible with libgdx? , I have googled it but I didnt find anything. I only found that libgdx iplements sqlite.
3
votes
3answers
579 views

Creating an in-game time system only works with real time

I'm trying to create an in-game time system. Thus far it only works properly if you use 1440 minutes to the day (realtime), but I would like to be able to alter the day length to something like 10 ...
0
votes
0answers
27 views

OpenGL not rendering to correct target

I have a fbo, with 8 textures in it (g-buffer). What I'm trying to do, is to render all information from opaque objects to first four(color, normal, position, depth), and info from transparent objects ...
1
vote
0answers
33 views

VS2013: Compiling Shaders with Shader Model 5.0

When I try to compile two HLSL files included in my project, the compilation fails with an error: Error error X4502: invalid vs_2_0 input semantic 'INSTANCE' However, I notice it's trying to use ...
-3
votes
1answer
49 views

Translate a point on a circumference

If point A is r units away from point O, how would i get a point B which is also r units from point O, but is also d units away from point A (translate d units on the circumference)? I know this is ...
0
votes
0answers
38 views

Simple Game State Manager [on hold]

I'm in the process of making a simple BreakOut clone. At the minute the play mechanics aren't too important (collision detection etc). What I'm currently working on is the Game State Manager. I've ...
0
votes
1answer
32 views

Show size / dimensions of an object in Unity Inspector

I want to see the size of the currently selected objects in the Unity Inspector, however I can't seem to find how to add it. Currently when I select a model in my scene, the Inspector panel shows info ...
0
votes
0answers
70 views

2D Distortion shaders for water effect

I'm working on Unity, and I'm trying to improve my water. The water will be seen top down, and I want to apply a shader to it to make it better looking. I understand the concept of distortion shaders ...
1
vote
1answer
87 views

Cannot use imported image with Unity's UI controls

I know this question sounds banal but its a problem. I received a project and opened it. Now I try to edit it by adding my own images. I do the import but the image does not show up when selecting ...
1
vote
1answer
28 views

Weird windowed resolution - can't seem to change without changing the name

My game is windowed, and when I set the resolution in the build settings (960x540 - 16:9 - Windows standalone), and build it, it works as intended, but from then on, I can no longer change the ...
0
votes
3answers
41 views

[Unity]Avoid boucing when ground move down

I have a sphere & a quad, when the quad move down, the sphere fall after and bounce back continuously. I dont want to change my project setting like bounciness, gravity,mass and I need the sphere ...
0
votes
1answer
31 views

How to retarget animation from Generic to Humanoid?

I am in a constant struggle to convert a character that is indeed a humanoid character but its rig has been assigned as a generic rig. I want it to be humanoid so I can easily retarget its animation ...
0
votes
1answer
51 views

Hexagonal buttons

I'm trying to create a map of touchable hexagons and the playing area would be like in Catan game. I would like to use Sprite Kit to do the job but is it cabable of doing that? Process goes like ...
0
votes
0answers
43 views

Create a Minimap of a Tiled Map with LIBGDX

thanks for stopping by to help! Having a little trouble with OrthogonalTiledMapRenderer. I've got a Tiled map that is 250x250 tiles, each 16x16 pixels. Trying to use a separate camera to draw a ...
1
vote
2answers
49 views

Unity prefab script “GameObjects” can't be ones on the scene?

Currently, I have an object on the scene, and one in prefab. I want the prefab's script to reference to the object on the scene through the public GameObject obj; code. However, when I tried to ...
0
votes
1answer
47 views

Desktop and Android diference in rendering [on hold]

I have my game setup and working on Desktop and Android. Once I create my core screen class, it stops responding on Android. I tested it on my phone too. It runs Android 4.0.3. Is there a special ...
0
votes
0answers
42 views

A simple “beam tracing” simulation

I am trying to implement a simple beam tracing simulation. Basically it models the path of a beam within a pipe: In the picture, the beam starts emitting from p1, hitting the boundary at p2 and ...
1
vote
1answer
23 views

Vector magnitude in orientation

First, a quick overview of my problem: I have a game entity which has a quaternion to represent its rotation/orientation. It also has a 3D vector in world space for its linear velocity. From the ...
0
votes
1answer
17 views

GL_SPOT_CUTOFF not working properly

I'm new to OpenGL. I'm studying OpenGL 2.1 and I'm trying to make a little program to test the GL_SPOT_CUTOFF property, but when I set a value between 0.0-90.0, the light doesn't work and everything ...
0
votes
0answers
34 views

Marching Cubes Chunks

i'm doing some voxel based game, where i want to have voxel planets. i decided to use the marching cubes algorithm, and i successfully created a planet (even with noise) with the following density ...
0
votes
2answers
57 views

Accessing colliders from one script C#

I want to access specific colliders(to see if they are been clicked) from one script insted of making multiple scripts for every collider.How? I am using unity. using UnityEngine; using ...
0
votes
0answers
36 views

I've wrote my server code, what to do next? [on hold]

Firstly i would like to point out that I'm a beginner to networking. I've been developing a multiplayer game for iPhone for the past 1 year as a hobby project and I'm getting closer now to the ...
0
votes
0answers
40 views

Unity Photon/PUN - Updating booleans with RPCs

I'm using the latest version of unity with Photon's PUN library. I used a tutorial to make a really simple multiplayer game (cubes moving around) which works fine. Now I'm trying to make a turn based ...
0
votes
1answer
23 views

Texturing issues in cry engine sdk

Sup? I've been working on a new environment scene inside 3ds max. It looks something like this - When I used the cry engine exporter to export my assets onto my level, I've been getting very weird ...
0
votes
1answer
63 views

Multiplying by delta not giving smooth movement

I started working on my first proper game but reached a problem straight away. In short I have a game that runs most of the time at 60 fps. ( I am using Libgdx a popular Java framework) but my game ...
-3
votes
0answers
29 views

Decode webm video to DirectX Texture [on hold]

I am loooking for a library or sample code that decodes a webm video to a DirectX texture. I know that everything in webm is open source and it's just a matter of implementation. But before I do the ...
0
votes
0answers
12 views

UDK:how to play 2 musics at the same time

I have been working with UDK for couple months and I decided to make a game and I want my game to have a raining music and a nice music at the same time I tried that and it didn't work and also when ...
-2
votes
0answers
80 views

game breaks on nvidia hardware [on hold]

I have been developing my game using directx 10 SDK june version with c++ in an AMD ATI laptop I tested my game on intel CPU with integrated graphics 4600 and it works fine but then I tested it in ...
0
votes
0answers
9 views

JBullet: How to add heightmap to dynamic world [on hold]

I implements JBullet into my code. Boxes, spheres work prefectly. But I don't have idea how to implement to my world heightmap(as static object). What type of shape I must use and how? My heightmap ...
0
votes
0answers
27 views

Java LWJGL - How can I click to interact with objects?

I want to be able to click on a monster to walk to him and start attacking him. The part that doesnt make sense to me is the conversion between the mouse position, and the actual terrain position. ...
1
vote
1answer
53 views

Where can I find OpenGL state changes profiling?

Is there any benchmark that actually measure state changes cost in OpenGL 3.x/4.x and gather an average statics for all graphics cards? (I don't want to optimize only for my old AMD card, I'm not even ...
0
votes
1answer
51 views

Cavity map generation

I am looking for an algorithm how to generate cavity (or curvature) map. There seems to be no refernce to it, only final solutions like xNormal software, but that is not what I want. I am looking for ...
0
votes
1answer
41 views

How can I add banking and rotation to this object manipulation script?

I have made a drone script that allows user to move in four directions and ascend/descend. I found a nice tilt snippet which makes the thing bank when it moves. However, when I include this, the ...
3
votes
0answers
95 views

Unity2D tall grass

I'm using Unity to create a 2D top-down game. Everything has been great so far, but I have come into a problem that I fail to solve properly. I want to implement "tall grass areas" where part of the ...
0
votes
1answer
56 views

Unity, Why a Text object can't be edited?

I have an input field and event that calls a function when I press enter. public Text theText; I take the Text part of the input field (connect them in editor), display the content and set new ...
1
vote
1answer
56 views

Lots of bouncing balls sink into each other [on hold]

I'm trying to model a system that simulates an arbitrary number of bouncing balls with some gravity. So far I've come up with a solution that can be seen here: ...
2
votes
2answers
95 views

How to calculate a 3D orientation from 2D vanishing lines on an image?

Let say I have a image that represent a 3D scene. I did not have the 3D camera orientation of that scene (left, up and forward vectors) and i'd like to calculate it. On that picture, I draw the ...
0
votes
1answer
60 views

Rotate camera keeping player not in the middle

Here I have a 2D top down game. Currently the camera is set on the player position. The player constantly points to mouse position. I want to modify this setup having the camera to be set slightly ...
0
votes
0answers
37 views

How to append to a sprite sheet? [on hold]

Are there any sprite sheet tools for appending? Or really an guides to using a sprite sheet in an efficient way. Some sort of excellent tools have got to exist! Thank you!
0
votes
1answer
86 views

How to deal with different resolutions in a 2D game? [duplicate]

For example, you have a sprite of mario with a size of 20px x 20px. This sprite however was made for a game resolution of 1000px x 1000px. What if you want to provide a different game resolution as ...
-1
votes
1answer
55 views

How to should I create a connection between a simpe Unity UI and a game? [on hold]

This the link to the UI :https://www.assetstore.unity3d.com/en/#!/content/25468 And I wish to connect it to my game.What should be the code for It
0
votes
2answers
36 views

How to render apart blocks of a cone

in OpenGL I want to render a cone in parts like on the image. My problem is to calculate the arc of each block in 3D space. has someone an idea how to handle this?
1
vote
1answer
36 views

Set box collider size in meters instead of percents

TL;DR: Can I set the size of a collider in meters instead of fractions of the size of the object it's in? I'm implementing a classic NES game, and my scale is 1 meter = 16 pixels. I have an 8x1x1m ...
0
votes
1answer
59 views

Instancing effectiviness

At about how many instances would instancing become effective? DirectX dynamic buffers seem to take a little more out of the fps than an immutable one would. So obviously you wouldn't want to make a ...
0
votes
0answers
32 views

Setting up local players in Unreal Engine

I'm trying to make a 4 player 2D local multiplayer game. I have tried a lot of stuff to get to this stage, but as far as I have been told, a method called CreateLocalPlayer creates a local player, ...
0
votes
0answers
66 views

*.3ds format support [on hold]

Does the *.3ds format support: texture animation and light? What is the best game engine to use with the lib3ds? (I want a low level game engine) (its for lerning) Thank you a lot for answering my ...
0
votes
0answers
24 views

XNA sound effect loop cancel

I'm using SoundEffectInstances in XNA to play a tone. This means I have ~.005 second clips playing on a loop. It sounds fine, but I can't gracefully stop them because XNA gives a ...
0
votes
0answers
48 views

Game Server on Amazon EC2 [closed]

I signed up for the free trial package of Amazon's EC2 servers. Where would I start to upload my server SDK for my game and use it to host servers for my game? I haven't found many resources online to ...

15 30 50 per page