HNHacker News
TopNewBestAskShowJobs

pantelisk

1,143 karma · joined September 6, 2019

Say hi to me @pkalogiros on twitter/x.

In the sidelines buiding open-source: - https://audiomass.co (a full-blown audio editor in just 60kb of frontend js)

- https://github.com/bldbrne-vr/bldbrne-vr a full re-imagination of Bloodborne as a VR game

- https://pantel.is/projects/css3d/ (an old timey 3d adventure rendered entirely in CSS)

submissionscomments
pantelisk··on Using const/let instead of var can make JavaScript code run 10× slower in Webkit
It would blow your mind if you saw how much slower querySelector is compared to old school getElementByid, getElementsByClassName etc.

We tend to think that newer is better and faster, but it's also wise to think that old apis had to be fast on old hardware. Hardware that is not the target of new APIs.

pantelisk··on Object Detection at 1840 FPS with TorchScript, TensorRT and DeepStream
Cloud service that needs to serve multiple requests or process many video streams in parallel. (faster performance = less hardware required, bigger scale and potentially improve end user experience - save from their data being on the cloud of course).

On device (eg mobile phone) processing with battery usage that respects the user. Older hardware/models inclusion as well.

Of course the above aren't cases were the stream itself is 100+fps, but more of broader general benefits. For a 100+ fps stream.. well there are many things that go fast, imagine you wanted a robot that tracks or catches a fly before it takes off. Flies have a reaction time of 5ms (200fps), that's why it's hard for us to catch! Expand and apply the same concept to other things (that are fast, or happen very quickly) now...

pantelisk··on iPhone 12 and iPhone 12 Pro
sandals and socks. high fashion uses multiple sources. Sometimes its inspired by nature, sometimes scifi, sometimes its inspired by traditional internet cringe!

Interesting pic. I think it tries to show the hdr, dynamic rage of shadows + cleanliness even though the person is in motion.

pantelisk··on The Serverless Revolution Has Stalled
"docker-compose up" and your OS, codebase, dependecies and data is up and running locally in the exposed local port of your preference. You can even split parts in different layers to mimic a services/cross-region logic.

Of course this won't fix the fact that you have a lambda behind api gateway that does some heic->jpg conversion and can't be hit outside the DMZ, or some esoteric SQS queue that you can't mimmic locally - but it should get you almost there.

pantelisk··on Ask HN: What is your favorite motto?
"You can only change yourself" (internet pop wisdom)

“If you want to build a ship, don’t drum up the men to gather wood, divide the work, and give orders. Instead, teach them to yearn for the vast and endless sea.” - Antoine de Saint-Exupéry

pantelisk··on A word for a value between 0 and 1 (inclusive)
"Normalized from 0 to 1" is what I say as a non-native english speaker
pantelisk··on Pinterest pays $89.5M to terminate San Francisco office lease
If they did a good job to ensure a sense of safety (making sure everything is cleaned and sanitized all the time etc) yes.

The fear I have going back to the office is people just touching stuff, door handles, glassware in the kitchen, etc. Being on top of every tiny violation is a new concept and a huge lift for any small/random company. So who knows, maybe this could be a good opportunity for wework.

pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
You can move by swiping your finger within the purple-like circle at the right part of the screen. That circle simulates a joystick for character movement. And you can look around by swiping anywhere else on the screen!
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
maybe there is one more item you can pick up :)
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
it should be possible - you can check how it is rendered on mobile portrait and landscape modes (which is basically fullscreen). However, more intricate sizing might be hard to achieve since I 'm using pixel values so some things will probably look terrible in higher res. (this isn't the same as upscaling res let's say in canvas or webgl - it would be more like viewing an old website in a newer bigger monitor! But in theory it can be improved :) )
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Here - https://pantel.is/projects/css3d/indexdiv.html (no option, but I force set the first level to use div tags instead of img. Curious if this fixes the FF linux issue!)
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Woaah.. this never occurred to me. Thank you, for the suggestion. Didn't know about "KeyboardEvent.code". And of course.. arrowkeys, kinda ashamed I didn't think of that!
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
you can click on the textbox, and it will immediately fill the whole sentence and move on to the next one! Might be frustrating to click so much, but I wanted to recreate old timey videogame pacing
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
hehehe, https://pantelis.s3-us-west-2.amazonaws.com/0/css3d/readme/b...

It's billboarding! (and the css lightsources are duplicated in the webgl world, so that the worm is properly shaded)

pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Oooh, I think I know why. First room uses img tags for the walls. Image tags (and canvas tags) do not play well in 3D contexts. For example they ignore depth sorting and rely on z-index. So you cannot properly depth sort them. Now you might wonder why I picked img tags for lvl1, and then divs for lvl2. Profiling showed reduced mem usage for img tags and I thought I 'd take advantage of that optimization. (premature optimization and all that I guess!)
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Nope, threejs is used for a very specific thing at the end of the second level. There is actually nothing 3D-related webgl in it (except for a surprise at the end)
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Hello HackerNews! Super excited to read all your comments (last time I was here with audiomass.co).

This is meant to be an experiment of rendering a full 3D scene in html/css. Of course there is a ton of (vanilla) JS to handle pretty much everything - but the main point is to explore what good ol' divs can do in a 3D context.

It might seem a bit off, because I am not a good artist/world builder, but it contains various features such as lights and shadows calculation (rendered on divs though background images + blend modes -- try clicking on the candle). Billboarding and sprite effects, geometry culling etc, as well as scalene triangle computation (which allows us to convert actual 3d models to html elements - https://pantelis.s3-us-west-2.amazonaws.com/0/css3d/readme/t...)

-----

If this interests you, I am giving a presentation on how it is built and lessons learnt this coming Wednesday (2nd of September) at CascadiaJS 2020 ( https://2020.cascadiajs.com/ ), among a line up of awesome speakers!

pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Performance for simple things is adequate, but relying on 2-point rectangles (origin(x,y), dimensions(width,height)) for geometry is extremely cumbersome. Also everything is hack piled on top of hack (for example there is no concept of a camera, the whole world moves around you instead to simulate the camera effect!).

So... webgl is still the way! This is meant to be an experiment to show what css/html is capable of!

pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Oh... if you are referring to the second level (sewers) that's actually on purpose, i have set max draw distance (geometry culling) to improve performance on mobile. It is configurable.
pantelisk··on Show HN: 3D first person game rendered in CSS/HTML
Yup, vanilla JS. Only the rendering is html/css. State, navigation etc, is all js.
pantelisk··on Show HN: Street View Simple – Explore Street View Data in a Browser
Oh yeah, I didn't mean to come off as judgemental or nitpicky. This is fantastic work! And this data can actually be pretty useful, let's say if somebody wanted to build a racing game based on street view, using the boundaries of the street for collisions etc. Too many fun possibilities!
pantelisk··on Show HN: Street View Simple – Explore Street View Data in a Browser
It is not proper pointclouds, but it is the data used by Street view to highlight if you are looking at a wall, or at a street. It is also used for transitions between one scene to another.

You can see it is very basic 90deg angle geometry, instead of actual pointclouds. Still pretty cool! https://imgur.com/a/EgC0RbN

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
Fair enough :) for cut/paste/copy it might definitely be a good option. Though what about control + S, should that prompt the export audio, or let the browser download the page?

Perhaps I should add support for the control key, but let other combinations were conflicts might arise. Getting good UX is a such fascinating topic.

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
It is a non-optimal choice, but I believe there is a very strong reason. Not competing with the browser's native functionality.

Some of the most horrible web experiences, occur because websites try to take control of native functions. For example "smooth" scrolling, or highjacking the back button, or trying to abuse the clipboard! Confusing the user, breaking navigation, making the page less accessible and in some cases breaking after X months when browser or OS behavior changes.

What I have now is unfortunately far from "good" and there is improvement and experimentation waiting to happen, but the straight forward approach is not much better either...

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
You can extract sections (as mp3 by selecting, and then File > Extract mp3 > current selection). Or File > Save Local Draft (and you can open the selection as a standalone audio project).

Being able to label things with markers and different colors though would be fantastic! It's in the plans, once a bit better audio handling of slices (eg cross-fading, mix-dragging etc) is added!

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
That's insane! I 'm actually working on a lite-daw for web, so this is extremely interesting to me. However I do not plan to go very far. My angle is that this should be a tool to experiment and try out things with minimal friction, then for any serious work, perhaps users can look into professional solutions. Perhaps also take advantage of the web's collaborative nature and have multiple users share a session!

There are decades of research, feedback loops and work put into tools such as FruityLoops, Cubase, ProTools etc, and the thought of reimplementing parts of it for web is such a daunting task.

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
Yes! Flac support is important, thank you for the suggestion. I would expect it to be already supported https://caniuse.com/#search=flac and I am just using web audio functions it should decode fine (but it's not). Maybe I am overzealously filtering for formats!

And performance is fine, but it can be so but soooo much better! Like just by adding sprinkling some wasm or asmjs in the "onaudioprocess" loops, to speed up the buffer traversing loops and escape the dreaded garbage collector!

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
Thank you for the suggestion! Unlicense does seem much better and their website has a valid SSL cert, unlike the wtfpl one... So, this is probably the one! Will update the repo later tonight! Cheers!
pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
Author again here! Now that this is finally sunsetting, I feel a bit more comfortable writing some things I 've learnt today!

- First of all, I am amazed at the suggestions and love this is getting. I have been dog fooding it by using it to quickly edit foley audio from a tascam hand-microphone device, in order to make some cheap sound effects for a game project I am working on. The point is, I thought I was aware of all bugs, and all areas of improvement, and I am humbled to have my mind opened and see how valuable outside perspectives are! It's so easy get tunnel vision and think you know best I guess.

- Secondly... as I said I wrote this in June 2018, and just... kept it... I guess I was afraid of sharing it to the world, perhaps the audio people would get mad at me for making mistakes with the audio api (like the fade in/fade out being linear). Perhaps the javascript people would make fun of me for just using Vanilla JS.

But if this is impressive in 2020, imagine how impressive it would have been back in 2018! So I guess my point is. Share your work! Do not be afraid to put it out there!

- If anyone is interested on how it is built, and how the interface complexities are managed, even though it is just plain old school JS that has the reputation of being notoriously difficult to maintain, I would be happy to make a write-up shortly, or perhaps give a talk on it.

- Third... (hopefully that is ok). If you like AudioMass, and like the way it is built and it performs, perhaps you might enjoy working together with me. We are doing cutting edge computer vision, and well.. some CRUD stuff too! My company is hiring (info in my profile). But please be advised that due to covid-19 things may take longer or may not be fully up to date.

PS. As for license, I will probably choose something like "wtfpl.net". if it can help you learn something, or build something, go ahead! If you noticed, the page doesn't have any tracking (I realy don't know how many visitors came (I also disabled nginx logs)). And of course no ads at all. I 'm just trying to build cool and useful stuff!

pantelisk··on AudioMass – free, open source, web-based Audio and Waveform editor
Right now no, but it would be very useful so i 'd like to add this, since you can use the keyboard to control the menu... (except well... opening it!). Any preferred key you 'd like this assigned to?
← PreviousPage 4 of 5Next →