Re: Project Highlight: Timur Gafarov

2016-09-16 Thread Timur Gafarov via Digitalmars-d-announce

16.09.2016 18:12, c-v-i пишет:

On Friday, 16 September 2016 at 12:53:44 UTC, Mike Parker wrote:

What started out as a highlight of Timur's open source game, Atrium,
turned into an introduction to several of his D projects. And it looks
like I've managed to make this announcement without a typo in the
title this week. If you notice any mistakes in the blog post, please
let me know!

The post:
https://dlang.org/blog/2016/09/16/project-highlight-timur-gafarov/

reddit:
https://www.reddit.com/r/programming/comments/531po8/from_the_d_blog_introducing_an_open_source_game/



can someone build atrium ?


For all people who can't build Atrium: you either have an old source 
tree or trying to build one of the releases. Trunk in it's current state 
should compile with DMD 2.070 or LDC 1.0 - at least, under Windows and 
Linux, both 32 and 64 bit. Support for other OSes, configurations, 
compilers and DMD versions is not guaranteed.


Re: Atrium - 3D game written in D

2015-11-08 Thread Timur Gafarov via Digitalmars-d-announce

07.11.2015 21:17, Manuel König пишет:

Am Fri, 6 Nov 2015 12:04:03 +0300
schrieb Timur Gafarov :


Atrium (code name) is a work-in-progress science fiction game with
physics based puzzles (gravity effects, force fields, etc) akin to
Portal or Inverto. The game is fully written in D, it uses custom
graphics engine based on OpenGL and SDL. Physics engine is also
written from scratch.

Source code:
https://github.com/gecko0307/atrium

IndieDB page:
http://www.indiedb.com/games/atrium

A precompiled demo for Windows:
https://www.dropbox.com/s/qh8gai2n94qe8jj/atrium-testbuild-051115.zip?dl=0


This looks very nice, congrats! I'm especially interested in the physics
and character controller part, because I'm currently developing a
character controller myself, but just a sphere character in a static
triangle world for now.

Finding a robust and fast sliding algorithm for sliding a sphere along
triangles in a given direction seems to be the hardest part. I'm
investigating two approaches, which can be simplified to:

1) move until we hit any geometry, compute new slide direction, repeat
2) move first, then project the character out of the world geometry

Both approaches work reasonably well, but there are scenarios where
they don't work so well (mostly pathetic scenarios). I'll
definitely look how you solved the problem and maybe tinker with your
physics code :)



I took rather idiomatic approach: move, detect collisions, generate 
contact points, then solve them iteratively. Sliding is obtained 
somewhat automatically.


Re: Atrium - 3D game written in D

2015-11-06 Thread Timur Gafarov via Digitalmars-d-announce

06.11.2015 12:29, stewart пишет:

On Friday, 6 November 2015 at 09:04:05 UTC, Timur Gafarov wrote:

Atrium (code name) is a work-in-progress science fiction game with
physics based puzzles (gravity effects, force fields, etc) akin to
Portal or Inverto. The game is fully written in D, it uses custom
graphics engine based on OpenGL and SDL. Physics engine is also
written from scratch.

Source code:
https://github.com/gecko0307/atrium

IndieDB page:
http://www.indiedb.com/games/atrium

A precompiled demo for Windows:
https://www.dropbox.com/s/qh8gai2n94qe8jj/atrium-testbuild-051115.zip?dl=0



Great looking game, nice work. Are there any plans to distribute the
GUI/Gfx and physics components as separate libraries?


Stew


They already exist as separate libs:
https://github.com/gecko0307/dmech
https://github.com/gecko0307/dgl

DGL (graphics engine) is currently falling behind from the game and may 
contain bugs, but I eventually update it.


Atrium - 3D game written in D

2015-11-06 Thread Timur Gafarov via Digitalmars-d-announce
Atrium (code name) is a work-in-progress science fiction game with 
physics based puzzles (gravity effects, force fields, etc) akin to 
Portal or Inverto. The game is fully written in D, it uses custom 
graphics engine based on OpenGL and SDL. Physics engine is also written 
from scratch.


Source code:
https://github.com/gecko0307/atrium

IndieDB page:
http://www.indiedb.com/games/atrium

A precompiled demo for Windows:
https://www.dropbox.com/s/qh8gai2n94qe8jj/atrium-testbuild-051115.zip?dl=0


Re: Atrium - 3D game written in D

2015-11-06 Thread Timur Gafarov via Digitalmars-d-announce

06.11.2015 13:51, Andrea Fontana пишет:

On Friday, 6 November 2015 at 09:04:05 UTC, Timur Gafarov wrote:

Atrium (code name) is a work-in-progress science fiction game with
physics based puzzles (gravity effects, force fields, etc) akin to
Portal or Inverto. The game is fully written in D, it uses custom
graphics engine based on OpenGL and SDL. Physics engine is also
written from scratch.

Source code:
https://github.com/gecko0307/atrium

IndieDB page:
http://www.indiedb.com/games/atrium

A precompiled demo for Windows:
https://www.dropbox.com/s/qh8gai2n94qe8jj/atrium-testbuild-051115.zip?dl=0



Any demo for linux too?


Linux demo will be available very soon.


Re: Atrium - 3D game written in D

2015-11-06 Thread Timur Gafarov via Digitalmars-d-announce

06.11.2015 13:51, NVolcz пишет:

On Friday, 6 November 2015 at 09:04:05 UTC, Timur Gafarov wrote:

Atrium (code name) is a work-in-progress science fiction game with
physics based puzzles (gravity effects, force fields, etc) akin to
Portal or Inverto. The game is fully written in D, it uses custom
graphics engine based on OpenGL and SDL. Physics engine is also
written from scratch.

Source code:
https://github.com/gecko0307/atrium

IndieDB page:
http://www.indiedb.com/games/atrium

A precompiled demo for Windows:
https://www.dropbox.com/s/qh8gai2n94qe8jj/atrium-testbuild-051115.zip?dl=0



Very cool!
How have it been to work with the GC?
Reddit it! Maybe with an writeup?


I tried to fully avoid GC, using my own malloc-based allocator. This 
lead to the fact that the code is not very D-ish, but it proves that 
there's perfectly possible to write real-world GC-free applications in D.


Re: Devisualization.Image

2014-11-18 Thread Timur Gafarov via Digitalmars-d-announce

15.11.2014 07:48, Rikki Cattermole пишет:

To further Devisualization, I have got the start of an image library.
It should be fairly interface complete now.

For this I really could use help from anyone with experience with PNG
especially with Adam7 interlacing and color correction such as gamma.
Currently missing an exporter. Only imports. Does not import grayscale
or palleted.

Goal: to act as the image representation within memory (including colors).
Usage:
Devisualization.Window uses it for window icon's (untested for x11 can
somebody confirm this does indeed work?).
Devisualization.Font heavily uses it for glyphs and the output of its
rasterization.

[0] https://github.com/Devisualization/image


I have working PNG export in my image processing package, part of dlib: 
https://github.com/gecko0307/dlib

There're also importers for BMP and TGA.