So, the goto is here: http://yjovian.com/outbound/
A visualisation on the N-Queen problem. As announced via http://www.claymath.org/
Solves any N in a few seconds or less. Currently set at 30x30 (easy on your (and mine’s) pathetic computer system… lol).
There are 5 systems running in this simul.
- Icosahedrons - (shoot them if you want, WASD/Shift/Space for 6dof, M1 shoots, Wheel changes speed)
- Bullets - (pooled for efficiency. I see max 26)
- Squares - The visuals of the squares of the NxN chessboard.
- Explosions - Shoot Icos, they will react
- Clouds - random environment coupled to nav
Font comes from open squirrel and Json converter, Open Sans Semibold.
Sounds created from FL Studio, with FM.
Bottom line… (tldr)
A Three.js powered visualisation on the N-queen problem coupled with a fps shooter. Aim is to be functional, beautiful, fun.
A couple cool things I learned from this project and community…
How to create a Z based Screen. - The N in the system is sides to a chessboard. So, I want them to fill the screen. I do a Max on Y or X and use this amazing equation:
var DISPLAY_HEIGHT = distance * Math.tan(fov / 2 * (Math.PI / 180));
This is the basis of my 3d text/hud system. It is amazing, just sorta saying, I need these params.
HSL - Basic to anything related to humans. What color is your car? ummmm… it’s fiery orange. ok. it’s about .06 hue. (on a 0-1 scale of hue, 21.6 on 360 degrees). That gets translated to RGB (ugg), but yeah, your monitor. No problem, I’m throttling at 15% cpu and figuring 225k squares.
GPU? it’s at like 4%. I really need to tax this more. And Cpu is 15%. Like, what is Chrome doing?
Next step is completely unobvious. Tie it into the Cloud Database. i.e. I don’t need to code in Notepad (omg), all variables are cloud atomic.
Work, Stay stable, Love my friends/family, Carry on
These are the basics I expect from any 3D environment.
Eventually Consistent View
Instantiated (server or cloud based)