All Questions

0
votes
0answers
10 views

How to calculate falling speed in spritekit?

Is there a way to calculate falling speed based on physics body settings, instead of waiting it to fall and getting velocity? I would like to find what time it takes for object to fall from defined ...
0
votes
0answers
14 views

Fbx file increase in size after building apk

So I have a characters fbx, which contains a couple of my characters meshes and the avatar. The size of the fbx as shown in the explorer is about 3.5 mb. However, after building the game, its size ...
0
votes
1answer
34 views

Split tiles into Chunks [2D]

I'm trying to make a Chunk class for my Tile class creating Chunks of 25 Tiles each, But for some reason it doesn't work correctly Tile.cs extends Sprite.cs ...
1
vote
0answers
32 views

Trying to convert Unreal shader graph to Unity, what nodes are a close equivalent in the Unity shader graph?

I am trying to convert an Unreal shader graph to a Unity Shader Graph. https://api.unrealengine.com/udk/Three/VolumetricLightbeamTutorial.html I am struggling with understanding which nodes to use ...
0
votes
0answers
15 views

LibGDX: moving a object random [closed]

I am learning libgdx and I am trying to move a object random on screen, I need help for move it. Is it better use the deltaTime()? or I must use another method.
0
votes
1answer
33 views

Unity not redrawing sprite, after sprite change

I am making a game where the player mines dirt by walking on it: So, I created a scene and added a bunch of dirt to a grid, from a dirt prefab. When the character walks on a square, it is supposed to ...
0
votes
2answers
72 views

How do I get an NPC to follow the player(and stop when it gets within range)

I'm making a game where you have a friend follow you. I have a script that partly works, but when the friend exits the trigger, it won't follow the player. How do I get the friend to follow the ...
0
votes
0answers
19 views

Libgdx clicklistener of Image Actor not recognising click

So I am attempting to make a an image of a closed door for a ship. On clicking this door, it would then change to an open door. However, I am struggling to get the click listener to work for the Image....
0
votes
1answer
28 views

UPDATED: Unity 2018 Vuforia 8.0 AR app works with PC webcam, not phone camera

UPDATE: The behavior I am seeing does not occur if I replace my model with default cube. Recalc normals. Lowered poly count. Still no luck. ============================================================...
0
votes
0answers
14 views

Trees made with Unity's Tree Editor have 2 sides: 1 bright and 1 normal

(The directional light lits the side shown at the right side of the picture.) I tried changing shaders, but that just makes the bright side fully dark. I tried changing Ambient Occlusion but that ...
0
votes
1answer
44 views

Alternatives to Camera.main.ScreenToWorldPoint in Unity

What are alternatives to Camera.main.ScreenToWorldPoint in Unity? So, here is my code (just the piece which is relevant for the question): ...
1
vote
1answer
18 views

GameMaker Studio: fullscreen vs. dialogs

When setting my game to fullscreen, I get problems with dialogs: "get_save_filename" opens in the background, and when I close it, the game doesn't react anymore. Asking the user a yes/no question ...
1
vote
1answer
67 views

A* Pathfinding Finding One of Many Goals

I have my A* pathfinding algorithm right now working such that given a graph it can find the route from one starting node to one goal node. This works well for many problems, but sometimes I find ...
0
votes
0answers
25 views

How to access lighting data of a different Pixel in a Unity Shader?

I'm trying to write a shader with "block/tile-wise lighting" for sprites (Coloring entire objects/tiles with the same light & brightness). I've started with modifying the /Sprites/Diffuse shader. ...
2
votes
1answer
80 views

How to let players connect over the internet via TCP?

We are making a 2 player game, using a Client/Server architecture and need a way to connect over the internet. Connecting in the same network is no problem and works flawlessly. Will it be a lot of ...
0
votes
0answers
39 views

How to implement Microwave Signals in Unity?

I need to implement microwave signals for object detection in Unity. I know there are raycast sensors in Unity, but can microwave signals be simulated or can a proxy of microwave signals be created ...
0
votes
1answer
5 views

Can Inspector interactions be used with UNET

SyncVar and RPC calls allow a UNET server to send messages to clients, but these messages are not triggered if the server-side change comes from the inspector or a custom editor (and presumably any ...
1
vote
1answer
35 views

Detecting a Collision Between Two Bodies Undergoing Multiple Transformations

I have been searching for an answer to this for a really long time and I have not found any definitive answers as of yet. What I am trying to do is determine if and when two bodies collided between ...
0
votes
1answer
37 views

Stop movement if transform.position.y == 0

Why does the following code not step the object's movement when its y coordinate reaches zero? ...
0
votes
0answers
31 views

Perspective projection matrix with a non-orthogonal near plane

I'm trying to figure out a way to provide such a perspective projection matrix to a shader that the "near" plane wouldn't necessarily be orthogonal to the camera vector. More specifically, I'm ...
0
votes
2answers
34 views

Manual collision detection with a Box Collider 2D

My game is turn-based, so I only need collision to be detected after a specific game event has occurred, so for instance after every PlayerMoveComplete event. I could just define a MonoBehaviour ...
0
votes
0answers
31 views

how to make AI do jump on navigation mesh system?

hi :D i'm currently using unreal for make a sand-box game for learning purpose. and due to the unique attribute of sand-box game, i am looking for how AI move naturally on map (which changes so often)...
2
votes
1answer
126 views

Did retro pixel artists design with CRT's in mind?

There is an often stated claim on discussion boards like Reddit that now retro games of the 8 bit and 16 bit era actually had their art designed with CRT's in mind. I am not talking about video modes ...
0
votes
1answer
45 views

how to set multiple materials using array in the submesh of an object

I'm trying to insert multiple materials into the object's submesh using the array, but I'm not getting public GameObject[] obj; ...
0
votes
0answers
49 views

Blender / Unity - Which one do I paint on? low poly or high poly

I created two versions of my object. One high poly and one low poly. I sculpted the high poly one and plan on baking a normal map so that my low poly one can have more detail. My question is, once ...
0
votes
1answer
41 views

Transform inputs don't work

I'm writing a C# player script for a class and when I run, the sound inputs work fine, but the movement inputs don't respond, and I don't know how to fix it. Code: ...
-1
votes
0answers
18 views

Object reference not set to an instance of an object [duplicate]

I'm writing a script for a game object, but I'm get an error message saying 'Object reference not set to an instance of an object', and it makes all my inputs stop working. Code: ...
0
votes
1answer
28 views

How to make sound play when button is pressed

I'm using Game Maker Studio 2. When I press the "Z" key I need audio to play, but I can't seem to get it to work. I'm using the following code inside an object's Key Press event: ...
0
votes
1answer
19 views

PostFX2 Custom Effect's Y position has wrong offset ONLY in GAME camera. Scene camera is OK

I implemented raymarching in a full-screen Post FX2 custom effect. Let's say I'm rendering a SDF sphere at world coordinates 0, 0, 0. Everything is fine in the scene camera -- if I rotate the camera ...
1
vote
1answer
33 views

How to access Lit shader properties through code?

Currently i'm using HDRP in my project, so i have a question. How can i access Lit shader properties through code ? Or where i can see names of variables in this shader ? For example:
0
votes
1answer
83 views

Mapping a Touchinput-device in a 3D World for VR

I have a Touch-Input device which is linked to my Unity Program and a VR Device. The Touch-Input device which is bolted somewhere BUT the position can be changed. I can get the "2D Coordinates" X / ...
0
votes
0answers
30 views

How to make the screen not flicker?

I want to be able to draw all my text, lines , triangles and other stuff to screen and then clear the screen and draw something new, BUT this method makes the screen flicker, and all the drawings dont ...
0
votes
0answers
19 views

How to make selectable method dropdown on inspector

Something like Animation Event's inspector: but only specific static class and static methods will be shown. UnityEvent will show something like this: But I ...
3
votes
3answers
85 views

How to implement smooth wandering on an annulus?

I am creating a 2D action platformer and want to create some steering behavior for a mage enemy. Basically, I want the mage to smoothly wander inside an annulus centered on my player. Below is an ...
3
votes
2answers
89 views

When should I make different LODs?

This is something I have been discussing with my team as to how we should approach it on our project. The question is, what is better practice, make your model already with different Levels of detail,...
34
votes
1answer
7k views

What does SoC stand for?

… and no, I do not mean System-on-a-Chip. I stumbled upon this question which was using the acronym in the context of graphics, and found myself wondering about its meaning. Neither the question nor ...
3
votes
0answers
61 views

Linking Unreal Engine with OpenCV libraries built with RTTI on Linux

Unreal Engine has a plugin for integrating with OpenCV. Currently that plugin works on Windows. I'm trying to modify this plugin to work on Linux. I've worked through many issues but I have one I can'...
0
votes
0answers
21 views

Camera LookAt position with fixed screen position

I have a perspective "lookAt-type" camera. I'm trying to compute specific focus point of the camera, which should be placed in the middle of the screen: I also have a custom 3d point in world space, ...
0
votes
1answer
48 views

How can I create a tunnel/parallax/depth effect based on mobile device tilting?

I would like to create applications similar to what's displayed in these videos: VR Tunnel Live Wallpaper for Android The parallax view Part 1 These mobile application are supposed to react to ...
0
votes
0answers
14 views

GameObject transform localPosition not setting when you use a function to set somewhere else in the code

So z position on some gameObject being generated from a prefab was being set wrong. I create to function to do like a reset transform thing, but when I set the localPosition in the function it does ...
0
votes
2answers
69 views

How to avoid the cutoff of a Sprite when overlapping in a terrain?

I have a scene where I have a terrain as a PlaneGeometry. And I'm trying to locate a building on it as Sprite. But I'm not able to put that building/sprite centered on the terrain without getting a ...
3
votes
1answer
73 views

Why does my collider rotate correctly on a slope only when a ray is cast directly from its center?

Edit: This answer might also be helpful to those who come across this question. I've been messing around with raycast collisions and slopes, but am having an issue when trying to get my collider to ...
1
vote
2answers
121 views

Why are my waves not spawning as expected?

Hey guys so here's an outline of my problem using a basic 3-step approach The Problem Defined Waves 1-22 should spawn in order with the correct paths and enemy prefabs. However, Waves 1-4 only spawn ...
0
votes
0answers
12 views

IK Elbow not working?

I'm trying to make character elbow movable like the hand. In my case, is not moving at all. Is it from my script or something else ? ...
1
vote
2answers
119 views

Is there a name for assets in a video game which allude to a depth they don't have?

A very particular question, hoping it's not too out of place here: is there a name within video game development for assets in a game that allude to a depth they don't have? Without knowing enough ...
3
votes
1answer
141 views

How to make low poly ground look better

I'm working in Unity and have created some low poly meshes using blender. Currently, the meshes look good, but the ground seems very lacking. I am not sure how to make it feel natural or even look ...
1
vote
1answer
35 views

how do I set an int to the scroll wheel data in unity

i need to set an int to data from the scroll wheel so I can have the script use this int to display an item attached to a number from that int. i'm using c# i set up my scroll wheel input, what am i ...
0
votes
1answer
45 views

How do I move an object in a square pattern?

I have some bots that can move via setting the x and y. I have already been able to make them move in a circle pattern, but how do I make them rotate around the player in a square pattern? I'm not ...
1
vote
0answers
23 views

Discrete line inside a 3D matrix

First of all a little premise: I'm following this tutorial on YouTube for procedural 2d cave generation in unity using cellular automata and I'm extending it in order to make caves in all three ...
0
votes
0answers
24 views

How to stack shaders in Godot?

I have a CanvasLayer singleton that I am using for transition effects between scenes in my game. This CavasLayer contains a ...

15 30 50 per page