Tagged Questions
2
votes
1answer
93 views
RGB to xyY color space conversion and luminance
The luminance calculated by following GLSL functions (fragment shaders - tonemap) has different value:
float GetLuminance (vec3 rgb)
{
return (0.2126 * rgb.x) + (0.7152 * rgb.y) + (0.0722 * ...
1
vote
1answer
93 views
Movement constrained to the faces of a cube
The basic setup I'm working with is a cube rendered in-Engine (Panda3d, although I only am looking for a generalized solution) as well as a 2d square on one face of the cube. The eventual outcome I'm ...
-2
votes
1answer
155 views
Move projectile in direction the gun is facing [duplicate]
Possible Duplicate:
Move sprite in the direction it is facing?
I am attempting to have a projectile follow the direction a gun is facing. When using the following code I am unable to make ...
1
vote
1answer
873 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 ...
2
votes
1answer
223 views
Detect mouse click on a bezier curve's neighborhood
I'm developing a game in HTML5 and JavaScript using Canvas API for drawing graphics. I want to detect if the user has clicked on a bezier curve which has the line width of 20 pixels (something like ...
3
votes
0answers
170 views
Web sites with famous game information? [closed]
Is there any website containing informations related with some famous game? For information I mean how to calculate damage in a rpg for example, or how they've set camera and other tips like this!
...
0
votes
2answers
248 views
3D Vector “End Point” Calculation for procedural Vector Graphics
Alright, So I need some help with some Vector Math.
I've developing some game Engines that have Procedural Fractal Generation for Some Graphics, such as using Lindenmayer Systems for generating Trees ...
1
vote
3answers
428 views
How do you blend multiple colors in HSV (polar) color-space?
In RGB color space, you can do a weighted multiple-color blend by just doing:
Start with R = G = B = 0. Then we perform a blend at index i using a set of colors C, and a set of normalized weights w ...
1
vote
1answer
416 views
Problems with 3D rotation when creating a 3D skeleton
I am writing a simple BVH parser in C# using the XNA framework. At the moment I have managed to parse in all the data and my goal is to find out the global coordinates of all the joints in the ...
10
votes
5answers
1k views
Quick 2D sight area calculation algorithm?
I have a matrix of tiles, on some of that tiles there are objects. I want to calculate which tiles are visible to player, and which are not, and I need to do it quite efficiently (so it would compute ...
2
votes
2answers
451 views
How can I transform a point from world space to object space?
If I have an object space described by transformation matrix that should be applied to object to transform it to world space, what I have to do to transform point (world space) to that object space.
...
14
votes
3answers
739 views
What does the graphics card do with the fourth element of a vector as the final position?
From this question it appears you would want a four-element position vector, as it is simpler to modify its position with matrix multiplication.
On its own this would imply the fourth element should ...
2
votes
3answers
375 views
Find new position of rotated by 10 degrees line
I have a line that goes to x (x1) of 300, and then I rotate the line by -10 degrees. How can I get the new x (x0) of the rotated line?
Here's a picture to show what I mean:
Are there any books ...
1
vote
1answer
410 views
How to form a concave shape out of convex shapes? [closed]
I'm trying to get around the rule of only being able to form convex shapes in the SFML C++ library.
To do this I'm planning on testing given vertices, and if concave,
splitting the vertices ...
0
votes
2answers
881 views
my SFML sprite Move() function: FeedBack?
Hey so i'm making a pong game with SFML and in the process made a function that takes a Time, Speed, Angle of movement, buffer for the movement on the X axis, and buffer for the movement on the Y ...
5
votes
2answers
962 views
top down game - checking, drawing enemy's line of sight area with obstacles
Examples of what i'm going to need:
I'm using cocos2d to draw a CCTMXTiledMap, on those tiles i'll have to draw the LOS cone.
How would i test if the player is within that cone, taking obstacles ...
3
votes
2answers
6k views
Rotate vector by matrix?
If I have a Vector, say (1,1), how can I rotate it around the origin (0,0)?
I'm working in XNA if that helps.
9
votes
2answers
1k views
Arc Length of Bezier Curves
I'm not sure if this is more of a math.stackexchange.com (or physics??) question, but here it is:
How can I find out the distance traveled by a Bezier Curve?
For example, the distance traveled by a ...
1
vote
2answers
293 views
Anyone have experiences using Geometric Algebra
I'm working through Geometric Algebra for Computer Science, and the subject does give a clearer of picture of things like quaternions and complex numbers.
I can definitely see how GA could be ...