Please sign in to access this page

Physics Simulation Competition

Physics Simulation Competition Used AI

35 devlogs
153h 28m
•  Ship certified
Created by Lavarite

A website that allows you to learn and try out different kinds of optics simulations.

Timeline

Ship 1

0 payouts of shell 0 shells

Lavarite

8 days ago

Lavarite Covers 35 devlogs and 153h 28m

Reformatted some code and written the readme with some help from AI. Will now ship the first version, will be polishing and reshipping later!
THANK YOU FOR THIS JOURNEY!

Update attachment

I now am looking for ways to calculate the far and near points of the eye, does not seem to be easy to do, since the internet shows everything, but the formula...

Update attachment

Honestly, I give up with the 3d implementation, I think blur is a bit too muc hfor me atm, so will be resorting to something else. Crazy right? I was crazy once, and they put me in a room...
Anyway! I am ready to go nuclear with docker.

Update attachment

Okay, rushed through this, you can see the results on bpho.vasylevskyi.net/Solutions
I was watching an anime parallel to this, do not recommend, wastes to much time)

Update attachment

Well, well, well. Only question 9 remains. It will need quite a lot of graphing I presume, so it will take me a bit tomorrow. Hope you all had a good weekend)

Update attachment

Done for today, done 4/9 tasks, will be rechecking tomorrow.
Eugene out.

Update attachment

I've finished two tasks so far. LaTeX looks great, but it’s not easy to use right from the get-go.

Update attachment

Well, long a couple of hours have passes, shame that Hackatime does not count the amount of time you try to set up linux system correctly.
My RPI overheate, was forced to rebox my system to this Beeling box. Running now, 5 hours later :)

Update attachment

Just typing up some stuff for the solutions. You can see the problems over at https://bpho.vasylevskyi.net/Problems if you are interested in what those are :)
The examiners want us to use
LaTeX, so I am using an extension in IntelliJ Idea

Update attachment

Okay, Figured out the pdfs now. When not on mobile, I just use the regular iframe. Otherwise, I just use the google docs viewer and pass in the pdf file that way.

Update attachment

I have been working on trying to add the pdf of the solution of some problems. Did not know it was that problematic, (especially the bookmarks), my bad.

Update attachment

Together with whatever that was, I added some depth of field based on where the mouse pointer is looking at, look nice, but needs more work.

Update attachment

Done whatever this is. Do not question, I need sleep.

Update attachment

The devlogs are a bit small, so decided to split this one in 2.
In these 10 hours I rewrote the vision task to use more optimised R3F instead of js three.js, no more memory leakage when reloading the page WOHO!

Update attachment

TLDR: Just compress you 3d models with @gltf-transform/cli
Was desperately looking for ways to optimise my city model - it was 60mb (Now 23mb!) at the start. Make a lot of dumb decisions, since the model was never compressed, I was looking for faults in three js rather than the model itself.
Bless donmccurdy over at donmccurdy.com for helping me find a solution to this
if anyone needs to have their large models optimised look at https://discourse.threejs.org/t/gltfloader-slow-to-load-glb-file/52012/2

Update attachment

Tried different kinds of blurring today. Right now I use fragment and vertex shaders for that.
Next up is blur based on distance and vision impairment

Update attachment

Happy 100 hours!
Picking up the pace now. Reworked the shadows and the lighting/reflections.
Re-exported the model into .glb, and cut down the size to 50mb down from 80mb or so. Loading time improved by about 40%.
If you see this, good night :P

Update attachment

Found a way to strip down my city model a bit, hope my PC does not violently combust into flames :)

Update attachment

Well, the dev server went down for a while, so some progress was lost. Sleep is underrated anyway, so I have re-done the stuff lost (progress lost from approx. the point of the start of the city stuff)
The other bugs are mostly fixed, will test those now.

Update attachment

Well, this was a waste of time... Currently I use a gltf model for my city, but it comes out too big, and takes a while to load. As I restrict the player movement to 50 units in each direction, I tried to delete some of the structures in the file.
Is there anything that can be done about this? Find out in the next episode...

Update attachment

Lighting and shadows are done!
Next up is optimisation...

Update attachment

In the process of fixing some minor bugs as pointed out by my friend. City is doing fairly nice, new update tomorrow.

Update attachment

Started doing vision simulation task, step 1 today was to load in a model of a city, which was (kind of) successful!

Update attachment

Massive dubs today!
Finally finished the anamorphic image task! Now, when you put a reflective cylinder in the circle, the reflection forms an image. (Don't mind the apple peeler that is the only cylinder that I had)
Now to make all of the code look nice and add some explanation to the pages!

Update attachment

Well, come progress is here, now it at least resembles a cat)
Made some progress with vision simulation now. Will find a good 3d map for it in the future, to make it look nicer.

Update attachment

Not the best pace of progress here.
This is supposed to be a cat, if you are not aware XD

Update attachment

Finished the graphs for the task 12 refraction in the prism. If anyone is reading this, feel free to check it out on the demo web page!
Will start with the law of refraction and reflection now.
Some cooler stuff is coming, so won't leave you waiting)

To finish today, reused my grid component to create an interactive model of refraction of white light in a triangular prism.

Done quite a lot of work on the graphs (Recharts is so good!) for:
Task 1a — Crown-glass n(λ)
Task 1b — Water n(λ)
Task 2 — Thin-lens formula
Task 11 — Rainbow physics

Last devlog today
Done today:
- coordinate conversion
- proper picture sizing
Will start with rainbow physics tomorrow)
@HQ2000 - great idea, I just dont want to mix up the languages, since I will need interoperability on the page with the diagram, but tnx nonetheless!

Update attachment

Figured out a way to do it. I now just sample points on each side of the picture to form the final image. Triangles make it fun ig. So much time wasted though.

Update attachment

Tried interpolation, but js is quite slow, so only low quality images were produced, I probably found a way to do it, will try to find the outline and just stretch the image.

Update attachment
HQ2000 HQ2000 about 2 months ago
I know it's probably a bit late for this, but have thought about using WebAssembly? It's a Standard bytecode format for the web, you can Compile C/C++ or Rust to it. As you could imagine it's suited very well to take care of the computation-heavy stuff, but you need to have some (not much) javascript glue between itself and the wasm.

Doing image transformations at the moment ;)
Trying to generalise the process, my doing point mapping (x,y) -> (x1,y1)
Will try interpolation next!

Update attachment

Wow this has taken me a long time!
Here you can see my first struggles to set up a docker container (because well of course it has to be one)

Update attachment

Well, this is the first post of this project guys!
I have started doing this project for the BPhO Computational challenge a while ago, just discovered these platforms.
I decided to go with React, I love it, worked with it before.
More to come, progress update coming in a minute!

Update attachment