All Questions
0
votes
0answers
4 views
Convert a direction vector (normalized) to rotation?
Say i have something like this:
pos += glm::normalize(target - pos) //PLEASE NOTE: pos is a glm::vec3 and so is target
This makes "pos" translate towards "target", but what if i want to make my ...
-1
votes
0answers
7 views
Basic Game Development
Hello thank you for reading my question I was wondering as a wannabe game developer which game development software is best to use for things like turn based and well as possible action games (if ...
0
votes
0answers
5 views
Install OZCollide [on hold]
I want to use OZCollide (http://www.tsarevitch.org/ozcollide) but I am new to libraries and don't have any clue how to Use/Install/Implement it. In the folder I've got, are the headers (**.h), the ...
0
votes
0answers
11 views
Can't delete face Maya
So here is my model (bed sheets). I have an extra face right below it and I cannot delete it. I made it bigger for you guys but at first it was really small. I have no idea how that geometry got ...
0
votes
0answers
8 views
opengl storing multiple indices into indices buffer
After parsing collada files I found out that we have to load two(or more) indices each pointing to say a vertex or normal etc. Is there a way to load (and use)indices to indices buffer(with pointers) ...
0
votes
0answers
6 views
Blender: Exporting a large 3D map into a 2D image [migrated]
I have designed a 3D Map in Blender. I wish to export a 2D image where I can place it inside an HTML5 canvas. The user would then be able to pan across the canvas to see the whole map.
My question ...
0
votes
1answer
7 views
What is an equivalent of Swift's UIScreen.mainScreen().bounds in Unity 2d?
Basically, I am from a Swift SpriteKit background where UIScreen.mainScreen().bounds is a CGRect which represents the screen and can be manipulated in various ways like getting the middle of the ...
0
votes
1answer
17 views
How to optimize my random terrain generation and usage?
I'm new to Unity. I've created an algorithm to procedurally generate a circle-shaped tunnel made of primitive cubes GameObjects. The problem is that the game is very laggy and I can understand why: ...
0
votes
0answers
5 views
3D Physics in Marmalade SDK
I am trying to make an 3d game in Marmalade. I am completely new to Marmalade.
How to add 3d physics, gravity, dynamic object, sensors, colliders in Marmalade.
I was going through the API and did ...
0
votes
0answers
18 views
How to properly use a 3D texture in OpenGL 4?
I working on a student project which consists to make clouds volumetric rendering and implement the feature in an existing engine based on OpenGL 4 and written in C++.
To do so, I have set a compute ...
0
votes
0answers
11 views
Boost vs cereal for Serialization
I am preparing to make a simple 3D game with OpenGL and one thing that came up pretty quickly was storing the required data. If I recall correctly, Java has a class called "ObjectWriter" which ...
1
vote
0answers
14 views
Unity Browser inside UI Panel
What is the best option if I want to show a remote webpage inside a UI Panel in Unity ?
I want to target android and iOs platform.
I had uniWebView in mind but that thing is more like an overlay I ...
-2
votes
1answer
27 views
Is javascript good for grapgic programming? [on hold]
I also saw three.js.
But my graphic card does not support webgl so what can i do?
three js can also render with canvas
But webgl exaples were better than canvas.
I have learned javascript and jquery ...
0
votes
0answers
24 views
Storage and Lookup of Voxel Chunks
How can one store chunks in such a way that they can be looked up using their XYZ location without wasting memory?
The problem with a HashMap<Vector3i, Chunk> is that you have to keep creating ...
0
votes
0answers
22 views
Unable to load two enemies with same pic in sdl2
I have loaded two enemies(with the same pic) into my game. However, when I draw them onto the screen it only draws and animates one enemy, instead of two. I can't seem to figure this out.
Here is my ...
0
votes
1answer
14 views
Unity stats framerate vs Time.deltaTime
Googling around, a way for calculating framerate and displaying it as text ingame is using 1/Time.deltaTime. However, comparing this against unity stats FPS shows 2 different FPS. Which of it is ...
0
votes
0answers
10 views
In Processing, why does this call to image() cause an error?
Here is my code:
Hero robinHood;
Arrow arrow1;
PImage bg;
PImage left, right, still;
float positionX = 383;
float positionY = 455;
void setup() {
size(800,600);
bg = loadImage("background1.png");
...
0
votes
1answer
17 views
Editing attached component property in Unity (C#)
This might be more of a general C#/programming query, but since it's game dev related, I'm putting it here.
I am trying to randomise a property in a custom component (C# script) across several Unity ...
3
votes
0answers
21 views
Why is quad rendered at the center (0,0) instead of top left when using orthographic projection
I have been trying to render a quad(containg a texture) using orthographic camera so that the quad can be rendered using the screen coordinates directly.
I started of by rendering just a triangle ...
0
votes
0answers
19 views
Tilemap not rendering properly
I'm making a single-screen scrolling platformer (OpenGL/SDL) and I've made a tilemap out of a 2D array, pre-sized with variables of the LEVEL_HEIGHT and LEVEL_WIDTH. Each element in this 2D array ...
3
votes
0answers
23 views
(Monogame) Camera does not travel the way it is rotated
I've implemented camera control with mouse and keyboard. My problem is that camera goes crazy when I'm using mouse and camera does not travel the way it is rotated. Could you explain me why and how to ...
0
votes
0answers
21 views
(Monogame) Camera does not travel the way it is rotated [duplicate]
I've implemented camera control with mouse and keyboard. My problem is that camera goes crazy when I'm using mouse and camera does not travel the way it is rotated. Could you explain me why and how to ...
-2
votes
0answers
24 views
Is it possible to port a game made in C++ to android and IOS without re-writing any code? [on hold]
I am thinking of developing a game from scratch as a learning experiece. I will be developing a 3d graphics & physics game engine for it as well. Everything will be done in C++. I was wondering if ...
1
vote
1answer
16 views
Box2D fixed timestep updating is twitchy on constant FPS
I'm messing around with libgdx and box2d and I'm trying to implement sidescroller movement with fixed timestep logic according to the famous Fix Your Timestep! tutorial/guide. However, logic updating ...
0
votes
1answer
35 views
What is the exact difference between the game and game engine? [duplicate]
I thought game engine are something like Unity or Unreal. They have a editor with scene editor, some Physics library, some scripting editor and tools to improve the workflow of developer. Furthermore, ...
0
votes
0answers
10 views
Failed to pass uniform in Metal shader modifier
I'm trying to write a simple shader able to pass the color to be used for drawing in the fragment shader, through a uniform. I load the shader modifier and pass the uniform:
let fragmentShaderPath ...
1
vote
1answer
76 views
How can I adapt A* pathfinding to work with platformers?
I have an A* implementation that works in "top down" situations where gravity is not taken into account for pathfinding. But, I am looking to modify to work in a 2d platformer situation. I am using ...
3
votes
1answer
30 views
On a 2D generated terrain what is the easiest way to pick tiles for the shoreline?
If I have a two-dimensional array with ones and zeros for water and land respectively how do I choose what shoreline tile to use according to the water and land tiles surrounding it? The shoreline can ...
-1
votes
0answers
27 views
Starting as a game designer - what to learn first? [on hold]
Last night I watched video about game design of World of Warcraft and I thought that it would be the most beautiful thing in the world to design worlds, character, environment, stories, mission and ...
1
vote
0answers
22 views
Exact collision detection for high-detail deformable triangular meshes
What robust methods or approaches exist for exact collision detection involving high-detail, deformable geometry?
The kind of mesh I am describing is a surface that is specified as a triangulated ...
0
votes
1answer
23 views
How To Control the Scroll View Via Script [on hold]
Control SCROLL VIEW(SCROLL RECT) via SCRIPT
actually i am using panels and add the scroll rect and mask script into panels and i add the images into panels ...i got scroll view overall action i want ...
0
votes
1answer
25 views
Box2DLights in libGDX - Bad quality of the light gradient on Android
I am facing a problem while porting one of my libGDX project from desktop to Android : My game uses Box2DLights. While the light effect look very fancy on the desktop version of the game, it looks ...
0
votes
0answers
16 views
Rendering water with Hardware Instancing xna/MonoGame
I was wondering if rendering in XNA/MonoGame will be better using Hardware Instancing.
For example, I have my editor and when I click anywhere on my map, i'll add a plane with a water texture.
If I ...
0
votes
0answers
13 views
Access Unity Webgl output from browser and vice versa
I receive a package of Unity webgl and put that into a course in Wordpress. The index.html produced form Unity is accessed inside an iframe there. This must be able to count user click when accessing ...
0
votes
0answers
13 views
Detecting collision between 2 convex meshes in 3D
For the past couple of weeks I've been trying to implement physics in my engine, and I am currently stuck on the collision detection phase.
In short, I can perform a triangle-triangle intersection ...
0
votes
0answers
19 views
Free Libgdx Skins [on hold]
I'm looking for Libgdx skins that I can use beyond the default one. I've tried googling around but have come up with almost nothing. Does anyone know of a collection(s) of skins that can be used in ...
0
votes
1answer
34 views
Strange shadow behavior when light direction is parallel to a plane
i have a strange problem with shadow acne. It occurs when the light direction is parallel to a plane. Here is my code and a few images of the problem:
//this calculates the shadow matrix
...
0
votes
1answer
22 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 ...
0
votes
0answers
7 views
If I attach a RunAnimation to my Player and move it, the Camera starts to freak
If I make a RunAnimation for my Player in 2D, then there is one Spot it works and I can move perfectly but if I move my Player to a different position,my Player stucks in Midair and my Camera starts ...
0
votes
1answer
29 views
In Game Maker Studio, why does the image rotation have to be performed every step?
I'm a software developer who's trying to get into game development casually on the side. I picked up Game Maker Studio a while ago on a Steam Sale, and I'm finally getting into using it, especially ...
0
votes
1answer
32 views
Windows 10 User has only DX 10.1 API
A user of ours has an issue whereby they cannot run our application, which requires DX11 API support and hardware support for DX10.1. The strange this about this issue is that the user is running ...
0
votes
1answer
14 views
Blender game engine module file location
Where can I find the "bge" module file ? It imports well from a python script but I want to know where from.
3
votes
1answer
53 views
Recognize hand drawn shape
I want to ask player to replicate a simple shape (triangle, square, star, anything that can be done in single stroke) with mouse or on a touchscreen.
Orientation matters, size does not.
Example:
...
1
vote
0answers
21 views
LibGDX How do I create a Shop?
My game is fully working but now I want to make a shop so that the player can buy boosts or other useful stuff for the money the player has collected.
What is the best way of doing this kind of ...
1
vote
0answers
8 views
Unity: Build looks different then gameview: runtime reflection probes not working correctly
Im having a really hard time figuring out how to configure my reflection probes to update in runtime once I build. The game port view looks totally different than the build view. Ive tried turning off ...
0
votes
0answers
6 views
How image.ImageGrid() works? How to fix it?
I understood what this method do (it cuts one spritesheet into a list of images), but I don't understood how it cuts. What height and weight for an image, it takes? I tried with few spritesheets png, ...
0
votes
0answers
11 views
What compression algorithm is used for Terraria .plr player files? [on hold]
Terraria stores player information and inventory in .plr files. I think they were once stored as plaintext, but now (v1.3) it looks like they are compressed. How can I figure out what compression ...
0
votes
2answers
36 views
Rotating hitboxes in pygame?
I'm using pygame.rect.colliderect() to check hitbox collision between sprites in my game, but now that i'm rotating the sprites, I'm realizing I can't do this because there's no way to rotate a pygame ...
0
votes
0answers
29 views
converting Swift SpriteKit code to C# Script in Unity [on hold]
I am trying to convert to following code from Swift SpriteKit to a C# Script in Unity. Coming from a SpriteKit point of view, the coordinate system in Unity is quite confusing. Basically, all I've ...
0
votes
0answers
6 views
Is there a way to make spritesheet from file with many sprites? [duplicate]
If I have a spritesheet that already has all the sprites laid out, is there a way to automatically break up those sprites and make an atlas out of them? I tried loading the image into TexturePacker ...