Categories
Development Game Creation

Constructing a 3d model with animations from image/video data with machine learning [closed]

Is there a method/program to construct a 3d model of a person – a model with that person’s face and physique – preferably with an assorted set of animations such as walking, talking etc., given as input a diverse set of images/videos of them from different angles and in different poses? Such a program could […]

Categories
Development Game Creation

OpenGL obj loader doesn’t work

I made my own obj loader,i tried other’s obj loader,but nothing works. Here’s my obj loader: using namespace std; vector caricaobj(const char* namepath, vector &fvertex, vector &indicies) { vector <float> vertex; vector <float> texcoord; vector <float> normal; float x, y, z; string s; string c; ifstream f(namepath); if (f.is_open()) { getline(f, s); getline(f, s); while […]

Categories
Development Game Creation

OpenGL obj loader doesn’t work

I made my own obj loader,i tried other’s obj loader,but nothing works. Here’s my obj loader: using namespace std; vector caricaobj(const char* namepath, vector &fvertex, vector &indicies) { vector <float> vertex; vector <float> texcoord; vector <float> normal; float x, y, z; string s; string c; ifstream f(namepath); if (f.is_open()) { getline(f, s); getline(f, s); while […]

Categories
Development Game Creation

OpenGL obj loader doesn’t work

I made my own obj loader,i tried other’s obj loader,but nothing works. Here’s my obj loader: using namespace std; vector caricaobj(const char* namepath, vector &fvertex, vector &indicies) { vector <float> vertex; vector <float> texcoord; vector <float> normal; float x, y, z; string s; string c; ifstream f(namepath); if (f.is_open()) { getline(f, s); getline(f, s); while […]

Categories
Development Game Creation

Help needed in getting the correct hit position a raycast hits a sphere in Unity

I’m trying to get the actual position a raycast from a controller hit’s a sphere gameobject. The raycast is cast from the controller (gear vr controller) out in the forward direction when the trigger is pressed, but when I test the value of the hit.point, I get varying values depending on what sphere I hit. […]

Categories
Development Game Creation

How to implement Native Android libraries to detect touch within a second in a 2×2 grid layout?

Screen Elements; TextView shows game score Rest of the screen is divided into 4 equal colored rectangle views Goal Per second any of those 4 rectangle views will change its color to gray the gray color will remain for 1 whole second after 1 second the gray rectangle will revert to its original color and […]

Categories
Development Game Creation

How to implement Native Android libraries to detect touch within a second in a 2×2 grid layout?

Screen Elements; TextView shows game score Rest of the screen is divided into 4 equal colored rectangle views Goal Per second any of those 4 rectangle views will change its color to gray the gray color will remain for 1 whole second after 1 second the gray rectangle will revert to its original color and […]

Categories
Development Game Creation

How to implement Native Android libraries to detect touch within a second in a 2×2 grid layout?

Screen Elements; TextView shows game score Rest of the screen is divided into 4 equal colored rectangle views Goal Per second any of those 4 rectangle views will change its color to gray the gray color will remain for 1 whole second after 1 second the gray rectangle will revert to its original color and […]

Categories
Development Game Creation

UE4. How to create a reference to the physical materialin in C++

Oftenly, when we want to assign asset to the particular component in C++ we write code like that: .h UPROPERTY(BlueprintReadWrite) UStaticMeshComponent* Body = nullptr; .cpp Body = CreateDefaultSubobject<UStaticMeshComponent>(“Mesh Component”); // find mesh asset auto MeshForBody = ConstructorHelpers::FObjectFinder<UStaticMesh>(TEXT (“StaticMesh’/Game/StarterContent/Shapes/Shape_Sphere.Shape_Sphere'”)); if (MeshForBody.Object != nullptr) {// if asset is finded -> set to the component Body->SetStaticMesh(MeshForBody.Object); } Question: […]

Categories
Development Game Creation

Basic pseudocode to create a rope physics

I am trying to simulate the physics of a 2D hanging rope, consistent of a series of n-links. It could be a series of four pendulums. I just want some movement of the rope and the ability to contact with the ground. I was inspired by this question and this one. I would like to […]