# jwezorek

Member

946

2663 Excellent

• Rank
Crossbones

• Website
1. ## Triangular Life

Recently I looked through a bunch of triangular cellular automata in which each (1) uses two states, (2) uses the simple alive cell count type of rule, and (3) uses the neighborhood around a cell c that is all the triangles that share a vertex with c; that is, the 12 shaded triangles below are the neighborhood around the yellow triangle: These cellular automata have state tables that can be thought of as 13 rows of 2 columns: there are 12 possible non-zero alive cell counts plus the zero count and each of these counts can map to either alive or dead in the next generation depending on whether the cell in the current generation is alive or dead (column 1 or column 2). I looked at each of the 4096 cellular automata you get by filling the third through eighth rows of these state tables with each possible allocations of 0s and 1s and letting all other rows contain zeros. A handful of these 4096 feature the spontaneous generation of gliders but one rule is clearly the triangular analog of Conway’s Life. I have no idea if this rule has been described before in the literature but it is the following: On a triangular grid If a cell is dead and it has exactly four or six vertex-adjacent alive neighbors then it alive in the next generation. If a cell is alive and it has four to six vertex-adjacent alive neighbors, inclusive, then it remains alive in the next generation. Otherwise it is dead in the next generation. The above exhibits the glider shown below and the “bounded growth” that characterizes Conway’s Life. (To see this rule in action see my external blog on which I have it running in an embedded web CA app) Tri Life gliders are slightly rarer than in Conway life because they are bigger in terms of number of alive cells in each glider “frame” but do show up randomly frequently.
2. ## a 3D geometry library for C# that supports double precision?

Nvm. I just copied Matrix.cs, Vector3.cs, and Vector4.cs from Monogame, and search and replaced float with double.
3. ## a 3D geometry library for C# that supports double precision?

Hey does anyone know of a library for C# that lets me do transformations on 3D points where everything is doubles not floats? Currently I'm using XNA/Monogame which has what I need but only for floats. I need things like vector.Transform(Matrix), Matrix.CreateTranslation(...), Matrix.CreateFromAxisAngle(...) etc. -- the normal stuff. I dont need any graphics calls: this is for a receational math / researchy thing not a game.  There is a library for C# called Math.Net Numerics and Math.Net Spatial but "Spatial" has like nothing in it. The numerics one will get me matrices but they didnt write all the convenience routines for the geometric interpretation of vectors and matrices as far as I can see. I am wondering if someone has this up on github somewhere on top of Math.Net but havent found anything.
4. ## C++ signals and slots libraries for games

Which is best? I read in this old post and elsewhere that boost::signals is shockingly slow so that seems out. Does anyone know if Sneftel's code from the above link has been updated anywhere? (the link is 10 years old). Stackoverflow also mentions  libsigc++, but again that post is kind of old. Thoughts? Are there other ones to consider?
5. ## 3rd Party alternative to WinForms Designer?

Unfortunately, quiet a bit of it, it's a heavily custom UI, lots of custom controls, places that customize down at the win32 level -- old desktop application, and lots of places where business logic is mixed in with the GUI. There was an initiative to port to WPF about two years ago but it failed basically. Here's the thing though: at this point is WPF even necessarily better supported than WInForms? I'd argue that WinForms might actually be more stable *because* it is older; whereas, WPF is now in maintenance mode too but in my opinion a lot of it never fully matured. I mean like at another job I remember there being performance problems when trying to put 100,000 or more items in a WPF listview unless you made it virtual etc. seemed to me the kind of stuff that would have been fixed if MS was still 100% behind WPF as their flagship desktop platform.
6. ## supporting multiple coordinate systems

I'm working on a 2D game framework that is currently on top of SFML. I want to add a feature to my framework in which the user can select at start-up between what the framework will refer to as "coordinate systems": (1) TopLeftOriginDescendingY, (2) BottomLeftOriginAscendingY, or (3) CenterOriginAscendingY.   The idea being that SFML uses (1), all flavors of cocos2d-x use (2) and I personally think (3) makes a lot of sense because of philosophic alignment with mathematics and makes sense practically for handling multiple screen size and aspect ratios.   I figured this would be an easy thing to do because I could just roll into my "coordinate mapping matrix, which transforms "logical coordinates" into screen coordinates another transformation that handles the 3 systems above in cases (2) and (3) doing a scale by (1.0, -1.0) to flip the vertical axis because SFML uses (1) by default. The problem with this, I realize now, is that scaling by (1.0, -1.0) will cause all of my sprites to be upside down. I could handle that by flipping the textures in memory if in inverted-y modes but it seems kind of inelegant. I am planning to eventually break my dependency on SFML and re-implement the part of SFML I am using directly on top of OpenGL so am now leaning towards not doing  "coordinate systems" right now but implementing it when I remove the SFML dependency.   My question is basically is there a more elegant way to do what I want to do in SFML that I am not seeing? Perhaps using the sf::view class which I havent touched before? If not am I right in assuming that allowing this feature in a direct OpenGL implementation will  admit a solution that does not involve me flipping texture raster lines?
7. ## 3rd Party alternative to WinForms Designer?

Can't just switch to WPF because of a 100,000 lines of legacy code. This is for my day job ... some people are working on updating our UI by reskinning with custom controls in WinForms. Multi-DPI mostly works modulo problems. A big problem is VS Design View related. Sometimes when you just open a dialog VS will modify it to make it use the DPI you have opened it at or something like that. Not sure exactly ... just general diffiulties probably resulting from the fact that the last time anyone at Microsoft touched any of this stuff 90% of computers ran at 96 DPI. Anyway usually there are competing products for everything, was surprised my Google Fu was not revealing even a single drop-ip replacement for the WinForms Forms editor so asked here.
8. ## 3rd Party alternative to WinForms Designer?

Actually not ... looking for one that sucks less. specifically  Easier to select/navigate nested layout panels better handling of DPI issues e.g. allow toggling between DPIs in design view. MS's product is fine but seems like it hasnt been updated in ages and does have some problems. I can't get specific about the DPI stuff but it just feels like there are bugs there.
9. ## 3rd Party alternative to WinForms Designer?

... does anyone know if such a thing exists?
10. ## copy/paste crossplatform

I think you need to be a little more specific about what you need to do to get a good answer. That is, 1. You want to "paste a number" from where to where e.g. from the clipboard to an existing native window that you don't control? 2. Which platforms do you need to support? 3. If all you need to do is paste why are you asking about "open[ing]" a GUI? So I'm not sure how to answer, but if all you need to do is paste from the clipboard in any case I find it hard to believe there is going to be an easier way then implementing such functionality yourself on the platforms you want to support and abstracting the separate implementations in some platform-independent wrapper (the details of which will depend on the language(s) involved).