0
votes
0answers
4 views

What is the “TangentsW” attribute inside the FBX file format for?

sometimes it is -1, sometimes is +1. Do I need it for the rendering of the normal maps?
0
votes
1answer
93 views

Why are faces being drawn like this with my custom shader?

I've been writing a custom surface shader which allows for vertex colors (with alphas) to be set programmatically. From test runs of the shader itself, it works perfectly fine, and I am able to set ...
0
votes
1answer
19 views

Irrlicht engine game wont compile on linux. Undefined refrences(opengl and xfree)

I'm trying to port over my game I'm developing to Linux. But when i compile i get a lot of undefined references to mostly functions that look like they belong to OpenGL. Most are titled gl... But one ...
1
vote
2answers
25 views

How to slow down this rotation

My goal here is simple. I am making a top down shooter kind of game, and I want the player to simply rotate in one axis, towards where the mouse is on the screen. I got it working, but it rotates so ...
1
vote
0answers
7 views

Unity Facebook “An access token is required to request this resource.”

I have installed Facebook SDK 7.6 for Unity 5.3. It is fine with login and logout stuff things but I am having a problem when it comes to use FB.API. I want to be able to fetch players' profile ...
0
votes
0answers
13 views

CommandInvokationFailure error when building APK?

I'm getting the following error when I build my APK: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\Users\Me\AppData\Local\Android\sdk\build-tools\24.0....
1
vote
1answer
73 views

Unity syntax highlighting with VSCode

I'm using VSCode, not VisualStudio for Unity scripting. VSCode has syntax highlighting for C#, which works fine, but all the Unity related stuff like Vector3 doesn't get any highlights. I know, that ...
1
vote
1answer
13 views

Correctly creating/handling events for keypress in MonoGame C#

I'm having trouble finding the best approach to registering an instantaneous user key-press with MonoGame (where the key has been held down and then released), using events in C#. Unlike the click of ...
1
vote
0answers
19 views

Soft body plasticity using Bullet Physics

I made this post on the Bullet forum(link), but the forum is slow so I'm just copying the text from there. Hello, I'm currently working on a game and I want to make certain surfaces of the game ...
-1
votes
0answers
27 views

Should I use one or two database for my MMO? [on hold]

I will start a 3d MMO game development. First I will have more than 100 monsters that they will have HP, Defence, Attack damage, Drop-list etc. Secondly I will have people with position, ...
1
vote
1answer
61 views

What's wrong with my food generating code?

This script is intended to produce amount of (food) objects for the players over the network. What should happen is that when a player eats one food, another food object gets created in another random ...
1
vote
1answer
73 views

Resolution independence (for touch input on different mobile screens)

I have drag mechanic in Unity game and I want to have same experience in all devices. I've done this before in another game engine and now that Unity gives us Dpi with Screen.DPI, it should be much ...
2
votes
2answers
1k views

How do I refer to a native library with Unity 5 on Android?

I have a library called mylibandroid.a. This is given to me by another developer. I also have the iOS version of this lib, and have been able to access it from Unity. It is supposedly built for ...
1
vote
0answers
24 views

Regional Variation with Perlin Noise

I used Game Maker to construct a 3D terrain using Perlin Noise. Since I wanted to create an island, I set the noise function to return a value between 0 and 128. Then I checked each point and ...
1
vote
0answers
21 views

Tire mesh rotates faster than wheelcollider in Unity

I have a car in Unity. Scripts are C#. I have noticed that my tire meshes' rotation is faster than whellcollider rotation. I am using this code for wheel rotation flWheel.localEulerAngles = new ...
0
votes
1answer
28 views

Did they remove Sprite sorting layers from Unity?

I can't figure out how to set it. I thought it was a setting on the sprite renderer but it doesn't seem to be there? Google isn't turning up any results.
-1
votes
1answer
20 views

How to render more than one object in OpenGL or DirectX 11/12

https://www.youtube.com/watch?v=1ogg4ZfdBqU I am new to OpenGL, but I have similar objective as you can see in the video. Can we have one shader for all objects? Is there any sample in OpenGL? Any ...
-1
votes
0answers
17 views

Fellow game devs and artists,How do you animate your games? [on hold]

I can't wrap my hand around how game assets are animated and which programs are mostly used.Can you please tell what approach you guys take and which programs you use? I mainly want to be able to ...
2
votes
1answer
425 views

LibGDX Box2D Lights - Illuminate background

I have a box2D world made of tiles. I use a custom DirectionalLight for light up the scene from above (It shines through transparent blocks [eg.: the water] more deeply). The problem is (as expected), ...
1
vote
1answer
25 views

Check if thread has OpenGL context

I'm looking for a way to check if a thread accessing a namespace function has a OpenGL context attached to it. I have looked around and all I can find is, GLFWwindow* glfwGetCurrentContext(); Which ...
2
votes
1answer
17 views

glUniformMatrix4fv OpenTK equivalent

Very simple and quick question which surprisingly I couldn't find an answer to over the internet: what is the equivalent of glUniformMatrixfv for opentk? I've browsed all the 7 overloads of GL....
0
votes
0answers
5 views

Libgdx Actor and Group touchDown event problem

What happens when a Group containing some child Actors has a touchDown event listener but at the same time, its child Actors also have a touchDown event Listener? For example if a group contains some ...
0
votes
2answers
46 views

How to make the minimap inactive?

I have created a minimap for my top-down Shooter and it is showed on the top-left corner of the window. The problem is that if I press anywhere upon the minimap, its like pressing somewhere on the ...
6
votes
1answer
627 views

Word game - board implementation?

I'm working on a boggle type game for android, using libgdx. The user is presented with a 4x4 grid of letters and must find words by dragging their finger over the letters. Unlike boggle I want used ...
1
vote
0answers
9 views

TurnBasedGame with libGDX + Google Play Services

I'm trying to write a small card game for Android using libgdx framework. My game is turn-based. I wrote to interface with the necessary methods to access the API interface from Google. I faced the ...
1
vote
1answer
56 views

How should my creatures see the world?

This may not be the best forum for this question, but I know a lot of you have dabbled in the field of general AI for games so here it is. I'm doing the cliche population evolution of creatures in a ...
1
vote
2answers
270 views

Render specific part of a texture in OpenGL (2D Sprite Sheet)

I've looked at this answer to find out how to render just a part of a texture: http://stackoverflow.com/questions/6884285/c-opengl-render-part-of-an-image I tried that, but the problem is, this is how ...
0
votes
0answers
16 views

Unity With C# Script : Class Data Type Variable Array Issue Replaced [on hold]

I got a simple question to ask. Just Check below code and the question is in the end at the result of code. I hope you guys can help me.. file inventory.cs using UnityEngine; using System....
1
vote
1answer
34 views

Collision causing FPC to go haywire

I have created a first person controller as an enemy in my game (Zombie). My character is an archer that uses arrows as projectiles that are shot with the following code: if(Input.GetButton("Fire1")) ...
1
vote
0answers
10 views

FBX animation works in 3DSMax but not with Assimp

I have an FBX file that represent a plane with an animation of the gear opening. In my editor 3DSMax, the file and animation seem good, but when I use Open 3D Model , to see what the file will look ...
1
vote
1answer
12 views

Raycast will not hit generated box colliders at initialization

In my map class I have an algorithm that is generating and merging box colliders together. These belong to the layer "Ground". After that, in some places on my map I'm generating some new cubes on-...
0
votes
2answers
30 views

AddComponent with string in unity5

At runtime I want to copy one Gameobject component to another gameobject. In my case I have one camera where multiple scripts are added with values settings. the same components i want to add into my ...
1
vote
4answers
131 views

What would be an efficient way to check if there is a collision in a 2d game?

As part of my final project of Algorithms and Data Structures, we have to develop an open world game in C++. I already got developed most of the game, but I haven't coded the collisions with the ...
2
votes
3answers
1k views

How do I determine the look-at vector of a free-look camera?

I'm trying to create a free-look camera with DirectX 10. I've figured out how to get the directions for forward and back and left to right. However, I don't know how to rotate the look-at vector of ...
1
vote
1answer
35 views

C++ class hierarchy issue

I am taking the step of moving on from Java over to c++, I have been working on my own custom game engine in java for a while so have a good understanding of polymophism, inheritance etc. Now to the ...
3
votes
2answers
36 views

Changing some color of a texture using C# in Unity

It's almost 2 days that I'm looking for a way to do this in Unity using C#, but still no luck. Imagine you have a texture with different colours (this texture can be a rug), and you just want to ...
0
votes
0answers
12 views

Double vision with Google Cardboard in Unity

I am working on a VR app. I have a terrain and some cube placed in the terrain.Even I have added the Reticle to point at the cube and display some message when the user gaze at the cube. I have set ...
2
votes
3answers
1k views

Camera.WorldToScreenPoint not working with perspective

transform.position = Camera.main.WorldToScreenPoint( new Vector3( origin.position.x, origin.position.y, origin.position.z ) ); I have this code on a Unity 4.6 UI object. The origin is some transform ...
1
vote
0answers
7 views

IBL probe BRDF pre-integration artifacts

I'm following 'Moving Frostbite to PBR course notes' to implement IBL in my rendering engine in OpenGL but I'm having some trouble pre-integrating the specular component of the equation. As you'll ...
0
votes
1answer
17 views

How to set size fairly

I had coded a simple click game with Python-kivy to android. You should click dots which are popping out randomly at screen. I set their size 20px to 60px as your level. But it seems when I try on ...
1
vote
1answer
48 views

How do engine sounds for vehicles work?

How does the engine sound for a car (or whatever has an engine) work? When you increase the throttle the engine sound changes but it's never quite the same. When programming such a system what is the ...
0
votes
1answer
44 views

How to move 2D objects based on mouse movement with pointer locking?

I'm using pointer locking for a 2D game (where you perform calculations based on the delta in mouse positions from frame to frame). I'm having some basic math/logic issues with accomplishing what I ...
0
votes
1answer
13 views

How are the positions of skinned mesh vertices with multiple weighted parents stored?

I'm trying to wrap my head around the basics of skinning and skeletal animation. I understand not every skeletal animation implementation works exactly the same, but I'm just trying to understand the ...
0
votes
0answers
8 views

How to create a texture2d from an array of pixels in DirectX11

I currently have a ray-casting camera that holds an array of pixel colors (XMFLOAT4 color) that is 1024x768. I am trying to create a Texture2D in DirectX11 that is also 1024x768 and simply copy over ...
0
votes
1answer
57 views
+50

How to make texture size correctly in THREE.js?

I'm new to THREE.js and I have a frustrating problem. I can't get my grass texture to size "normally" on the terrain. I get it, the terrain is steep, but that doesn't mean the grass should be ...
3
votes
1answer
230 views

Problems with Raycasting Requirements

Im working on a script which kinda works like an Enemy AI. Its kinda like a detection system with requirements that are required to be met. This is a recent question i asked using my code Raycast ...
1
vote
1answer
121 views

Integrating specular, diffuse reflection and refraction

I am implementing an MLT bidirectional path tracer. I have a problem integrating diffuse, specular reflection and refraction. 1) The first problem is diffuse and specular reflection. Diffuse ...
-4
votes
1answer
95 views
+50

Match the circles

I am currently working on a game where a 6x6 grid is drawn on a screen.. and a different color circle is in each of the grid cells, however, adjacent cells might be of same colors, vertically or ...
1
vote
1answer
195 views

How can I avoid a delay with continues touch detection in swift?

I want control a character on my screen with a continuous swipe gesture. As soon as I do a swipe +x or -x my character moves left or right. And as long as I hold my finger it continuous to move to the ...

15 30 50 per page