python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
OpenGL Mesh Mesh splitting up in triangles When trying to apply modification by addting normal*factor
I have a basic icosphere which i exported from blender with normals as obj.
Here is what i am doing
mesh->vert[i].position = mesh->vert[i].position + noise(mesh->vert[i].position) * mesh->...
Jaysmito Mukherjee
Votes: 0
Answers: 0
Bezier curve... adding normals (in 3D)
I have a bezier curve class. Each point on the curve is defined thus:
struct bpoint
{
vector3D position;
vector3D controlpoint_in;
vector3d controlpoint_out;
};
To retrieve a point on th...

KiraHoneybee
Votes: 0
Answers: 1
Wrong normal for triangles
I am making a 3D game using SFML. I want to use normals to check if the triangle need to be draw in a terrain (triangle) mesh.Here is my code:
vec3d line1, line2, normal;
line1.x = terrain.tris[i].p[0...
Eddie38
Votes: 0
Answers: 0