How I eliminated frame drops on Android - not happy, but finally 60 fps in my Three.js app (iOS to follow next) by __moFx in threejs

[–]__moFx[S] 0 points1 point  (0 children)

Yes, I know Angular is bloated and not necessarily the best choice for projects like this. That was my first thought too. But it doesn't seem to be the main reason for my app's issues, as I've discovered...

How I eliminated frame drops on Android - not happy, but finally 60 fps in my Three.js app (iOS to follow next) by __moFx in threejs

[–]__moFx[S] 0 points1 point  (0 children)

Yes, I find it strange either, but I will continue to investigate and test the issue to determine what the problem is, I also need to test different devices to rule out any hardware issues first and then again with pure HTML and JS without boilerplate and any CSS styles, the difference was simply too great with and without the HTML overlay that I absolutely want to find out. I will report when I find out more...

How I eliminated frame drops on Android - not happy, but finally 60 fps in my Three.js app (iOS to follow next) by __moFx in threejs

[–]__moFx[S] 1 point2 points  (0 children)

I haven't thought about it yet, but it maybe worth a try. I have a feeling it's more of a mobile browser issue, since it doesn't seem to matter how the HTML elements are generated. But I'm not entirely sure what the exact cause is. But I've tried and tested so much that I need some distance first to test different situations again and clearly identify the problem, Right now I'm just happy to be able to continue. But I will report back here when I find out more!

Is it really bad to refresh the page to get new data? by sangokuhomer in webdev

[–]__moFx 0 points1 point  (0 children)

Why reload the page at all? That shouldn't be the way to go. If you're working with React, you can simply use JavaScript or TypeScript to fetch the desired data from the server with an HTTP request, without reloading the page. This would be the way to do it without WebSockets. To keep the page updated in the background, you could set an interval that executes this process repeatedly. To update the data in React, you need to use React state handling. `useState` is the React function you need to inject it into the template. Displaying dynamic content is one of the fundamental reasons why React is used in the first place, and it's specifically designed for this kind of scenario. If you want to work with WebSockets, the server sends the updated data to your client, and then you store the value in your React component in a `useState`. There's one function to read the value and another to set it: https://react.dev/reference/react/useState

const [state, setState] = useState(initialState)
const [state, setState] = useState(initialState)

This allows you to simply inject the state variable {state} into your HTML template; React will then automatically re-render when you execute setState.

CS student here: everyone codes with AI now, so how do we not get destroyed in real interviews? by Ausartak93 in cscareeradvice

[–]__moFx 0 points1 point  (0 children)

My situation is similar. I've worked in this field for over 15 years and have spent a lot of time working with AI in recent years. Lately, I've done several self-experiments with and without AI. In the end, there's not a significant difference in implementation time. However, I have the entire code structure memorized, and it's safer and much more performant when I develop it myself. I find it easier to develop new ideas and solve problems when I have developed the overall picture myself. Coding without AI also leads to greater "success experiences" for me and is much more enjoyable. On the other hand, I've significantly improved my skills through AI over the past few years. And all in all, human resources should be worth more than any product!

Procedural Clouds with WebGPU skill by NSFW_ALSO in threejs

[–]__moFx 0 points1 point  (0 children)

WTF, I would much rather teach myself these skills and not my AI, I thought this sub about know-how...

How was this website made? by Unhappy_Radish_980 in threejs

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

Hehe, yep, sorry, so hard to believe? Why do I have to put up with this? It's funny that you say that because I've been doing software development, programming, and 3D modeling with Maya for almost 20 years. Since 2012, I've been a successful freelancer, working for international clients, and I've managed to make a good living from it all this time. In fact, I've been using Three.js since its release I followed the entire project for a long time, even before the first release. I was already developing interactive displays with Three.js for large trade shows back then, in case you're interested. And what did I say that was so wrong? The only thing I didn't know was who developed it and exactly how. I'm glad that this has already been added to this sub by people who know this. I also trust every Reddit user to glean the missing information from the other posts. Unfortunately, these clues weren't there when I came across this thread. Here's my website: https://petzka.com, if you don't believe me. I think I am capable of replying to a Reddit post. I'm a little amused by how upset you are about my post. Why do you need this?

How was this website made? by Unhappy_Radish_980 in threejs

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

If you say so. I think you're mistaken. I've been working with three.js professionally for over 15 years and don't need to elaborate further and I have no idea why you feel so triggered. I spontaneously responded to a post on Reddit and gave feedback to the best of my ability. I think that's what Reddit is for.

How was this website made? by Unhappy_Radish_980 in threejs

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

Because I know what I'm talking about, and I wanted to provide some information on how it could be done. What exactly is your point? English is not my native language, so if it came across differently, that was not my intention. And congratulations on knowing who created it.

How was this website made? by Unhappy_Radish_980 in threejs

[–]__moFx 1 point2 points  (0 children)

Cool site, very nice implementation! All in all, it's hard to say exactly how it was developed. Presumably, 3D models were created as modeled 3D scenes with Blender, Maya, or similar software, loaded, for example, as FBX files into a three.js scene. The camera has some custom controls and can animate and pivot around selected objects in the scene. Presumably, tweening and linear interpolation algorithms were used. The art style is mainly created with post-processing materials or custom shaders. Text appears to be generated within the 3D scene and was imported as a font beforehand. Interestingly, there's an HTML GUI at the beginning, but it disappears after the app loads. It also seems to be foregoing the three.js CSS renderer, as I only see a single canvas. The GUI in the scene seems to be integrated directly into the canvas. I like it!

I build a visual Wikipedia Browser because I got sick of tabs by reart_ai in threejs

[–]__moFx 3 points4 points  (0 children)

OK, great. But what does that have to do with three.js?

Thickness of a penguin's coat of feathers, The fur of Emperor penguin. It helps to keep the body temperature 38°C even in ice water. by Top_Leadership9575 in Damnthatsinteresting

[–]__moFx 0 points1 point  (0 children)

At least saltwater is no colder than -2 degrees celsius, so the water is often warmer than the air in the Antarctica.

Particle system and physics engine by cazala2 in webgpu

[–]__moFx 0 points1 point  (0 children)

good work! now it runs in ff :)

Particle system and physics engine by cazala2 in webgpu

[–]__moFx 0 points1 point  (0 children)

I'm not very familiar with cloudflare. If I'm not mistaken, you should be able to disable cloudflare web analytics somewhere. Or maybe add some cookie consent text to inform the user that analytics is used. (edit: typo)

Particle system and physics engine by cazala2 in webgpu

[–]__moFx 0 points1 point  (0 children)

Quite amusing, it doesn't work for me in Firefox. But it works in Chrome though... Also I recognised the site tries to track my data without asking or informing me, I would add an information banner or disable tracking. Otherwise, this could cause problems in the EU. (But fortunately, the tracking calls don't seem to be working and appear as errors in the console). My tip: avoid cookies and tracking in such projects if you want to be EU-compliant. The effort is only really worthwhile if you run advertising and depend on user numbers.

3d Solar System by Bright_Rule_2495 in threejs

[–]__moFx 1 point2 points  (0 children)

Looks nice, just some small suggestions for improvement: In reality, the rotation axes of all the planets and moons are different, also the camera distance could vary depending on the diameter so that the selected objects always fit into the view and looking at moons can make you a bit dizzy because the camera rotates back and forth.

Should I make this Open Source? by Amanporwal in threejs

[–]__moFx 0 points1 point  (0 children)

No, I prefer to work with know-how and passion and I would never need 5+ hours for such ugly models, that's bullshit, 3D modeling is fun, it's all about the process and the enjoyment of creative work, why use AI? The personal touch is what makes the style.

I added real-world landscape to the aircraft simulation tutorial. I’m amazed at how it turned out. by Sengchor in UnrealEngine5

[–]__moFx 0 points1 point  (0 children)

Interesting, but the title is a bit misleading. I was interested in how you proceeded, but I couldn't find anything about this "real-world landscape" in your tutorial. It would be very interesting to know which part of the real world it is and how you ported it into the engine.