Commit graph

72 commits

Author SHA1 Message Date
Quantum 5659439a8f Permanently banned all C files from being included in the repository.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-25 16:46:28 -05:00
Quantum 3fdef85957 Implemented normal mapped sphere in Cython.
Also:
 * Writes directly into the bytes object instead of malloc'ing.
 * Converted all OpenGL functions to nogil.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-25 16:34:21 -05:00
Quantum 35d77c2bc0 Backported all of Cython model loader to Python.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-23 12:36:27 -05:00
Quantum e9403fe746 Added compression support to wavefront loader.
Removed massive generated C file.
2013-11-23 12:12:48 -05:00
Quantum 878db3658a Used 3D rotation to calculate the normals. 2013-11-23 11:01:57 -05:00
Quantum 5435b594d4 Upgraded the normal map to 2048x1024. Should look better.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-21 23:22:24 -05:00
Quantum 2d9edde95c Switched to a triangle strip, should be much faster. 2013-11-21 20:59:33 -05:00
Quantum 8ae6186325 Added normal map for earth as proof of concept. 2013-11-21 20:47:29 -05:00
Quantum 16a07c01b0 Objects no longer flicker when being far (10x improvement). Close objects are not displayed very well. 2013-11-21 16:45:38 -05:00
Quantum 571ac1c443 Added Cassini around Saturn.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-20 18:38:53 -05:00
Quantum 7774330b8b The atmosphere now always faces the camera.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-20 16:43:54 -05:00
Quantum 0b0c6f8fba Added Hubble Space Telescope.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-17 01:09:53 -05:00
Quantum 3eba00caa6 Merge remote-tracking branch 'origin/master' 2013-11-14 12:42:49 -05:00
Quantum 0f6f0e4bc4 New asteroids and scaling. 2013-11-14 12:39:55 -05:00
Quantum d6c93bb739 Fixed world.json. Closes #100. 2013-11-12 16:43:53 -05:00
Quantum 5b67e045b1 Shrunk cursor greatly. 2013-11-09 18:57:07 -05:00
Quantum 6f450f37e7 gluBuild2DMipmaps doesn't seem to do anything. 2013-11-09 17:42:50 -05:00
Quantum b78582b27d Filtered cloud texture to remove noise. 2013-11-09 17:38:01 -05:00
Quantum 1667b1c672 New clouds that actually looks realistic. Closes #99. 2013-11-09 14:27:35 -05:00
Quantum 7943066fbb Removed stray glEnable(GL_BLEND). 2013-11-09 10:13:56 -05:00
Quantum 3fb601a2e7 Simplified implementation according to issue. Refs #98. 2013-11-09 10:08:59 -05:00
Quantum 06e6a803a2 Completely rewrite of ticking which guarantees update per frame. Refs #98. 2013-11-06 22:12:58 -05:00
Quantum ad942261f9 Updated description. 2013-11-06 21:39:42 -05:00
Quantum d5b69b8fc1 Pointed launcher to new release. 2013-11-06 17:46:35 -05:00
Quantum 4a624e4a4f Added argparse to launcher.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-06 17:37:17 -05:00
Quantum 818f4bd0bb Added support for older launchers.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-06 17:32:31 -05:00
Quantum 8b3a6d7130 Slightly better formatting. 2013-11-05 19:18:22 -05:00
Quantum 6173cbe094 Better time handling: configurable ticks per second, and no dropped movement.
Note: the original method involves moving on only when update() is called, which is called only between frames. Hence less than the ticks per second setting if it can't paint as fast. This made movement completely FPS independent.

TODO: remove update, merge into on_draw.
2013-11-04 17:00:15 -05:00
Quantum 2a7e089edb Removed the two most complained about asteroids. 2013-11-04 17:02:23 -05:00
Quantum cab7974f2a Using hard code of 1024 asteroids in belt.
For that texture size kills modern computers.
2013-11-04 16:29:28 -05:00
Quantum 58bc2b9c67 Fixed fatal bugs that prevent time from stopping on demand. 2013-11-04 16:28:34 -05:00
Quantum 2ac84c0dbc Added in the textures for corona and solar "atmosphere".
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-02 15:17:30 -04:00
Quantum 5b28d5c5a1 Attempt at making diffuse and corona not intersect. 2013-11-02 15:13:05 -04:00
Quantum c7cee9a471 Added a diffuse texture on the sun. 2013-11-02 15:07:23 -04:00
Quantum b2ec3ef2b3 Added a sort of corona effect. 2013-11-02 15:00:47 -04:00
Quantum e210fa2fa8 Allowed control of displaying cloudmaps and atmospheres. 2013-11-02 12:57:10 -04:00
Quantum 38dc57c22f Moved mouse and keyboard into dictionaries. 2013-11-02 12:50:48 -04:00
Quantum 8cc74e8f22 Would you believe that the debug label drawing takes up 20% of drawing time? 2013-11-02 01:00:02 -04:00
Quantum 7befc8c14b Better sun texture. 2013-11-01 20:42:12 -04:00
Quantum 67c6becca3 Image shrinker now reads a list of files to resize, instead of using a hard coded list. This now doesn't need the launcher to be rebuilt for every new texture. 2013-11-01 19:26:25 -04:00
Quantum 4f4ec651c1 Added the main asteroid belt.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-11-01 18:42:50 -04:00
Quantum 4707aee221 Added mouse input support. 2013-11-01 12:30:10 -04:00
Quantum 83cd160ed4 Stops the sky from rotating.
Also: asteroids go front when you move back. Uranus rotates about the right axis.
2013-11-01 12:19:18 -04:00
Quantum fe0363627a Added Mercury and Venus.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-10-31 18:51:04 -04:00
Quantum 9e8f2f38c0 Added the sun.
Note that its texture is at minimum size.
2013-10-31 18:17:32 -04:00
Quantum c043a6fe88 Optimized surface division for speed. 2013-10-31 17:56:16 -04:00
Quantum 5d5f7cceb4 OMG did I just break standalone python usage of punyverse?
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-10-30 22:52:19 -04:00
Quantum 0375b5570f Updated description. 2013-10-30 19:29:33 -04:00
Quantum e46b09ba06 Updated the launcher and its utilities.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-10-30 19:09:04 -04:00
Quantum e45f8f6f85 Made cython model loader py2exe friendly.
Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
2013-10-30 18:48:58 -04:00