Most Popular
1500 questions
4
votes
2 answers
How do I create my own bitmap using a text editor?
I'm a Computer Science student who's been getting into bitmaps & pixmaps recently. I clearly understand what pixmaps do. A pixmap, as I understand, defines each pixel individually. So, maybe I could write a pixmap filelike this:
255,0,0 0,255,0…
moonman239
- 141
- 1
- 4
4
votes
2 answers
How to determine the object-to-world matrix
I want to ray trace a triangular mesh that I load from a file. The vertices' coordinates are expressed in the reference frame associated with the object (i.e the mesh) and I don't know the object-to-world matrix. Is there a way to calculate this…
S.E.K.
- 141
- 1
- 5
4
votes
1 answer
GDDR5 vs. DDR3 for learning GPU programming on a limited budget?
[Please (kindly) let me know if this is not the place for this question]
I'm hoping to learn about GPU programming, but as a college student, I've a quite limited budget. I'm wondering whether I should buy a modestly more expensive GPU that uses…
Ben Sandeen
- 153
- 5
4
votes
2 answers
How enlarge parts of a video like snapchat lens filter
I writing the this video process app which requires the each video frame to be processed such that parts of the video are enlarged. As a reference, one of the snapchat lens filter enlarges the eyes of a person in the video. This is the exact effect…
crab oz
- 143
- 4
4
votes
1 answer
Shadow appears to be too dark in my ray tracer
I'm currently working working on a unbiased path tracer. To test how accurate it is. I created a scene in my path tracer and LuxRender then compare the rendered image. I found that the shadow in the image that my path tracer rendered is too dark.…
Mary Chang
- 651
- 4
- 14
4
votes
1 answer
Shader won't work
I have managed to implement a garoud shader with specular lighting efects in Processing 3.0 . Now I am trying with a fragment Phong shader but cannot make it work. I can´t find where is the error. It should just implent the phong illumination model,…
eneko
- 185
- 3
4
votes
1 answer
Spine. What is the name of the process?
https://www.youtube.com/watch?v=twUz99ek5do&list=WL&index=5
There is a process from 1:51, where the guy start making polygons around the bodyparts. I think this is this part is where (with later transformations) you can make a single draw like a 3D…
Gabor
- 41
- 1
4
votes
2 answers
OpenGL vertex color
Why do I need to specify the same name for color input in fragment shader and output color from vertex shader?
//Vertex shader
out vec3 vertex_color;
void main()
{
vertex_color=vec3(1.0,0.0,0.0);
}
//Fragment shader
in vec3 vertex_color;
out…
videogamechef
- 821
- 1
- 6
- 19
4
votes
1 answer
Multiple light pixel Shader in GLSL
I have wirtten a fragment shader that works just fine with a single light. Now I am trying to adpat it to work with 8 lights, the implement it in Processing. Clearly I am doing something wrong in the math and I cannot see what it is... I have read…
eneko
- 185
- 3
4
votes
1 answer
Ray tracing pseudocode shadow
I don't understand the if (depth > MAX) return Black part. Does it have something to do with shadows, because in other algorithms they shoot a shadow ray towards the light source to check for shadows but they don't have it here?
user2976568
- 157
- 4
4
votes
1 answer
Angle between two points in Cartesian coordinate system C++
I'm trying to rotate a rectangle so that it faces another rectangle in a spiral.
Im using the Bullet pyhics library and freeglut for the 3d application, for anyone interested https://github.com/damorton/bullet-dominos
float x = 0;
float z =…
David
- 303
- 2
- 9
4
votes
1 answer
How to use GetViewProjMatrix().TransformVector(LineDirection) in UE4?
I try to project a 3D vector (a direction, not a position) in screen space, but it does not return satisfying results:
FVector LineDirectionOnScreen =
EdMode->ViewMatrices.GetViewProjMatrix().TransformVector(LineDirection);
FVector2D…
arthur.sw
- 377
- 2
- 14
4
votes
0 answers
Distributed Mesh Processing with Hadoop
Is there a library to do mesh processing (slicing, repairing, etc.) on big models in a distributed way using Hadoop?
user2144
- 41
- 1
4
votes
1 answer
How is an ICC profile embedded or built into an image?
If I were to analyze or change an ICC profile embedded in an image, how should I proceed?
I'd also be glad to understand how an "end-user" is able to create these with a tristimulus colorimeter or a spectrophotometer and if/how this new profile can…
Armfoot
- 615
- 1
- 6
- 14
4
votes
0 answers
How does function for mouse in glutMouseFunc(mouse) work in openGL?
I have been trying to implement the following functionality in my code:
There are 2 flags editMode and deleteMode, both set to zero.
with the help of keys function in glutKeyBoardFunc(keys) the user can press keys ( 'c' and 'd' respectively) to set…
shane
- 141
- 3