0
votes
0answers
4 views

How to deform 2D tileable texture in XNA/MonoGame

I'm looking for a way to deform tillable texture in a 2D game I'm building using MonoGame but I'm not sure how this effect is called and searching the internet for "deforming textures" gives me mostly ...
0
votes
1answer
16 views

HDR and Alpha Blending

I've been reading a lot about HDR techniques and came across Alpha Blending compatibility. Searched even more and found this snippet from the Ogre Forums: With source alpha blending, it sometimes ...
0
votes
1answer
27 views

Where to put graphic representation of game entity?

I am working on simple 3D version of Snake game. I created classes like snake and grid so far. My concern is, putting all render logic (draws cubes - to show snake, and lines to show the grid) in ...
0
votes
0answers
20 views

Tiling 2D textures in random order

I am wondering what the best way to make a random set of 2D textures. Currently I have tried the follow code but I am aware that when this comes to collisions that would be an issue. Therefore I would ...
0
votes
0answers
19 views

Modifying a game such as Space fortress,

What features can be modified in a game such as Space fortress? Like adding a start button etc Space fortress http://images.sciencedaily.com/2011/01/110113213058-large.jpg ...
0
votes
0answers
23 views

How should i start building game development using c++ android [on hold]

I have been working on unity 3d game engine for quite a long time, somehow i feel that unity is not optimize for android, most of the game develop in unity doesnot support low end devices. So i ...
0
votes
0answers
15 views

How to render many regions from the same texture using UV mapping?

I tried to apply some things that look like a "texture atlas". I would like to load 1 big texture which includes many small textures, my goal is to render each texture separately. I tried to use UV ...
1
vote
0answers
33 views

stencil shadows - doom 3 engine - precision errors - shadow cracks - why?

I am testing the limits of the Doom 3 engine - in regards to maximum map size. I noticed some stencil shadow precision errors that become more pronounced when objects get further and further away ...
1
vote
1answer
34 views

Designing a weather system for biomes in a roguelike

I'm making a roguelike game similar to dwarf fortress. So far, I have an average temperature map and average yearly precipitation map generated with simplex noise. Now, I'm trying to implement a ...
2
votes
2answers
39 views

Detecting mouse clicks in Unity UI Beta

I want my game script to detect mouse clicks everywhere on my screen, except one corner where I have a pair of buttons to control the sound and will be handled separately. To help identify this ...
0
votes
1answer
9 views

Using SVN with Libgdx

I decided to give LibGDX a try and am planning to use SVN for my code repository. I created my LibGDX project via the Gradle build as outlined in the book "Learning LibGDX Game Development". I'm not ...
0
votes
1answer
18 views

Point to coordinate function

I am working on a game in which I need an enemy ship to point towards the player. Here is the equation I came up with: angle = sin-1(abs(y1 - y2)/√(x1 - x2)2-(y1 - y2)2) This essentially takes ...
1
vote
3answers
31 views

Handle many objects to draw in XNA

in my 2D engine - using XNA 4.0 - I´ve an issue with handling many objects. The way my engine works is that I only draw visible sprites (base objects) and ignore those sprites out of the current ...
0
votes
0answers
13 views

(Unity3D)[JavaScript] BCE0020: An instance of type 'UnityEngine.Component' is required to access non static member 'transform' [on hold]

So i get this error: BCE0020: An instance of type 'UnityEngine.Component' is required to access non static member 'transform'. I'm tired and i don't know what to do. The script is: var find : ...
-3
votes
0answers
45 views

Can someone crack my in-app products? [on hold]

I want to release a game in the Apple App Store and I want to know if it's possible that someone can crack the game and it's in-app products hours/days after the release. I know that it's not ...
0
votes
0answers
18 views

solution for implementing a movie game

Currently I'm developing an adventure movie game using flash Actionscript 3. what I need is a cross platform solution capable of playing video files (mp4 h264 fullHD now, could be any format). The key ...
2
votes
1answer
23 views

Sending POST data with WWW in Unity C#

I would like to use Unity's WWW class to send a an HTTP request with POST data. So in my server, my PHP script can do something like $number = $_POST["NUMBER"]; According to ...
0
votes
0answers
13 views

FPS drop after moved from Textures to TextureAtlas in LibGDX

I've started using LibGDX some time ago and I was making a test project to get used to this library. I've created some images and added them to the assets folder and loaded each image as a Texture ...
-2
votes
0answers
12 views

(Unity3D) Make Object child for camera [on hold]

I made this script and i get 3 errors. find = GameObject.FindWithTag("Ray"); function OnCollisionEnter(col : Collision) { if (col.collider.tag == "Ray" ) { find.transform.parent = ...
0
votes
2answers
52 views

Explaining vector math for a pendulum camera

I came across a code that I guess is doing a pendulum camera, that's the class name. I would like to know the math behind that. I would like also to know how to decipher those stuff in game math, ...
0
votes
0answers
19 views

Precise Real World Heightmap [on hold]

I tried various Google Earth Plugins, i checked out all available Nasa Images, but it seems like a high quality (possibly greyscale) heightmap is nowhere to be found. Im looking for a precision of 5 ...
0
votes
1answer
33 views

Trigger an event when a game object touches a non-solid game object

For a 2d game, I are currently making an AI and I want it to jump when it touches a invisible cube, which isn't solid, how do I do this?
0
votes
0answers
28 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
31 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
12 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
47 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
22 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 ...
14
votes
3answers
2k 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
15 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
57 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
92 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
71 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
59 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
30 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
25 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
35 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
17 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
48 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
1answer
33 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
88 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 ...
19
votes
8answers
5k 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
36 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
18 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
28 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
27 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
57 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
56 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
2answers
58 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: ...

15 30 50 per page