Live data from Hacker News

My Room in 3D

my-room-in-3d.vercel.app

111–120 of 134 posts

Re: My Room in 3D

#111
post #2

His portfolio home page is incredible too: https://bruno-simon.com/ It's the website shown on the monitor in the room.

Wow, I've missed the times when websites were made to impress people.

Re: My Room in 3D

#112
post #92
post #49

It's certainly a good time to become a 3D graphics developer, or at least be proficient at it. WebGL simply works. The internet is fast enough to ship a lot of assets. Even phones can render tons of graphical elements. Mix in WASM and it's pretty much golden. The world-wide-web is the true VR.

I tried WebGL about a year ago, and it wasn't ready yet. It spun up CPU quite a bit, and was a different experience in terms of performance across browsers. Has this changed in the last year?

What do you mean you 'tried' WebGL? It's just OpenGL in the browser. As mentioned, it just works just like OpenGL/Vulkan/DirectX just works.

Now, various WebGL frameworks (Three.js, Babylon.js, etc...) are more performant or easier to use or whatever. Or you can compile native 3D platforms to wasm. Which did you try?

Re: My Room in 3D

#113
post #29
post #27

Earlier quoted context omitted.

Just a nit: the lighting outside is not a single directional source, unless you're in the Moon. There is sun, which is slightly yellowish (or orange to red at sunset), and there is sky light which is obviously bluish. Sun is directional, sky light is not. Sun is a light source far away, but sky is a light source all around the scene. The rest, well, can be done with a lot of bouncing, refraction, diffusion subsurface…

The blue light of the sky is technically the result of Rayleigh scattering of the sun through the atmosphere, which can be emulated (and often is these days! [0]), but fair; it's often cheaper and easier for an artist to model them separately. I was going for a classic physics demonstration to point out how simple sources can often result in beauty. [0] The classic is Naty Hoffman's 2002 work on atmospheric scatterin…

While technically true, this is not how most 3D animation software models light — even if it (roughly) models Rayleigh scattering in solids, like opal or ground glass.

In all realistic rendering software, skylight and sun (or other celestial bodies, like Moon) are modeled as separate sources of light, with different light characteristics.

Re: My Room in 3D

#114
post #95

Earlier quoted context omitted.

This is just wrong. The surgace of the sun is around 5700K and rhe emitted light follows the back body spectrum for that temperature. And that has a massive yellow peak. See https://en.m.wikipedia.org/wiki/File:EffectiveTemperature_30... for the data. This is measured outside the Earth's atmosphere. Rayleigh scattering does come into play, but it is way less important. As I said, human vision has a kind of adaptive w…

You see how the brain does white balancing quite clearly when working with LED lights optimised for salad, for example. The light has very little green in it and looks nearly pink. After a few minutes it looks less pink and nearly normal (depending on the lamps). Then go outside in daylight and everything suddenly look green, which takes a minute to go back to normal. The brain adds the green it perceives to be missi…

An even easier example is the typical home light which is very peach-tinted (at 2500K), as seen from outside/ But inside the light feels entirely normal white after a very short time.

Re: My Room in 3D

#115
post #83

Earlier quoted context omitted.

I dont think this is true. direct sunlight can be many shades of white. It differs in the morning and the evening and it is mostly yellow. The yellowness of the sunshine is a direct result of raleigh scattering and other atmospheric effects.the blue part of the spectrum that comes from the sun is scattered by the sky, making the sky blue. Taking away the blue makes the nonscattered sunlight yellowish. On photos of th…

Of course there are different shades of white, what I am saying is that the color of the sun during the day is what people most would classify as "white" and not as "yellow" if it the color was printed on a sheet of paper. If the sun color was actually yellow, people wouldn't be able to tell the difference between a white object and yellow object under the sun light (they would both appear yellow). And clearly they a…

Sunlight is wide-band (see "black body spectrum"). This is why a white object (that reflects all light equally) and a yellow object (which mostly reflects reds and greens) are discernible under such light, even under sunset light which is visibly yellow or orange. The sunset orange light still contains many other colors.

A yellow object and a white object would be not discernible under a very narrow-band yellow light, or a mix of two narrow-band red and green lights of right proportions. This is how LEDs and lasers emit light, but totally unlike hot objects (like Sun) or fluorescent lamps (like "natural light" LED lamps) emit light.

Re: My Room in 3D

#116
post #83

Earlier quoted context omitted.

I dont think this is true. direct sunlight can be many shades of white. It differs in the morning and the evening and it is mostly yellow. The yellowness of the sunshine is a direct result of raleigh scattering and other atmospheric effects.the blue part of the spectrum that comes from the sun is scattered by the sky, making the sky blue. Taking away the blue makes the nonscattered sunlight yellowish. On photos of th…

The fundamental yellowness of sunlight is not Rayleigh scattering, but the sun's natural black body spectrum. See my reply to the sibling comment.

There is another catch. Sun's surface is about 6000K. A light with such color temperature would be considered bluish by most people if they looked directly at a lamp with such a spectrum. Rayleigh scattering lowers it to 5600-5800K at noon time, but still most humans would call a moderately bright lamp of this color "bluish".

The eye has a built-in white balance correction, and it moves the white point towards longer waves as the brightness lowers. This is why a single 5600K lamp in a room makes bluish light, while 10 of the same lamps make it lit by bright white. Same, a single 2500K lamp in a room makes a calming sort-of-white light. but 10 such lamps make a unmistakably yellow light.

The sunlight outside at a cloudless summer noon is very bright (one usually even wants to wear sunglasses), so the sun looks white or yellowish, especially in contrast to the blue sky.

Re: My Room in 3D

#119
post #92
post #49

It's certainly a good time to become a 3D graphics developer, or at least be proficient at it. WebGL simply works. The internet is fast enough to ship a lot of assets. Even phones can render tons of graphical elements. Mix in WASM and it's pretty much golden. The world-wide-web is the true VR.

I tried WebGL about a year ago, and it wasn't ready yet. It spun up CPU quite a bit, and was a different experience in terms of performance across browsers. Has this changed in the last year?

I think just like all things on the world wide web, a majority of it will be implemented sub-par, perhaps even terribly. It's not so much WebGL that is the bottleneck as all the experimental implementations of it (guilty as charged here).

Those people like Mr Simon here who take the time optimize every last bit can indeed make it purr.

Everything on the web starts as a framework or some proprietary bundle of some kind, and if it proves it's merit, it may just get built into the W3C standards themselves.

We currently have a low level tech (webGL) in W3C, and libraries like three.js are providing the get-you-by to elevate it to average code legibility, but I think we are still a long way off from having 3D be a javascript-native ability for the average developer in a peformant implementation, at which point we could really expect this www-metaverse experience getting hyped every which where to blow the lid on this two dimensional web we're currently stuck in.

Re: My Room in 3D

#120
post #14

I recognize a fuckton of PHP elephants and an Ikea couch (or a 100% lookalike).

my first thought was Ikea too haha. Probably designed in software, built by robots, and then re-modeled by a human back into software.
Post reply on HN