All Questions

8,324 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
695 views

Text alignment in OpenGL with FreeType2

I'm trying to implement font rendering and have got into some trouble with glyph metrics. Here's the code where I get the metrics: ...
5
votes
1answer
240 views

How do I detect image clicks in Dark GDK?

I am trying to determine if an image has been clicked, using the Dark GDK game engine. I've found no methods in the engine that do this. I would rather not brute force this with a large nested if/...
5
votes
0answers
713 views

OpenGL transparent framebuffer texture

I'm trying to implement atmospheric glow like this. It was a huge pain to get it done, since I'm new to FBO and OpenGL, but I managed to do something similar to what the OP wanted. I followed his ...
5
votes
0answers
2k views

How do I mix 3D skeletal animations?

I'm trying to create a 3D-model skeletal animation system for C++/Open GL. I would like to be able to mix animations by allowing animations to only affect specific bones. My game has ride-able ...
5
votes
1answer
2k views

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone

libGDX using Stage and Actor produces different camera angles on desktop and Android Phone. Here are pictures demonstrating the problem: http://brandonyuh.minus.com/mFpdTSgN17VUq On the desktop ...
5
votes
1answer
894 views

Wheel Joint Implementation in AndEngine

I am currently developing car game in AndEngine. In which I was using revolute joint for car wheel and chassis attachment. But my friend suggest me that use wheel joint for that purpose for better ...
5
votes
1answer
559 views

UIView with IrrlichtScene

i have a UIViewController in a Storyboard and want to draw a IrrlichtScene in this View Controller. My Code: WWSViewController.h ...
5
votes
0answers
167 views

How can I create a set of collision points for an arbitrary mesh?

In my project I am working on automatically deforming an arbitrary mesh with respect to another arbitrary mesh, within the context of user generated content, similar to this deformer being developed ...
5
votes
1answer
3k views

How to make animated buttons in a menu with Cocos2d?

How do I make animated menus with cocos2d, I just want to animate the buttons and not the entire scene. Effects I look for is flipping buttons (like the back of the button is the next menu), buttons ...
5
votes
1answer
563 views

How do I model / diagram turn-based combat?

I'm developing a turn-based combat system for an RPG, and I'd like to know if there is any kind of best practice around diagrammatically modelling something like this. The ideal modelling paradigm ...
5
votes
1answer
1k views

Making a pixel-perfect viewport in LibGDX

My game that uses LibGDX as the graphics library, should be playable with every display. Here's the problem: It have to be pixel-perfect. That means, the scale factor must be an integer value, so that ...
5
votes
1answer
2k views

Water wave simulation

I'm having a strange behavior simulating water waves. It works perfectly with directional waves, but point waves don't work like expected. If i do not normalize the directional vector(WoldPosition - ...
5
votes
1answer
1k views

Creating a Roguelike game in C

I'm trying to create a simple rogue-like game in ncurses in a C program. The idea here is that, I'd parse a file like this: ...
5
votes
1answer
188 views

Fixing the size?

My app isn't compatible with all screen sizes. When testing on a small size, my textview overlaps with my button. So, as suggested on the Android Documentation, and many stack overflow pages, I ...
5
votes
1answer
3k views

Input.GetAxis("Horizontal") not updating

I'm having trouble with Unity's basic character controlling. After i implemented the crouching in the code below the Input.GetAxis("Horizontal") does not update (while the left control is pressed (...
5
votes
1answer
701 views

Error drawing two VAO, each one using different shader programs (vertex + fragment shader) in OpenGL Core 4.3 / GLSL 430

I am trying to draw over a GL_TRIANGLE_FAN one texture to render video frames, using shaderProgram1, and render above it some points (GL_POINTS) using shaderProgram2. By this way: (OpenGL Core 4.3) ...
4
votes
0answers
63 views

How inefficient is my ray-box-intersection algorithm?

One of the most critical parts of my raytracer is the calculation of a collision between ray-box which is done following way: ...
4
votes
0answers
156 views

Flowfield pathfinding behind obstacles on symmetrical grid

I use Fast iterative method to create my flow field. However when an obstacle is on the same axis as the destination, the vectors behind the obstacle point directly to the destination and ignore the ...
4
votes
0answers
101 views

Navigating an AI that shouldn't take the shortest path but the scenic route instead (e.g. fish)

I'm working on a sidescrolling game with an underwater "fish-like" AI that has some goals (interacting at various locations) and things to avoid (player). Started of with a Navmesh and ...
4
votes
0answers
72 views

Reuse assets across different rendering pipelines

What is the best way to handle same project with two rendering pipelines that share 99% of the Assets? We have one really big project for which we've decided to try and use both the URP and HDRP ...
4
votes
0answers
2k views

What is the most appropriate way to achieve synchronous Addressable asset loading?

I am transitioning my project from Resources to Addressables. Some parts of my game just aren't worth doing asynchronously, and ...
4
votes
0answers
77 views

How to map interaction events to game actions

When I port between Desktop games and Mobile games, I find I always make a kludge out of the interaction events. I typically end up hard-coding event handling for mobile, and event handling for the ...
4
votes
0answers
621 views

What's the "right way" to open a websocket connection inside WebGL?

The official Unity documentation says that, to run websockets in the WebGL player, you should use this plugin on the Asset Store. Unfortunately, following that link leads to a notice that this asset ...
4
votes
0answers
956 views

Game built uses a lot of GPU processing, in the editor uses very little

I am building my project in Unity 2018.2.21f1 for Windows in architecture x86_64, with: Copy PDB files | false Create Visual Studio Solution | false Develoment Build | false Autoconnector Profile | ...
4
votes
0answers
109 views

How does raytracing triangle meshes with RTX work internally?

Raytracing a huge bunch of triangles the naive way (ie. testing each ray against every single triangle) would be humongously slow, which is why raytracers use optimizations to greatly reduce the ...
4
votes
0answers
256 views

Unity3d: calling a web service in unity editor works, but not in standalone. Why?

I have this line of code: SDE3D _webService = new SDE3D(); int result = _webService.UserLogin(txtLoginUsername.text, hashString); My ...
4
votes
0answers
199 views

Phaser: InvalidStateError

I am using the Phaser framework for game development, but while working on it I face a bug which is annoying, I have the following message: InvalidStateError: An attempt was made to use an object ...
4
votes
0answers
148 views

Is it possible to capture screenshots in headless (no graphics) mode in unity?

I am trying to capture screenshots while running unity simulation in headless mode (no graphics), if anybody tried to do the same and it worked, please share how could you make it work.
4
votes
0answers
89 views

Is the C or the Android code a problem?

Starting to write a game, it'll have a C server, and at the very least an Android client. However I have run into an issue where I can't seem to get them to connect. I have thrown debug logging into ...
4
votes
0answers
219 views

Moving directional light cause huge fps drop: why?

I've implemented a simple script to simulate Sun Rotation (day/night cycle). In my "Update" i Rotate main Directional Light (the sun). What i've noticed is that my FPS dropped from 60 to 20-25 fps. ...
4
votes
1answer
814 views

HTML5 Canvas - Drawing with Floats

I'm trying to implement a game where you have car moving along a line in HTML5 Canvas. Using a little bit of trigonometrie I managed to get the right x and y coordinates to add to the coordinates of ...
4
votes
1answer
345 views

How can I rotate the game stage (Unity 2D)?

I have a pseudo-game which I'm developing in 9:16, to be displayed in vertical screens. The client now needs another version in 16:9, rotated in 90º. I tried creating a empty object, puting all my ...
4
votes
2answers
487 views

Weird shader behavior on different devices

I'm trying to combine an ordinary shader with a Single Distance Field shader (for fonts and scalable icons) into one shader program. The idea is simple - if uv.x is less than 1.0, it is drawn as ...
4
votes
0answers
297 views

Networking and physics

Context I have been implementing my own networking for a third person multiplayer game, but controls and physics will be ala old school FPSs. I'm using Unity's transport layer, which allows me to ...
4
votes
1answer
125 views

Encapsulating parameterised prefabs

I'm currently using the following general pattern for most of my configurable components (i.e. MonoBehaviours): ...
4
votes
0answers
234 views

How to implement a pannini projection in opengl?

I have read about the pannini projection, which involves (I think) projecting a scene onto a cyclinder instead of a rectangle. How can I implement this projection in a vertex shader? Blinky is using ...
4
votes
0answers
412 views

How to animate an arc from the middle in both directions

I have been able to make an arc that animates from one end to another using the following coroutine: ...
4
votes
0answers
787 views

Why do I get incorrect bounding boxes when I add a cloth component in Unity 2017.3?

I have a character with a cloth. The cloth is separated into its own mesh, but both the cloth and the character are in the same FBX import. The cloth is correctly skinned to the char so it moves with ...
4
votes
0answers
581 views

How to handle increased/decreased latency in client side entity interpolation?

Edit After reading some more questions on this board, I've come up with this potential scheme. Feel free to give any suggestions / criticisms on the scheme I show in the box below. ...
4
votes
0answers
494 views

Why am I getting errors like these when trying to build my app

I am currently trying to build and publish my app to the universal windows platform halfway through the process of doing so, during the validation process I got stopped with these errors. The 1st one ...
4
votes
0answers
210 views

Determine user mouse selection of 3D Object for multiple viewports

I am currently working on setting up some world objects for my level editor and am running into a bit of a snag. When I get the hit location from the mouse raycast, I would like to determine what part ...
4
votes
0answers
133 views

Writing a leather shader

I'm trying to write a leather material shader. I have a normal map, bump map (grayscaled), specular map, diffuse map, cube maps. I have done the following ...
4
votes
1answer
2k views

Why is my model rotating opposite direction around the Y axis?

I have a simple scenario. I have a simple scene, and in it I'm drawing a grid and a model, with some axis for orientation. I noticed when I rotate the model about it's local Y axis, if I rotate the ...
4
votes
1answer
218 views

Synchronizing actions with animations across network

I'm working on a project which allows players to take actions in time-limited turns. All players are connected to a central server, which is authoritative. That means the server sends info that a turn ...
4
votes
2answers
4k views

How do I resolve the error "Trying to send command for object without authority."?

I don't know what I did wrong I tried couple different ways from not using commands to using SpawnWithClientAuthority. But It either gives build and compile errors ...
4
votes
0answers
48 views

Send mesh to a video card with the help of ngui instead of DragonBones in Unity

I am working at the project. It is pretty huge. And there is ngui at its core, so I can not go away from it (from ngui). Now I am assigned to incorporate the DragonBones into the project. There are ...
4
votes
0answers
174 views

Understanding unknown mesh data structure

I have a large number of old mesh files in a custom, undocumented binary format. I have managed to parse almost everything but am left with one group of structures, described below, that I don't ...
4
votes
0answers
126 views

Critical input from server arrives late... it must not!

To preface, my understanding of networking is mostly from Source Multiplayer Networking and 1000 Archers on a 28.8. For various reasons I have decided to go with a client-server model instead of peer-...
4
votes
0answers
456 views

With this MMOG architecture, how can I avoid losing games when the server goes down?

I am fairly new to game designing and am trying to design game engine architecture for MMOG poker game. My major problem is scalability. Old Legacy code written in python runs everything on single ...
4
votes
0answers
410 views

Moving all the particles in effect LIBGDX

I have a few particle effects that I would like to be in a circle shape in libgdx i.e. not a cone shape. I have done this by setting the direction of the particle effect from 0 to 360. The problem is ...

15 30 50 per page