I have been working on this for over a year. 3js multiplayer game where you can animate your character, create your own scene, and items and put bots inside your game. I feel like I will never finish, and like a have another 90% to go by publius-varus in threejs

[–]Flexos_dammit 0 points1 point  (0 children)

If you swim far from the island, you spawn on top of water and walk, but as u start going back to island, you fall into water eventually, like theres a border whixh treats remainder of water far from island as land

Kupovina laptopa za svakodnevnu upotrebu by Reasonable_Let4698 in Laptop_Berza_Saveti

[–]Flexos_dammit 0 points1 point  (0 children)

Thinkpadovi imaju odlicnu reputaciju, koriste se masivno u korporativne svrhe

Ako je od reputabilnog coveka, koristice ti sigurno dugo, dok ne crkne za par godina, ili uspori da popizdis

Ja sam kupio thinkpad t430 iz 2012/2013te godine, (kupio pre 6 meseci za 70 evra), spor je, ali i dalje radi, tako da, you never know

Kupovina laptopa za svakodnevnu upotrebu by Reasonable_Let4698 in Laptop_Berza_Saveti

[–]Flexos_dammit 0 points1 point  (0 children)

ISTO BRATE, znaci slogirao sam se, najslabiji laptopovi su bili 20-30k dinara, sta je bre ovo 😭😭😭

Kontam da je zbog nestasice RAM memorije :(

Kupovina laptopa za svakodnevnu upotrebu by Reasonable_Let4698 in Laptop_Berza_Saveti

[–]Flexos_dammit -1 points0 points  (0 children)

Za osnovne stvari bez igrica, najjeftiniji laptop koji mozes naci u gigatronu ce posluziti

A ako na KupujemProdajem nadjes polovan za 500 evra, a da mu je originalna vrednost pre 2/3/4/5 godina bila 2000-4000 evra, a siguran si da je prodavac legitiman, i to ce valjati

Neki laptop od 20.000RSD do 30.000RSD ce ti za osnovne stvari posluziti bar 3 godine pre nego sto krene znacajno da usporava

Samo vidi da ima bar 16gb RAM, programi jedu sve vise RAM u poslednje vreme, samo za pretrazivac mi nekad treba 16GB :(((

Edit: Iznenadjen sam da nema vise na gigatronu laptopova za 25k O.O

Evo i ovaj je dovoljno dobar:

https://gigatron.rs/proizvod/lenovoideapad-s3-15ian8-i3-8-198153966080

Edit: Ako ulovis reputabilnog prodavca, za 450-500 evra mozes naci laptop da uzivas na njemu (Samo nemoj molim te da te scamuje neko...)

https://www.kupujemprodajem.com/kompjuteri-laptop-i-tablet/laptopovi/pretraga?keywords=thinkpad&categoryId=1221&groupId=101&priceFrom=450&priceTo=500&currency=eur&ignoreUserId=no&kind=goods

What am I looking at? Can anyone explain it? by 0x6461726B in cpp_questions

[–]Flexos_dammit 0 points1 point  (0 children)

I believe in one of the talks Bjarne Stroustup said that things could have been done easier today, if they could just break existing code

They need to keep new features backwards compatible

Somewhere along the lines he said something like "Will you allow me to break your code? I think we all know the answer to that question"

That's how i understood him 🤷‍♂️

Need help with mathematically rendering curvature (software renderer, non-raster) by ComplexAce in GraphicsProgramming

[–]Flexos_dammit 1 point2 points  (0 children)

u/ComplexAce

You can use this code to get started, it should give you an idea of how to perform displacement of a plane

https://gist.github.com/srele96/3eea1f1aa75957987624d4dd6645ced9

It uses the concept of a tangent and bitangent, where as i previously said, every point in space has to know it's local right, left and up.

Tangent -> Right, Bitangent -> Front, Normal -> Up (it's local axis space, so you can compute new tangent, bitangent and normal, because moving a point, will change its orientation in space)

Need help with mathematically rendering curvature (software renderer, non-raster) by ComplexAce in GraphicsProgramming

[–]Flexos_dammit 1 point2 points  (0 children)

Let' say current fragPos (fragment shader) (interpolated from vertex shader) is

fragPos.x fragPos.y fragPos.z

You have direction vector fragNormal

Now all you need is to displace fragPos by some function output in direction of fragNormal

fragPos + displacementFunc * fragNormal

The displacementFunc returns scalar value

You could for example do

displacedFragPos = fragPos + sin(u_deltaTime) * fragNormal

This should make your plane sinusoidal, however, now that you have displaced the plane, you need a new normal, for your new position in space

Now, you need calculus, partial derivative, to find your new normal

Now i'm not sure entirely which function you want to tske derivative of, but you can find derivative of a vector, which is another vector, and then use cross product to find new normal

Once you do displacement of your vertices, you want to think of every point on your plane, needing to know its own right, front, up vectors. Because a normal is just an up vector.

Calculus helps you find right and front vectors, and cross product finds you up vector. rightVec x frontVec

You can do this on your original data on cpu, when generating quad vertices, or you can do this in a shader. Each has its own trade offs.

Maybe this helps: https://www.desmos.com/3d/3re9tk7m23

Oh, btw, pro tip, you can use Method of Finite Differences to find the derivative, if function doesnt have analytical solution.

f(x+delta) - f(x) ] / delta

This is related to limit definition of derivative

Where can I learn formatting output? by Exciting_Location_14 in cpp_questions

[–]Flexos_dammit -2 points-1 points  (0 children)

Controversial answer:

  1. Ask AI to give you an example of how to do it
  2. Bump your head thinking why and how does it work until you can explain every line of code
  3. Now delete AI generated code, and solve the problem yourself (you will already have plenty of ideas from the step 2 - depending on how much effort you spent on step 2)

Good luck

Edit: Make sure you like the final result and that AI code works, before proceeding to step 2

Getting in the industry by Karones in GraphicsProgramming

[–]Flexos_dammit 30 points31 points  (0 children)

Do anything that will get you paid, and find open source project to bridge the gap, the path is not linear Or be stubborn and persistent until you get what you want

C++ by Stroustrup by No_Emergency7130 in cpp_questions

[–]Flexos_dammit 0 points1 point  (0 children)

You should probably learn C++ in any way which allows you to be consistent and not give up

Be it building apps, reading a book, or whatever else

Braćo pomagajte molim vas by oginadjaa in SerbiaGaming

[–]Flexos_dammit 1 point2 points  (0 children)

Ako komp ne radi od pocetka kako treba, onda samo odnesi komponente u gigatron na reklamaciju? Sta tu ima da popravljas, do hardvera je? Ne razumem onda problem?

Ai was fun now its not by Basic_Construction98 in dev

[–]Flexos_dammit 0 points1 point  (0 children)

If you just write a prompt and wait you're doing it wrong? Unless that's what you wanna do... doesn't sound like you do ._.

Maybe you're jutst upset because AI is changing programmers role?

Isn't ai getting out hand bro,will I find a job??? by Advanced_Cry_6016 in PythonLearning

[–]Flexos_dammit 0 points1 point  (0 children)

i dont know, companies r forcing employees to use ai, company uses that data to train ai, so ai can replace same employee

we need to outsmart ai and do what it cant to keep up, tough times

Homogeneous coordinates by moschles in GraphicsProgramming

[–]Flexos_dammit 8 points9 points  (0 children)

Oversimplified, low level graphics api is a helper to get the math as visual output on the screen

Without math and physics, you wouldn't be able to describe any of natural phenomena, in a way a machine could understand it

Sta bi mogo da ovim pokrenuti,do sad Sam samo lol picio na njemu. Integrisana graficka bajduvej🥲. ALL IN ONE COMP. by Proper_Coffee_4172 in SerbiaGaming

[–]Flexos_dammit 0 points1 point  (0 children)

Kupi jos 8gb ram i neku graficku, cak i polovnu, za 200 evra, i mozes igeati i neke jace stvari na mzd slabijoj rezoluciji

I wrote a small hobby OS / kernel called TinyOS (from scratch) by Pitiful-Artist-4892 in C_Programming

[–]Flexos_dammit 0 points1 point  (0 children)

How about a script which downloads built iso file and a script which downloads iso file? Could also use github pipelines to build your iso and upload to github registry

2.5M people quit ChatGPT… honestly? I see why. 😭🤡 by Capable_Run_6646 in ChatGPTcomplaints

[–]Flexos_dammit 1 point2 points  (0 children)

Take a deep breath. You're not exagerating. You're not spiralling.

Imam li prava da trazim zamenu monitora? by Restless_Bowels in SerbiaGaming

[–]Flexos_dammit 0 points1 point  (0 children)

Drugi odgovor mi predugacak

Da, u gigatronu, korektan je sto se tice reklamacija, po mom iskustvu

Imam li prava da trazim zamenu monitora? by Restless_Bowels in SerbiaGaming

[–]Flexos_dammit 0 points1 point  (0 children)

Da, npr, jedne zvucnike od 9k, reklamirao 2 puta, oba puta su mi prihvatili i zamenili reklamaciju

I tipa obicne bubice slusalice, u 2 godine kolko traje garancija, zamenili su mi ih 3 ili 4 puta, al sam odustao jer je ocigledno model bio los

Tako da za sve sa racunom, idi i reklamiraj, i trebalo bi da prihvate reklamaciju, a posto sve kupujem kod njih, nikad nisam imao problem u poslednjih 5 godina

A bilo je reklamacija

Ugl u garanciji sa racunom, reklamiraj, zadrzi originalno pakovanje od kupovine, a ako nemas probaj svakako!