erichlof / PathTracedPong

A real-time path traced game for desktop and mobile using WebGL. Click to Play: https://erichlof.github.io/PathTracedPong/Path_Traced_Pong.html
Creative Commons Zero v1.0 Universal
13 stars 5 forks source link

how to install this on linux? #1

Open WilliamWangPeng opened 3 years ago

WilliamWangPeng commented 3 years ago

HI dear author,
Could you show the detailed steps building on linux?

thank you
best regards
William

erichlof commented 3 years ago

Hello @WilliamWangPeng

Unfortunately I am not a Linux user and I don't have much knowledge of Linux installation techniques.

My first advice would be to ask on a Linux forum on the web. I imagine that there are many such forums where people answer questions related to Linux. I've heard that Linux experts are very friendly and patient on these forums and will gladly help you for your specific installation of Linux.

However, that being said, if you can install a basic web page / server on your machine, you should have no problems installing my projects: PathTracedPong, Anti-Gravity Pool, The Sentinel: 2nd Look, and even my largest project, Threejs-PathTracing-Renderer. Each project, including this Pong game here on this repo, has all the files you need. I made sure to include every bit of code that is needed to run the complete projects/games. There is nothing to download, nothing to install, and no package dependencies. Everything is here all in one place. The only thing that you would need to run it on your own machine, regardless if it's Linux, Windows, or Mac, would be a simple, small server which runs in the background and serves up the files and images when you navigate to the HTML webpage that contains my game.

If you have a code editor like Visual Studio Code, you can easily install with 2 clicks a plug-in called LiveServer. Once you click GoLive (fancy word for Run), it will automatically start a server in the background and when you navigate to my main html page that has the game, it will grab everything it needs automatically off your own computer where the js and glsl files are stored. Just make sure you copy my files and keep the paths and folders in the same structure that I have created, so that the HTML page can locate all the necessary js and glsl files as well as texture images.

This seemingly basic step of running a simple server on my own machine confused me at first back when I started developing web applications. But once I found out that you just needed a small server running in the background on your own computer, it has become a trivial step that I don't even think about much anymore.

Hope this helps. Let me know if you have any other questions. I will try to help as much as I can, even though I'm mainly on Windows systems.

-Erixh