Questions tagged [spaces]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

What transformations are performed under model space?

I am struggling to understand the relationship between model transformation, model space, and world space. I understand that model transformation transforms an object from model space into world space....
CheeseS's user avatar
1 vote
1 answer
96 views

Last hole artifact in screen space refection with Hierarchical Z

After lot of efforts I have an almost nice shader doing SSR with HiZ. The shader is provided below. Some parameters are tunable and you can speed up things but the difficulty in my scene (picture) are ...
philB's user avatar
  • 129
0 votes
0 answers
74 views

How to predict future position of body in solar system?

I have a solar system where each body interacts with each other by force F = Gm1m2/R^2 Is it possible to predict future position of some random body after t seconds since bodies velocity and position ...
Robotex's user avatar
  • 251
0 votes
1 answer
560 views

Convert Global Space 3D Location to Local object space?

I'm trying to find a formula that could convert my 3D global coordinates into local object space. Here are the inputs I have ...
DB3D's user avatar
  • 103
0 votes
0 answers
42 views

World Canvas InputField cursor precision/control from RenderTexture output in Overlay UI

How do you have a world canvas input field cursor be controllable from the input being mapped from a UI overlay with its raw image supplied from render texture from a render camera? Described another ...
ina's user avatar
  • 294
0 votes
1 answer
398 views

View Space From gl_FragCoord

Trying to get the example code for CalcEyeFromWindow() (first one on the page) to work in WebGL, but having no luck. Paired down the code to the following with some explicit values just in case ...
cageyo's user avatar
  • 11
3 votes
1 answer
1k views

How to remap world space to screen space?

I am noob to game development, and while using a simple graphics library in Python to make a 2D game, I noticed that the coordinate system of the library had its upper left corner as (0,0), whereas ...
Allen Ma's user avatar
0 votes
3 answers
95 views

Velocity Relative To A Vector

So I have a velocity vector b in world space and I have a "pointing" vector a in world space. I need to know how to make the ...
Adrians Netlis's user avatar
1 vote
1 answer
1k views

Should I store local forward/right/up vector or calculate when necessary?

I'm working on an object picking and translation/rotation/scale gizmos system in my engine where you select objects and perform transformations on them in a 3d editor-like fashion (e.g. Blender) In ...
vexe's user avatar
  • 332
4 votes
1 answer
305 views

Tangent space - Lengyel vs ShaderX5 - difference

I have been studiing tangent space calculations and came across two solutions E. Lengyel - http://www.terathon.com/code/tangent.html ShaderX5 solution - (solution is also desribed here http://www....
Martin Perry's user avatar
  • 1,106
0 votes
1 answer
139 views

Space of Tangent and Bitangent Vectors

I have a really simple question I cannot be sure about the answer. What is the space of tangent (T), and bitangent (B) vectors when we calculate them using vertex positions, and texture coordinates?
ciyo's user avatar
  • 101
3 votes
1 answer
312 views

Placing an AABB close to a point so that it doesn't intersect any other AABBs

Give a 2D space with a bunch of non-intersecting AABBs, and a point in this space (that may or may not be inside an AABB), how can I find the closest place where I can place a new AABB of a given size?...
TomD's user avatar
  • 33
3 votes
1 answer
2k views

What are the advantages of tangent space shading/lighting, and what about attenuation?

In several topics here it was suggested by people that doing lighting in tangent space is better than doing it in world space. Right now I am doing it in camera space, but it's really similar to world ...
W. Nawrocki's user avatar
0 votes
2 answers
355 views

Why do we say things are rotated around the z-axis in a space graph?

I've embarked on a journey of game development. I need to learn lots of 3D terminology, since I want to make 3D games. I learned that X is to the right, Y is up, and Z is towards you. Then why when a ...
Stync's user avatar
  • 311
2 votes
1 answer
135 views

Space between randomly generated objects

Im not sure there is a going to be a simple answer for this question but Ill ask anyway. I am programming an endless scrolling game where the player's character is constantly "falling." As they fall ...
Joel G's user avatar
  • 33
14 votes
1 answer
8k views

Why is clip space always referred to as "homogeneous clip space"?

I've noticed in almost everything I've read so far that the term "clip space" is prepended with the word "homogeneous". Now I understand that it roughly means "all the same", but I don't understand ...
Nathan Ridley's user avatar
7 votes
2 answers
5k views

Rendering artifacts at a large scale

I'm a new to OpenGL or graphics in general. Trying to write a game with realistic scale. I had a perfectly fine rendering of earth at a small scale, but when I try to scale it up to 1:1 I get this ...
omikun's user avatar
  • 325
2 votes
2 answers
897 views

Why are normal maps in tangent space but not in normal space?

I want to implement normal mapping in my little game engine. When getting into normal mapping, I wonder why normal maps are typically in tangent space but not in normal space? That normal maps in ...
danijar's user avatar
  • 5,731
2 votes
2 answers
3k views

World space and model space the dummies version [closed]

I'm by no means a 3d programmer but have recently taken it upon myself to build a Voxel based game and I'm having a little trouble understanding some of the concepts around matrices (what with my ...
War's user avatar
  • 1,683
4 votes
1 answer
7k views

global transform to local transform?

If an object is attached to another one and you need to set its position, rotation and scale in global space, what do you do to get the local versions of these values, knowing the same values for the "...
user avatar
1 vote
4 answers
250 views

Space & Sound? Defying Physics?

Why are there sound effects in space shooter games like asteroid and such? There is no medium in space for sound to travel by. Yet we get hear gun shots & explosion. I am not talking about the ...
Shourav Bin Rabbani's user avatar
0 votes
1 answer
133 views

How to shoot a triangle out of an asteroid which floats all of the way up to the screen?

I currently have an asteroid texture loaded as my "test player" for the game I'm writing. What I'm trying to figure out how to do is get a triangle to shoot from the center of the asteroid, and keep ...
blissfreak's user avatar
32 votes
6 answers
14k views

Are there any disadvantages of using Distance Squared checks rather than Distance?

I use distance squared checks for basically all my distance (vector3 length) checking, due to the performance increase from not incurring a square root (like in plain length checks). From the looks ...
Aralox's user avatar
  • 972
5 votes
1 answer
1k views

COLLADA: Inverse bind pose in the wrong space?

(Crosspost from StackOverflow) I'm working on writing my own COLLADA importer. I've gotten pretty far, loading meshes and materials and such. But I've hit a snag on animation, specifically: joint ...
knight666's user avatar
  • 5,566