3D refers to three dimensional space where coordinates are represented with X, Y and Z values.
0
votes
0answers
39 views
Which Type of Collision Detection should I use?
So over the past week I've been scratching my head over SAT (Separating Axis Theorem). I know how it works, but can't seem to get the C# code right. There's always one face or edge that's letting my ...
1
vote
0answers
32 views
Handle weapon rotation with camera in FPS game 3D DirectX 11 C++
By now i have
-A working camera that moves around the world (z-axis is where it looks, y-axis is the one that aims above it and x-axis is the one to the right)
-A gun that follows the camera (so i ...
0
votes
1answer
26 views
Single-face, Multi-plane geometry?
I'm just getting started with 3D so I'm not sure what's this is called. If I move a point in a polygon out of alignment with the other points in the polygon, such that is would be on a separate plane, ...
0
votes
2answers
48 views
Creating new static sprites for Warhammer 40K Armageddon Pc Game [closed]
I want to create new unit sprites for the Warhammer 40K Armageddon pc game.
Game uses simple 3D static PNG sprites facing 6 different direction for all units. They don't animate in game, just ...
0
votes
1answer
35 views
.obj file reader for DirectX 11
It's been something like a week and i still can't sort this out. I need something that converts a .obj file into data readable and drawable by my framework.
I have 1 main issues: indices.
I think i'm ...
1
vote
1answer
32 views
How do I implement object picking, using OBB in OpenGL?
I am trying to make 3D drawing software. I wanted to have the drag feature so I am using object picking using the OBB algorithm. I am facing problems in understanding the algorithm, and my ...
-4
votes
0answers
44 views
In 3d and 2d programming, Is there any distinction between global space and world space? [duplicate]
In 3d and 2d programming, is there any distinction between global space and world space?
Are these two ways to name the same thing?
I'm not confused about the difference between local and global.
...
0
votes
0answers
6 views
Plotting coordinates based on the other projection present in the scene in LibGDx
I am using LibGDx library to render 3D graphics on camera view on Android Platform. I am able to render a model using a projection. Then i wanted to render 3D texts over the model with different ...
4
votes
0answers
30 views
Using a .obj file as a terrrain in 3D multiplayer games
To give you a bit of context, I often try and imagine how big games are working, especially networked and multiplayer games. This is how I came to this question : how do big 3D multiplayer games load ...
2
votes
1answer
38 views
glsl directional light specular seems to be relative to origin not camera
I've been using the 'learnopengl' tutorials to calculate directional light. The diffuse works perfectly fine but the specular seems only work properly when the camera is near the origin and the ...
0
votes
1answer
29 views
When to use LOD and when not
I have a simple question: are there any cases where game LOD models don't need to be created? Obviously you need LODs for landscapes, large props, characters, vehicles etc. But what about small indoor ...
1
vote
1answer
49 views
How do i instantiate a particle system on gameObject destroy?
I have this damage script and I want it to instantiate a particle system...a death effect on enemy destroy. How do i add that to this script, please?
using UnityEngine;
using System.Collections;
...
0
votes
2answers
47 views
Most efficient way to create/modify terrain in real time?
In my game players can modify terrain in real time, but I am not sure what is best practice for this scenario. I have redesigned and refactored the way the player does this a few times, and am ...
28
votes
4answers
5k views
How can I implement pre-rendered 2D sprites that can face any direction?
I've been Googling how games like Clash of Clans render their troops, and it appears they are pre-rendering 3D models to 2D sprite sheets before runtime, and rendering those 2d images at runtime. ...
1
vote
1answer
90 views
How to make 3D characters that grow?
I am creating a game in LWJGL with Java that will feature growing animals that will be imported as OBJ files from Blender.
If I wanted these animals to grow, would I create a full sized 3D model and ...
0
votes
0answers
59 views
Dumb Smoke Simulation
I essentially want smoke that looks almost exactly like this, but in 3D. That algorithm seems simple enough to adapt for 3D, the only problem I see is that it requires that I render the smoke to a ...
1
vote
0answers
11 views
Creating a skybox in Allegro 5
I'm trying to render a "skybox" using Allegro 5, that 3D objects can move around "in front" of. I'm having trouble figuring out how to set up the projection transform and where to put the vertices for ...
-1
votes
1answer
84 views
How can you procedurally dismember a character model? [duplicate]
For example in the new Doom, you can use a chain saw and slash an enemy apart, the enemy actually splits in half in the path of the chain saw. I know how to do the cheap effects where you store a copy ...
-1
votes
2answers
165 views
How do I fake 3d?
I'm trying to make a first person, pseudo-3D game similar to those of the '80s, where you walk around on a grid, and where all the walls can be the same height. Generally speaking, how would I create ...
0
votes
2answers
39 views
How to create a Spawn Area that can be visualized in the Unity Scene Editor?
Consider a Spawn Area for GameObjects. We define a Spawn Area to be a boundary consisting of 3 or more points such that an object can spawn at any coordinate that is within the boundary of the Spawn ...
3
votes
0answers
77 views
Blood splatters on a terrain
I am trying to create blood effects, where the characters being killed are on an uneven terrain. The simple way is to instantiate a prefab with texture, which uses a plane mesh, on the raycast hit ...
-3
votes
2answers
151 views
What would happen if a 3D game used Bitmaps to render, instead of vertices and textures? [closed]
What would happen if a 3D game used Bitmaps to render, instead of vertices and textures?
0
votes
1answer
25 views
Project vertex on a line
V,A and B are 3 points in 3D space and We have d0 (distance of V from (AB)line).
I want to calculate question mark point in the image above!
3
votes
1answer
155 views
Can GPU overload cause rendering inaccuracies?
It was supposed to be a continuous tube, made out of 5000 instanced rings of 60 cubes each (12 triangles each) on my integrated laptop intel GPU card using OpenGL 3.3.
That was what I got. The ...
0
votes
3answers
69 views
Console (CMD like) in a DirectX application
I really need a console for the game i'm making. I am programming a first person camera right now and i want to see what is going on with the variables (to be more specific i need to know if i'm ...
0
votes
0answers
51 views
Monogame Orthographic Isometric camera
Some time ago decided to make an "2,5d" isometric strategy game. I decided ill go with a 3d engine with a locked orthographic camera for the benefit of easier collision detection, easier depth sorting ...
0
votes
1answer
31 views
Inertial quantities in 3D physics
I'm writing a little 3D physics engine and everything is peachy except that to have constraints behave correctly, I'm having to artificially scale up the inertia tensors. Worse--the amount that I have ...
3
votes
2answers
122 views
Is developing 2D sprites as projections of 3D models viable?
I am a solid programmer and have a strong desire to make a 2D top down game. My immediate stumbling block, however, is the art. I am currently using placeholder images, but I really want to develop my ...
-1
votes
1answer
89 views
How to make the 2D sprites into 3D game objects?
I got this code and this code uses sprite as chess pieces. All I want to do is to use 3D game objects instead of sprite. And I am confused on how to do that. I already got the code and it is using ...
0
votes
0answers
36 views
javascript - Get x and y values from computed CSS matrix3d?
This example (which works only on Safari), uses the deprecated function webkitConvertPointFromPageToNode
var point = webkitConvertPointFromPageToNode (
fieldContainerH,
...
0
votes
0answers
34 views
Get Edges of Intersection Line from Tr-iTri Overlap Algorithm
Hi I have the following code, which finds the intersection between two triangles, and returns the two points making up the intersection line (out Vector3 isectpt1, out Vector3 isectpt2).
I would like ...
0
votes
0answers
56 views
wall collision using vector math
How would one go about implying wall collision a 3D scene. Like this one, that I am using in my current game. It works to certain extent but it has obvious flaws. I have tried using Bullet, but it ...
0
votes
0answers
29 views
Position a camera so that top left and bottom right corners are both points in 3D space
I would like to place a camera so that it has a specific portion of space in sight. I would like to place it equidistant to two points in space, corresponding to the intended top left corner and the ...
1
vote
0answers
40 views
Unity - soft blur effect for dark void edges
I'm a former Flash dev working in Unity (or in 3D for that matter) for the first time.
For the game I'm working on, I've designed an interior room like so:
To represent void/space outside the bounds ...
1
vote
1answer
93 views
How to handle equipment on a 3D animated character
Im working on a 3D engine in Java using OpenGL. Animated models are set up and working by transforming vertices based on joint weights in the vertex shader, i think this is common practice.
I am now ...
0
votes
1answer
36 views
2D HUD overlay drawing based on 3D coordinates and camera azimuth and elevation
Assume you have the 3d coordinates of the player and another unit N as well as the azimuth and elevation of a camera always looking at the player. In the following illustration the sun would be the ...
0
votes
1answer
27 views
Unity3D CrossPlatformInput StandardAsset Multitouch
I have a small game I am working on, and I am trying to add touch support to it. Before I try to add that into the real game I wanted to do a test run on a small project. The project consists of a ...
1
vote
1answer
122 views
Why is fog in games exponential and has a start distance?
In most tutorials I see on how to achieve fog with shaders the fog is exponential and has a minimum / start distance from the camera. Why? Both seem counterintuitive, especially the minimum distance. ...
0
votes
1answer
71 views
How to display distance between Player and object in UI text? Unity 5.5
I am an beginner in Unity, with no experience in scripting. Can someone help me with a script to display distance between Player and object in UI text? Using Unity 5.5, the scene is quite simple just ...
0
votes
1answer
55 views
Creating a 3rd Person Flying Camera for 3D asteroids game
In order to learn PyOpenGL and test out an engine I am developing, I am trying to write a 3D asteroids flying space shooter game. Currently, I am implementing the camera using a "look at" function ...
0
votes
1answer
31 views
UNITY Prevent 3D Text Render Trough All Object Without Shader
im tired of those answer i found trough search engine that just keep saying " the trick is to modify the shader " without thinking because they want to gain reputation , in my case , i have 2 3D text ,...
0
votes
1answer
30 views
Monogame Dragging 3D object edges
I am having trouble rendering 3D models with monogame.
The problem only occurs when I export the object from blender with two materials on it. Example:
Monogame sees those two different materials ...
0
votes
1answer
59 views
Does decreasing rendering resolution also decrease the amount of polygons in my 3d models?
When lowering my game resolution I reduce the pixel count of the final rendered output image, does the 3d model I use to render the final image also lose polygons?
0
votes
1answer
14 views
How can a BabylonJS FreeCamera be rotated from code?
Say I have a FreeCamera in a BabylonJS 3D world. How could I rotate that camera from program code? Or, more specifically, how might I bind camera rotation (not movement, which I know how to bind to ...
0
votes
1answer
76 views
Line renderer in 3D sorting order
I'm using a line renderer as a laser aim for my character. If the aim hits an object it ends at that object. If the aim doesn't hit an object it continues a predefined distance.
If I aim at an object ...
0
votes
1answer
43 views
3D modelling from a picture?
Can I make a model from a picture? A friend of mine would like to be an NPC in my game ! :P I would like to add him, but I never did 3D modelling!
Is it possible to make 3d model from photo/picture?
1
vote
3answers
92 views
How to make a spaceship auto level while in orbit
I’m trying to make a ship auto level so that the belly of the ship stays facing the planet. I found the answer in 2.5D*, but I can’t get it to work in 3D.
//world rotation * up
Vector3f spatialY = ...
0
votes
2answers
86 views
2D HUD over 3D scene
I'm trying to create a 2D Heads up Display for my players in a 3D OpenTK environment. How I'm doing it is by drawing my 3D elements and then running this code.
GL.MatrixMode(MatrixMode.Projection);
...
0
votes
1answer
26 views
Three points to normal notation (interpret the math)
From: Euclidian Space: Planes, I see the formula:
Convert Three points to normal notation
N = (p1-p0) × (p2 - p0)
d = -N • p0^2
where:
N = normal to plane (not necessarily unit ...
0
votes
1answer
87 views
Box2D in 3D space
I am trying to combine a perspective camera with a box2D world using libgdx and I am having some problems getting the two to synch up. I want to do this so I can use 3D models but keep the game in a ...