All Questions

0
votes
1answer
48 views

Line of Sight Check Theta* Algorithm

I am looking at implementing the Theta* algorithm in a 2D NavMesh. I have A* working, and I need to add a line of sight check to turn it into Theta*, this seems relatively easy in a uniform grid but a ...
0
votes
1answer
38 views

How to use 2D textures in OpenGL / WebGL for physics [closed]

Following along the answer here, it was mentioned about textures: They can also store things like velocities. For example, you can use a texture as a "flow field" for animating particles or other ...
-1
votes
0answers
25 views

“Video system not intialized” error

When I run the following code, I get the error "Video system not initialized" What does this mean, and how can I correct this error? ...
0
votes
0answers
10 views

UE4 - storing complex actors in Game Instance

I want to make a game where I can hold tools in my hand and inventory. Obviously I want to pass them between levels and maybe even game sessions. Question is, how would I do that? With simple ...
0
votes
1answer
37 views

When should you use a baseclass and a class as a datatype?

Im following a C# rpg game development tutorial atm and what confuses me is that I cant figure out when to use what. The author writes different classes where 1 class derives from another so the ...
0
votes
0answers
8 views

DirectoryNotFoundException for an existing file path on Unity startup

I'm not sure why this error appears in my console when I start up my Unity editor but it is stopping me from running any Unity projects by pressing the play button. I have tried re-installing Unity, ...
0
votes
1answer
34 views

Comparing the scale and rotation of (otherwise) identical meshes from vertex data

I am designing a tool that can read an obj file with duplicate meshes in, and export the transformation, scaling and rotation of each duplicate relative to the original model. I can establish the ...
0
votes
0answers
21 views

How to draw a complex scene graph with many lines, “dots” (small circles), polygons, curves, and images in WebGL

For example, the images below capture some of the complexity of the drawing that might be in the game. They include complex lines and points like in graph drawings, high-res images like straight from ...
0
votes
0answers
14 views

Defining the characters and mob classes architecture

I'm dealing with the creation of those little fellows that will give life to my videogame: characters. Right now I have a basic structure in mind that will represent these group of fellows but I want ...
0
votes
0answers
13 views

Embedded scripting languages with serialization and deserialization [closed]

I am searching for a C++ embeddable scripting language that supports easy serialization and deserialization of simple JSON-like data structures without having to manually define save/load methods for ...
0
votes
0answers
14 views

UE4 - store items in Character or Game Instance?

I have a simple game where I can buy some items in a store, then walk out and use them. What is considered a better practice - to store the items array in the player controller and put them to the ...
0
votes
1answer
27 views

Calculating surface normal numerically

Say I have a 2D surface defined with the use of bitmap. I want to use this bitmap for collision detection (white color is where object can move freely, with black I mark the walls). How can I ...
0
votes
0answers
13 views

Workflow or 'Shading Mode' for Aligning gameObject in a Scene?

I'm aligning and placing gameObjects in a Unity scene. I have difficulty seeing the vertices and objects because the scene supposed to be dark (my workaround is to increase ambient lighting ...
0
votes
0answers
5 views

Slick2D - Update method interrupted while dragging window

I am currently making a project using Java and Slick2D (yes I know there is no support for it anymore, but it is an old project I wish to complete, and it serves me fine so far). There is only one ...
0
votes
0answers
10 views

How to make texture visible in unity from blender file?

I've imported a tree to Unity that I've made in blender, but the texture of the tree is not visible. Could you please tell me how to make that texture visible? I am a beginer and I don't know how to ...
0
votes
1answer
33 views

Z rotation matrix inverting object

I'm currently creating a 3d game where I need to rotate shapes. To do se, I created a rotation matrix for each axis, X, Y and Z. X and Y are giving me expected results, but not Z who kind of "inverts ...
-1
votes
0answers
31 views

Unity: how to apply texture to a cube, without loose aspect ratio?

I'd like to apply texture to a primitive (cube for instance), at runtime, without loose original image ratio size. Is it possible ? Thanks
0
votes
2answers
31 views

Struggle with resetting coroutine

A little bit of context; I'm still not experienced at this, I'm creating a 2D platformer and this is my enemies script (some part of it). This is supposed to be a minatour, which charges towards the ...
-1
votes
1answer
39 views

How to make a person walk within a Unity scene?

I have a person in my Unity scene. My person follows waypoints and move. However, the movement is very unrealistic, the person seems to be floating through the scene rather than walking. If someone ...
0
votes
0answers
21 views

Only host can spawn object

I am currently making a multiplayer game however only the host has the capability to spawn projectiles. ...
0
votes
0answers
20 views

Props or blocks?

I was wondering what would be best if I was to create a really big map with many items or decorations. Currently I'm working on a library for a GMod/Garry's Mod Server and I wanted to add a lot of ...
0
votes
0answers
12 views

Can I load a background image with TileMap.images (Image Layer from Tiled)?

I'm new to Phaser 3. The documentation seems slightly scattered across the web so I'm hoping someone can finally clear up my confusion. Is it possible to load a background image from ...
0
votes
0answers
45 views

Random range issues

i tried to make a random spawn system, but when i tried to start it, it spawns more than 1 prefab, which is not intended as i wanted to spawn only one by one. tried some method to prevent from ...
0
votes
1answer
22 views

Animation programming in c++ resources [closed]

I am new to game programming and would like to learn animation programming in c++ of 3d skeletal animations with latest animation concepts. Could anyone help me out with the resources or books or any ...
0
votes
1answer
46 views

Why my charchter fluctuate instead go down stairs?

My player is a capsule with: First person controller Charchter controller When my player go up stairs, it works well. When my player go down stairs, it fluctuate in air. What am i wrong ? ...
0
votes
1answer
21 views

Get position of tiles in a grid

So I have a 7x7 grid made using a for loop and instantiating the sprites. Now via code, let us say l placed my rectangular sprite,which takes 3 cells on the grid, somewhere on that grid. How can I get ...
1
vote
2answers
65 views

Binary space partitioning with floor as an object

I have a conceptual problem. The problems comes with the floor I'm rendering and the count of objects. The idea was to reduce rendering with BSP implementation, but the problem that I hit was that the ...
2
votes
0answers
85 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 | ...
1
vote
1answer
45 views

Unity - Do inventory items have to live in the game world?

I'm trying to create an inventory system there's a few parts to it, Item (Scriptable Object just the data like name etc of the item) ItemDatabase which takes array of Item(scriptable object) and then ...
1
vote
1answer
31 views

Comparing meshes and reducing duplication of data

I'm writing a class that reads an obj file, indexes each mesh and creates a VAO and GameObject of the appropriate type. I've stumbled on a design issue. Objects of the same name (Tree_A001, Tree_A002) ...
1
vote
0answers
37 views

Write Data From List To CSV File

I am trying to write to a CSV file the values that I put in lists from a key press in the keyboard. It does work somehow but in my csv file I get the values 2 times. Also, when I put values to only ...
1
vote
2answers
92 views

I'm still not sure how to control each door individual?

What I want to do is something more or less very simple. The main bool flag lockDoors control all the doors and this is working fine now. But now I want to add a flag to each individual door so I can ...
1
vote
1answer
99 views

For PC game development with Visual Studio, how do AAA developers reconcile their dozens-of-GB games with VS's 4 GB memory limits?

As far as I understand it, Visual Studio is the de-facto standard for Windows development in C# and C++, but it is limited by the fact that it's a 32-bit application and thus only has access to 4 GB ...
0
votes
1answer
34 views

How to use textures in 2D games in WebGL

I have been trying to figure out how to structure the VBOs in WebGL, and think that keeping them all together in one if at all possible sounds like the best approach. Right now I'm thinking of having ...
1
vote
0answers
11 views

Incorrect draw order with LineRenderer

I have a Player game object with a sprite renderer and a line renderer. The sprite for its body and the line for a rope. The problem is that the rope isn't visible (I can see it's drawn in the scene ...
-1
votes
1answer
36 views

The types of buffers typically used in robust WebGL/OpenGL apps

I am trying to get a feel for how to structure WebGL/OpenGL apps and have been looking through sources for the types of buffers they use. I've found these: uvs occlusion noise bitangents tangents ...
3
votes
0answers
29 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 ...
0
votes
1answer
26 views

3d isometric projection matrix?

I have 3d vectors that I want to project as 2d vectors to draw my shapes. I got a 3d vector cameraPosition, a 3d vector cameraDirection, a float renderDistance. I need to create an orthogonal / ...
0
votes
1answer
39 views

In Unity , How to clear instantiated object when I call the function?

Here is a function I call out am UI element: ...
0
votes
0answers
14 views

Problems with complex collision in UE4

My problem is simple. I imported a 3D object (it's not convex) and I want the character to go under your legs. But this does not happen: There seems to be a way to do this, I just do not know which ...
0
votes
1answer
15 views

Spawn a gameobject from list when grip button is clicked?

I wanted to spawn gameobjects from the list one by one when the grip button in the controller is clicked. I have attached my code and the inspector which contains the list of gameobject but the code ...
1
vote
1answer
28 views

swipe control can't destroy gameobject [duplicate]

I tried to make a game where you can destroy something when you swipe or tap. However, it says NullReferenceException & while the swipe control actually works, ...
0
votes
1answer
14 views

Unity AudioSource.PlayClipAtPoint - controlling attenuation

New developer here, looking to do some raycasting and controlling audio positioning in 3D space based on the raycasts interactions with other objects. I've got the raycast 'casting' and able to report ...
0
votes
0answers
12 views

Get Position and percentage of a given point on a Spline

I have a spline data, in a List chunkPath; and a player position (x, y, z). I would like to get the closest point in the path, and get the actual percentage we are inside the path... So What I have: ...
-6
votes
0answers
47 views

Can any one make me understand this code! [closed]

what does this code is checking for?? Code is in JavaScript { "check_list": { "map_desert_0.10.0.10121.pak": [ "2d3ac3643213f70d6890b180e5f6d847e7b85830" ], "...
1
vote
1answer
55 views

How to unpack game data files encrypted with AES key?

In game development pak files are secured by some encryption and one of these are AES key. I want to know that for security purpose is the AES key is stored in the game files itself? I know that ...
1
vote
0answers
17 views

In GameCenter realtime multiplayer how to identify who is host?

In GameCenter real-time multiplayer how to identify who is a host?
2
votes
1answer
46 views

Reading a Binary File in Unity

I am trying to display the first two bytes of a binary file as a test. I have the following code. ...
1
vote
0answers
15 views

How to differentiate between colliding objects in Box2D?

I need to differentiate between different points of contact in my racing game. I currently have staticSensors which determine if the car is on the track or not, but I have created a second sensor to ...

15 30 50 per page