0
votes
0answers
4 views

MVP Matrix * Vector3 = Black Screen?

I'm relatively new to computer graphics so please take it easy. I created a ModelViewProjection Matrix and I sent it to my shader: #version 330 core layout(location = 0)in vec3 vert; uniform mat4 ...
0
votes
0answers
23 views

Small question about ECS : Advantage of having a component with a list of Base Class , or a component for each implementation of the base class? [on hold]

I'm trying to learn ECS based on guide and an ebook I'm reading, but since those are mainly simple example, I have alot of question when looking at larger projects and not simple 5 component game ... ...
0
votes
0answers
10 views

Unity Move Object to Object [on hold]

Please help.I need a js script for move an GameObject with the tag "ridica" to an object with the tag "membru" when i "onMouseDown" a GUI Texture.And i want to leave the gameobject to fall after i ...
0
votes
1answer
29 views

Why does my vertex shader produce no output until I add some arbitrary value to the position attribute?

I want to draw a textured quad but there is nothing drawn and the setup should be right. This is my vertex shader: #version 330 in vec2 position; in vec2 texel; out vec2 texCoord; void main() { ...
-1
votes
0answers
17 views

How to present limeted rotation possibilities in an editor

In a 2d game I'm developing, I'm aiming at making the level editor an important part of the game. The game will be primarily aimed at mobile platforms, i. e. smartphones and tablets. The game ...
6
votes
1answer
300 views

How can I create a stretchy, breakable pizza cheese material?

I want to create realistic pizza and allow user interact with it. What I want: What I created: I created model of the pizza (8 pieces) in Blender, then imported it into Unity. The piece of ...
0
votes
0answers
12 views

LibGDX , what is box2d [on hold]

I am using libGDX to create games , but I want to know what can I do using box2d ? shall I use sprites , stages , actors if I use box2d? is there good tutorial of box 2d?
2
votes
0answers
47 views

Skybox rendering

I am sorry if this is trivial, but I got into OpenGL just very very recently. I am trying to render skybox (with cubemaps) and this is what I have done: Created a VBO with vertices positions (36 ...
2
votes
1answer
72 views

How to design a drag and drop inventory system with transition from icons to game objects?

I’m trying to write a simple 2D game in Unity with an inventory where the user can drag and drop different objects on the screen. I need the inventory to contain icons which on drag will become ...
0
votes
0answers
38 views

c++ factory pattern component creator with singleton container [migrated]

I'm implementing the factory pattern for component creation and want to implement a singleton container for all instances of each type created by the factory. Ideally this would be one vector for each ...
1
vote
1answer
58 views

Input processing performance

I'm building a game using SDL in Linux platform. Now I want to read user input with SDL_GetKeyboardState, but my doubt is wich is the best way using a thread or a timer. I tried both and I think ...
1
vote
1answer
52 views

Collision detection across multiple components

I have been reading this article: http://gameprogrammingpatterns.com/component.html which describes how a game object should be constructed out of components. It also encourages the decoupling of ...
0
votes
0answers
26 views

Fluid body physics for enemy engulfment

The entities in my game are soft-body, amorphous blobs. I'd like to create an animation where enemies are engulfed by the player's blob. See this video for the type of motion I want: ...
0
votes
1answer
17 views

XNA tiling a sprite with a camera.viewmatrix in the Draw method

I'm looking for help fixing a small problem that I have with my XNA game project. I currently have: spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, ...
1
vote
1answer
29 views

Animation-based Collision Boxes

Background I'm currently working on a top-down 2D game, roughly similar to something like Zelda for the SNES. Certain game entities such as the player or a typical enemy will consist of multiple ...
0
votes
0answers
13 views

is learning both java and objective-c for app development better or learning c++ for mobile multi-platform app? [on hold]

I want to create a games like angry bird, temple run, and write some apps like reddit. What should I do? 1) Learn java and objective-C for both mobile platform? 2) Learn C++ and various other skills ...
1
vote
1answer
44 views

Night cycle on a globe

I am working on a tile based game on a globe. I am trying to implement a simple day night cycle on my hex globe something similar to the image below Here is the picture of my globe inside Unity ...
1
vote
0answers
23 views

Texture R8_FLOAT format?

I'm working on SAO (http://graphics.cs.williams.edu/papers/SAOHPG12/) and I want to store my ambient obscurance term (a value between 0.0 and 1.0) in a texture. When I did shadowmapping, I created ...
1
vote
3answers
80 views

Mathematics behind Phong shading and additive blending

I'm confused about the mathematics behind additive blending used in conjunction with Phong shading. Intuitively, it seems like you would need to use a floating-point framebuffer and some sort of ...
14
votes
7answers
3k views

Why is it bad to hard-code content?

I know most games store dialogue text in files, but I've also seen a few text-based games actually program the content (map, choices, possible player commands, story text) into the game code. I can ...
0
votes
0answers
35 views

How can I do a weighted cascade down a path in a 3D environment?

I am trying to perform a weighted cascade down a path in a 3D environment. Now, what I am trying to do is have one object(a cube) in the environment scan from its coords 1 in every direction for ...
0
votes
0answers
14 views

Making a 2d sidescroller RPG with GameMaker Studio [on hold]

Is is possible to make a 2d sidescroller RPG with GameMaker Studio?
0
votes
0answers
23 views

Unity 2D detect if swipe goes through an object

I am developing a game in unity with flying arrows that the user tries to deflect by swiping through them (changing their direction). I can get the arrows to move with the swipes, but they move no ...
1
vote
0answers
25 views

How to custom file formats work, encryption, packing etc [duplicate]

So say I take an example from Telltale games, they pack all their file assets into ttarch files, now I guess this is a custom file format that allows many file assets such as dds, jpg, bik, wav, 3ds ...
0
votes
0answers
6 views

Overriding Help [migrated]

I can't get method overriding to work. Right now I have a class called Sprite, and two subclasses; Let's call them Goomba and Koopa. Instances of Koopas and Goombas are stored in an std::list of ...
0
votes
2answers
44 views

Strange quaternion rotation

I was implementing some quaternion rotations in too my infant 3d game engine and the rotations were really strange? Excuses my cluelessness. Anyways this is what I have: static XMVECTOR ...
0
votes
0answers
54 views

2D Physics/Game Engine Recommendations? [on hold]

I'm looking for a 2D physics engine recommendation. C++ would be preferred, but is not required. I'm looking for something that can handle solar-system level speeds/distances/sizes, while still being ...
0
votes
1answer
36 views

How to detect collision between two directed object?

I'm currently writing a game which is like Battle City game. But right now I'm facing a trouble involved to checking collision between two objects. This is the code that I wrote: ...
5
votes
1answer
467 views

What's the 'proper' way to get unit vectors?

My apologies if I've misunderstood the term 'unit vector' or misapplied it in concept, but I think that is the term for an object's heading when expressed as [x, y] when x and y are a value between -1 ...
1
vote
1answer
37 views

Prefab disables its script when a clone is instantiated

A clone of a cube is spawned when it is destroyed, however the clones disable the script in the editor (example: http://gfycat.com/SnarlingScornfulEgg). Used the exact same script for a different kind ...
1
vote
1answer
77 views

What are the most common ways of closing an open world? [on hold]

In many open world games, there are several ways to limit them. From original ones such as Desynchronisation(Assasins' Creed) to invisible walls. What are the most common ways to close open worlds?
27
votes
7answers
3k views

How can I avoid having many singletons in my game architecture?

I use cocos2d-x game engine for creating games. The engine already uses many singletons. If someone used it, then they should be familiar with some of them: Director SimpleAudioEngine ...
0
votes
0answers
15 views

Need some guidance implementing event based game loop in JavaFX card game

i tried to make the title as much informative as possible. Anyhow, i'll try to be brief - I'm fairly new to java programming and programming altogether, after learning the basics and some advanced ...
0
votes
0answers
27 views

Securing HTTP requests to online game server

I'm pretty new at making online games. Right now I'm trying to make an iPhone game. Each player has a profile in my server. I want to avoid username/password for authentication. Currently, as it ...
2
votes
1answer
25 views

How do I pause a single bone with spine?

I'm using spine along with SFML. I have a character that is always animated. When he shots, I set an animation that affects only his arm. The arm goes up, but I need to stop this animation in the ...
0
votes
1answer
40 views

Unity3d wheelcollider falling through terrain

I have created simple project with 3D car and terrain. I have added 4 Wheel Colliders on model wheels. But when I run project wheels falling through terrain. Before run: After run: I am sure that ...
2
votes
0answers
29 views

Fighting aliasing on specular highlights

MSAA does a good job removing aliases on mesh edges, but it does not help with aliased specular highlights: Notice the aliased specular highlights on the doors and windows. I believe the reason ...
0
votes
0answers
36 views

Are there any SDKs/Tools for modding Civilization V or IV? [on hold]

I want to know if there are any external interfaces within Civilization 5... Let's say I am starting Civ5 and load a Savegame, is there an interface where I can tap the data which is currently used ...
-5
votes
0answers
28 views

help me about c# [on hold]

using UnityEngine; using System.Collections; public class MYCLASSNAME : MonoBehaviour { public float speed= 45.0f; private float offset= 0.5f; // Assues a cube of 1 unit on a side. ...
0
votes
1answer
25 views

Slick2d - state change problem

In my slick-based game, I have 4 states - introState, gameState, pauseState and menuState. From the gameState, I want player to go to either menuState or pauseState. To do that, I did this in ...
1
vote
0answers
32 views

Smooth digging physics with Phaser

I'm trying to make a Dig Dug style game where you will be digging into a material. This is going to be a HTML5 game and I have decided to use the Phaser framework. One way to do the digging mechanic ...
1
vote
2answers
55 views

Position GUI Text in 2D game

I am working on a 2D game, and my camera is a orthographic with a size of 320. I want to display some text, but not with OnGUI(). Rather, with a GUI Text game object. I couldn't help but notice that ...
0
votes
1answer
27 views

How can I create a character design that maintains a fixed rotation body, while allowing the body's “arm” to rotate 180 degrees?

I am attempting to create a 2d shooter in Farseer Physics on the Xbox360. I have a player body which has a fixed rotation, as I do not want the body to rotate at all during gameplay. I am now looking ...
-1
votes
0answers
38 views

How can I make my .fbx models load faster? [on hold]

This is a post I am revising although I have previously asked it. My 3D fighting game's load times are already pretty high, even though it's early in development. The 2 models are... The Character - ...
0
votes
0answers
37 views

What is the optimal primitive count for a draw call in Direct3D 9

How many primitives should be rendered at one time in Direct3D 9? I read in a blog(that I cannot now find) that says optimally 1000 vertices should be rendered per draw call...This number doesn't make ...
2
votes
0answers
57 views

HLSL defines vs static const

So far I've been declaring all my constant variables as static const in my hlsl shader code, yet virtually every single shader piece I've come across uses #defines instead. I know the reasons I would ...
-1
votes
0answers
27 views

Some Good Game Hosting Sites [on hold]

I was wandering while planning a game for webplayer that which company sites would provide me a free hosting of my unity game ( .unity3d file) .
-1
votes
0answers
32 views

Did you know you can bundle apps now? [on hold]

I found this article about how you can now bundle IOS apps, does anybody know how? let me know what you can find out, really interested in doing this with the next couple apps i make
2
votes
1answer
37 views

How do I change the material of an object with Script in Unity?

I was making a game with Unity and I want to change an object's material using JavaScript when the player collects 5 collectables that I made. The collectables get stored in an int variable called ...
0
votes
0answers
46 views

How long held the copyright in the game development? [on hold]

There is a game, which was created 15 years ago. I would like to rewrite it, but I don't know, how long the copyright in the game development held. The developer group was acquired by a company, which ...

15 30 50 per page