The Leftover

Members
  • Content Count

    97
  • Joined

  • Last visited

  • Days Won

    2

The Leftover last won the day on July 1

The Leftover had the most liked content!

1 Follower

About The Leftover

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Three views of Baltimore, MD, with different CSS declarations.
  2. Gentlemen and ssaket, I apologize for the slow response. I will try to remedy it with a short summary of what I do. The biggest factor for Illuminated City is that I don't need a continuous map. The subject is always a bracketed geography. Another factor is that the Lat/Lon must be precise, down to 20 meters or so. I overlay police districts and crime incidents. They need to line up. To do this, I create the biggest, fattest tile the browser will handle. 8K pixels squared roughly. That's all the map is, a fat image. (There are potential future enhancements including multiple tiles but I don't use that in production.) Boring, huh? There is some pre-processing. The map is stored on the server (and injected into Babylon) as an SVG. Several factors here: ~ Map size (from server to client) is always less than 2Mbytes ~ I can control styling There is no dynamic connection to an outside data source. I get the maps custom tailored, per city, and organize Illuminated City styling in CSS and "survey" them for precise fit. The styling is important to me. The one you see now is called "Retro-minus". I may want to do a "night" view. I would only have to redefine some CSS and voila! Night. The result looks good and is very controllable. Adding a new city map is a straightforward recipe but takes a couple hours. Again, apologies for the slow response. If I can aid your discussion (or learn from your experiences) I am now paying attention! https://blog.illuminated.city
  3. The Leftover

    Text as polygon mesh

    Well that is a remarkable piece of puzzlement that nearly broke my brain just before bedtime. So you like made a custom shader with a bit of C code? I have never looked at that pond, much less swam in it.
  4. The Leftover

    Text as polygon mesh

    Your Wingnut has now returned to an age-appropriate profile.
  5. The Leftover

    Text as polygon mesh

    Wingnut thanks for caring (heart heart heart). (I am working on being more emotive.) This must have emerged with the new release. It also appears in the playground of record, https://www.babylonjs-playground.com/#PL752W#1 Some sandpaper outa do it. Back soon.
  6. The Leftover

    Illuminated City

    Hello coders and countrymen, I have continued the labor with Illuminated City in ways that are not nearly geeky enough for this forum. I have, for example, spent hours with crime analysts for San Mateo and Santa Clara Counties. (You know, stay close to the target user.) One request was the ability to take crime data from multiple geo-adjacent cities and put it onto one display. Oddly enough, crime does not stop at administrative boundaries. And cities are utterly incompetent at unifying data-anything. Did that. Another request, only partially complete, is to be able to observe a "patrol waveform" and compare it to the "crime waveform". The goal would be to help place patrols more effectively. Patrol presence reduces crime. It's a challenging problem; I will discuss another time. Finally starting to take specific steps to create buzz. This might include creating consternation on the way -- this is crime after all. My first blog post is 90% complete and I am itching to show it to someone. Tag. You're it. http://blog.illuminated.city/ Maybe 85%. Anyway, almost there.
  7. The Leftover

    Web Assembly

    Dang dude! You stuck it through. Slings, arrows and coral reefs. Impressive.
  8. The Leftover

    Text as polygon mesh

    I see no error right now. The Illuminated City certificate is valid and has not been changed for more than a week. It is provided my GoDaddy and the site is hosted by Amazon. HOWEVER. I get that error intermittently on all kinds of sites, myverizon.com, facebook.com, nytimes.com. For the past six months, it would appear, rarely and briefly, and then disappear. I assumed it had something to do with my crappy ISP or Russian hackers. (NY Times had a DNS attack that lasted 18 hours.)
  9. The Leftover

    What's next?

    Does anyone have a subjective / objective sense of whether people use MeshWriter? I see visits to Wingnut's demo pages (they load my hosted version) but that's all I got. Mostly curious, I guess.
  10. The Leftover

    Web Assembly

    Jerome, I see that. I will watch with anticipation. Good luck!!
  11. The Leftover

    Web Assembly

    @JCPalmer The '.buffer' approach you show in your example with WebGL looks the same as the one for WeAssembly, per my example further above. I think there is a good chance that we can have one buffer with minimal recopying. Says Pollyanna.
  12. The Leftover

    Web Assembly

    Jerome, if I am belaboring the obvious, sorry. I only have one copy of the data structures. It is shared between WebAssembly and Javascript. If you look at the code (from my August 3 post above) you will see that I create the array as WebAssembly memory. Then I create a view into that memory. Javascript or WebAssembly both may address the array at that point. As far as JavaScript is concerned, it is just a typed array. This array is sized/created early in the session and tends to persist for quite a while. In fact, sometimes I clear the array and start over; as opposed to allocating a new one. To drive the point home: Sometimes I write the same function in JavaScript and WebAssembly. More specifically, I have already written it in JavaScript and it is working. When I develop the WebAssembly, I set it up so that I can call either "flavor" of the same function. Given that I don't have a battery of test suites, this helps me spot unintended changes of behavior. Once I get things settled, smaller interactions with the array are usually done through JavaScript. Larger ones are done with WebAssembly. After all of this, I am happy with the effort. I did hit many dead ends but I also got several large tasks to run 3X faster. I hope this is useful.
  13. The Leftover

    Web Assembly

    brianzinn, not sure I understand why that would be. (I am not doubting it, though. And please don't explain it to me.) I ran into a problem where I had to choose between WebAssembly and Web Workers unless I was willing to do large array copying. They both have data sharing for large vectors but they wouldn't work together. I chose to use WebAssembly and skip Web Workers for now. Life on the bleeding edge . . .
  14. The Leftover

    Web Assembly

    Jerome, delighted to read your report. This FYI: I had done some profiling of Illuminated City and determined that speeding 'VertexData.ComputeNormals' would be a win for my application. It is a good candidate in other ways, being about 200 lines of vector arithmetic (with two calls to Math.sqrt). I had considered rewriting it in native WASM but quickly realized that I did not understand application well enough. Also, there were a bunch of boundary issues: it deals with multiple arrays that - I think - were not typed. Converting typed <--> untyped is gonna add a lot of overhead. Also, the only way I know how to process multiple arrays in a single WebAssembly module is to put them in one array and use indexed addressing. I do this for my own application but it is a hefty bunch of work. At the end, I did not. 'VertexData.ComputeNormals' is an example of a function that I would optimize the hell out of in JavaScript first. Good chance that is a win. Here is my only actual concrete suggestion, respectfully placed from someone who doesn't really understand your code: Migrate to typed arrays for the obvious suspects, like uvs and normals and so on.
  15. DeltaKosh, 1) Do you want to know how many websites use it? Or users? Or usages? 2) Have you used Google Analytics before and are you sure you want to put the answers in there?