Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  game idea: "space wars" on Klein bottle surface?  (Read 5485 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2014-05-18 02:35:22 »

Maybe this has already been done? Just a brainstorm I had today about a possible game:

I was trying to envision a two-person shoot-at-each-other game in 3D, where one races around on a semi-transparent Klein bottle surface. Controls would be "classic": turn left, turn right, forward thrust and shoot, but the implementation would be over the geometry of a Klein Bottle surface.

I'm imagining the bulk of the screen being POV (for the individual player), but with maybe a 3D model/map on the side.

Part of the charm, on the surface in front of you, the "enemy" might be right-side-up (on the same surface as you) or upside-down and slightly blurry (on the "other side" of the Klein bottle). One would have to get a feel for the geometry of how to approach/ambush. Bullets would follow along the surface, curving around as the surface curves, but would die before they loop back to their origin! (No shooting self in the butt except in the narrow neck areas.)

Any thoughts on the math needed to make this work? Thought it might be a neat collaborative project.

Part of the problem: Klein bottles are by definition a "non-orientable" surface. So the coding of travel directions for "straight lines" for visuals, flight paths, bullet trajectories, would require some thought! Maybe every point on the surface is encoded as if a tangential plane but with some sort of curvature component...iieeyyaah! Or maybe it is no worse than putting a cartesian coordinate system onto a sphere? This is the first time I've tried to actually think about this.

music and music apps:
Offline HeroesGraveDev

JGO Kernel

Medals: 382
Projects: 11
Exp: 4 years

┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻

« Reply #1 - Posted 2014-05-18 02:39:37 »

How would you handle the 3D intersection (where in 4D it would not happen)?

Offline UprightPath
« Reply #2 - Posted 2014-05-18 02:45:53 »

Aren't old-school game maps (Of the wrapping over head sort) basically these? I'm just saying that you can probably model it by doing positions based off of one of these maps but with some sort of mapping that states that if you're more than 1/4th a map length away on the height/length of the bottle (arbitrary Y axis) then you're on opposite 'sides' of the surface?

Further, the circumfrence surface (Arbitrary X axis) could be controlled by some sort of mapping that adjusts the relative radius of the infinite cylinder.

Of course, this doesn't help if you want to include the wonkiness of the handle if you honestly want the world to be shaped like a klein bottle.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline LiquidNitrogen
« Reply #3 - Posted 2014-05-18 04:04:02 »

is it possible to make a surface like that which has several branches but everything still loops on both sides of the surface?
Offline philfrei
« Reply #4 - Posted 2014-05-18 04:46:44 »

How would you handle the 3D intersection (where in 4D it would not happen)?

My first inclination would be to create some sort of rift/hole, where the 2D grid doesn't exist. I'm not sure if that is possible. I'm not a purist. Maybe just make a hole.

@UprightPath -- Your post is beyond my comprehension level.  Sad  I'd like to know more about this.

@LiquidNitrogen -- That seems like a very cool idea. I saw the picture, too, of the embedded Kline bottles.

music and music apps:
Offline UprightPath
« Reply #5 - Posted 2014-05-18 06:23:06 »

Okay, let's say you define the world to have two axises. You have the Y axis which is basically the length of the Klein bottle; The part that goes from the inner surface to the outer surface. This axis is basically infinite in that it has no edges. However, it has some length Y0 such that if you travel along for Y0 distance you arrive back at the same spot you started.

Knowing this, then for some object traveling this axis there is some point on the horizon, both in front and behind, where an object on the same axis will appear to be on the surface below the object.

Now, we look at the X axis which is basically the circumference of a cylinder. When two objects are at similar Ys they will have similar Xs (Two objects at the same Y will be able to move on the same X). Objects that are 1/2 Y0 away from each other will be on opposite sides of the surface and inhabit the same X, save being on opposite sides of the Surface.

Offline Roquen

JGO Kernel

Medals: 514

« Reply #6 - Posted 2014-05-18 06:41:33 »

I've always like the Clifford torus (

Wouldn't the question become just finding a good projection operation for all that has no local intersections in 3D?
Offline pjt33

« JGO Spiffy Duke »

Medals: 40
Projects: 4
Exp: 7 years

« Reply #7 - Posted 2014-05-18 07:51:37 »

I once wrote up a design proposal for a puzzle game on a surface of genus 2, but I never made the game. I can't remember now what the reaction from the rest of the team was. IIRC I had some scheme involving 7 screens which gave the right topology, but it was a pretzel rather than a Klein bottle.

And I think I've seen occasional mention of other games which do puzzles on surfaces other than the simple plane, sphere, or torus, but no names come to mind now.

(No shooting self in the butt except in the narrow neck areas.)
Wouldn't the question become just finding a good projection operation for all that has no local intersections in 3D?

I would think that you want to project symmetrically, such that (modulo textures) the view is unchanging. Then if the projection has a local intersection and a narrow neck area, pick a part of the projection which puts them way beyond the horizon so that the player is unaware of them.

Aren't old-school game maps (Of the wrapping over head sort) basically these?

No, they're tori. A bit simpler.
Offline Jono
« Reply #8 - Posted 2014-05-18 12:11:21 »

Actually it's pretty trivial to do this by just tweaking the way screen wrapping works. Right at the the top of the wikipedia page it shows how to write the mapping from left-side to right-side and top to bottom:

It's more fun when you make top map to left and bottom to right though. I've used that before as a quick way to model a planet's surface on a diamond. It has some nice properties where the longitudinal lines at the equator are longer than those near the poles which is a bit more realistic than the cylinder maps.
Offline philfrei
« Reply #9 - Posted 2014-05-18 21:11:06 »

Thought #1:
Suppose one just wanted to draw a Moebius strip on a screen in 3D, and be able to rotate it, view it from any angle. Would this pose difficulties? (In OpenGL?) I don't know much about 3D representations of surfaces. There's something about breaking things into triangles, yes? But going with that isn't there also something in the data structure about specifying whether something is "inside" or "outside" having to do with orienting the data in a clockwise or counter-clockwise order? Would that be possible for a Moebius strip?

Clearly, 3D animation of a moebius strip has been done...

Also travelling on Klein bottles! (Note--I haven't heard the dialogue yet, my sound is effed up.)

Thought #2:
Trying to think (naively, this is new to me) about the data structure for the Klien Bottle surface (to allow 3D representation and 'grid-oriented' movement). Suppose the surface was broken into unit-length "squares", and each unit has four triangles (left, forward, right, backward). For movement, the triangles would be treated "as if" each was identical in size and coplanar to interpolate the movement. However, the mapping of each quadrant-triangle to a 3D location could be more flexible to account for the various curvatures. Am assuming with the mapping that the triangles will not be the same in size nor coplanar.

Or maybe the unit would be a "diamond" with four square quadrants.


Any vehicles or objects moving on this surface would be 3D (have a top/bottom/sides), so that we can use both the transparency degradation (per surface) and the object's orientation to help determine visually where it is.

To get away from complications of 2-person games, maybe an "Asteroids" sort of game could be played on such a surface. Or such could be used as a stepping-stone project.

music and music apps:
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Ecumene (49 views)
2017-09-30 02:57:34

theagentd (74 views)
2017-09-26 18:23:31

cybrmynd (183 views)
2017-08-02 12:28:51

cybrmynd (181 views)
2017-08-02 12:19:43

cybrmynd (188 views)
2017-08-02 12:18:09

Sralse (195 views)
2017-07-25 17:13:48

Archive (745 views)
2017-04-27 17:45:51

buddyBro (879 views)
2017-04-05 03:38:00

CopyableCougar4 (1428 views)
2017-03-24 15:39:42

theagentd (1318 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!