Categories
Game Creation Mastering Development

Fix Unity Line Renderer for pointer drawing a jaggy line

I think I’m using the standard Oculus setup from the SDK using the OVRCameraRig. I’ve also got a LaserPointer. But inside VR on my Rift the line looks like this. Any idea what I’m doing wrong? It used to be straight. Now it’s not. I don’t know what I changed.

Categories
Game Creation Mastering Development

Fix Unity Line Renderer for pointer drawing a jaggy line

I think I’m using the standard Oculus setup from the SDK using the OVRCameraRig. I’ve also got a LaserPointer. But inside VR on my Rift the line looks like this. Any idea what I’m doing wrong? It used to be straight. Now it’s not. I don’t know what I changed.

Categories
Game Creation Mastering Development

How people get their game ideas?

One thing that always stop me when I want to start making a game is having no idea what to do. How do people get ideas for their game ? I mean realistic ideas for people who are alone with the minimum ressources (no money for assets, blender and unity). I will never stop being […]

Categories
Game Creation Mastering Development

Are there any game engines written in Scala?

I am studying Scala and believe it is a good language for functional programming and object-oriented programming, especially since it is easy to implement with Java. I want to know if there are any game engines that make use of Scala.

Categories
Game Creation Mastering Development

Drawing outlines around 2D objects OpenGL

I am trying to draw an outline around any arbitrary object using OpenGL and shaders with a different color than the original object, while also retaining compatibility with alpha values <1. I am currently trying to get this working with just a rectangle. I tried using points to determine x, y, width, and height, but […]

Categories
Game Creation Mastering Development

What is the default LoadSceneMode in Unity if user doesn’t set it explicitly?

I see that there are 2 LoadSceneMode, Additive and Single. If the user isn’t setting it explicitly as in SceneManager.LoadScene (“mainScene”, LoadSceneMode.Additive); or SceneManager.LoadScene (“mainScene”, LoadSceneMode.Single); Then what mode will unity use? Will it be single or additive? As simple as it sounds I can’t find this info in the docs. Thanks!

Categories
Game Creation Mastering Development

InfoBox for VR in Unity

Currently, I am making a GYM in VR with Unity (2018-LTS). I made the Machines in Blender (2.8), and I put videos next to them, How to make the exercises well. I want to put an Infobox on the Wall, or Next to the machines about how to do the exercises well, but I don’t […]

Categories
Game Creation Mastering Development

Why when scaling object to one direction(forward) it’s not starting smooth?

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Raise : MonoBehaviour { public float maxScale = 10f; public float speed = 1f; private Vector3 v3OrgPos; private float orgScale; private float endScale; void Awake() { v3OrgPos = transform.position – transform.forward; orgScale = transform.localScale.z; endScale = orgScale; } void Update() { ResizeOn(); } private void ResizeOn() { […]

Categories
Game Creation Mastering Development

Microsoft example ‘Creating a Basic Effect’ in XNA Game Studio 4.0 Documentation is not working

Why is this example not working, is it normal that the variable cubeVertices is not really given somewhere as a parameter? I’m getting an error like this: “The current vertex declaration does not include all the elements required by the current vertex shader. Position0 is missing.” using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using […]

Categories
Game Creation Mastering Development

How to set orthographic camera for libgdx

I have implemented a basic demo of camera but it is not showing any sprites on screen. I cannot figure out what’s wrong with my code. public class MyGdxGame extends ApplicationAdapter { private int width, height; private OrthographicCamera camera; private SpriteBatch batch; private Texture roboTex; private Sprite roboSprite; private World world; private Body robot; @Override […]