u/ALX13-95

What is a proper way to model a low-poly computer keyboard?

Hi, I wanna add a keyboard to my model, but I think modelling each key will give me an excessive amount of triangles, which I don't wan to. What can I do in this case? Should it be just a rectangle with normal map that gives a feeling of keys? Thank you in advance

reddit.com
u/ALX13-95 — 3 days ago

Hi, so I just happened to see that my TV had unnecessary faces that won't be seen anyways, so I deleted them. Now I got myself in the issue where I'm not sure how to properly connect vertex correctly to fill these holes properly, keeping the box shape. Can someone help me, please?

Just because on 1st screenshot the issue could be badly seen, I decided to also attach a stretched version so you could better see the gaps

u/ALX13-95 — 13 days ago

Hello, I'm new to C programming and don't understand most of the stuff, but what I did seemed to be easy.

I have this structure for the library:

├── librarytest
│   └── lib
│       ├── hello.c
│       ├── hello.h
│       └── hello.o

Code for hello.c:

#include <stdio.h>
#include "hello.h"

void hello() {
    printf("Hello World\n");
}

Code for hello.h:

#ifndef HELLO_H
#define HELLO_H
void hello();
#endif

Then I compile it that way:

gcc -c -fPIC lib/hello.c -o lib/hello.o
gcc -shared -o liblibrarytest.so lib/hello.o

But, when I add it into a different project with this structure:

├── hello.h
├── lib
│   └── liblibrarytest.so
└── main.c

That has this code for main.c:

#include "hello.h"

int main()
{
    hello();
    return 0;
}

And compile it with this command

gcc main.c -L. -lliblibrarytest -o test

it doesn't seem to compile, because of this error

/usr/bin/ld: cannot find -lliblibrarytest: No such file or directory
collect2: error: ld returned 1 exit status

I genuinely don't understand what I done wrong and wish for your help. Thank you in advance

UPD: Thank you, szank for telling me where I need to look at. Command bellow solved my issue.

gcc -o prog main.c -Wl,-rpath=./lib/ -L./lib/ -llibrarytest
reddit.com
u/ALX13-95 — 16 days ago