{"id":15650883,"url":"https://github.com/ocharles/hs-quake-3","last_synced_at":"2025-04-30T18:11:33.318Z","repository":{"id":66319068,"uuid":"88495159","full_name":"ocharles/hs-quake-3","owner":"ocharles","description":"Quake 3 map viewer written in Haskell","archived":false,"fork":false,"pushed_at":"2017-04-18T12:48:51.000Z","size":6682,"stargazers_count":35,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T18:43:51.262Z","etag":null,"topics":["frp","game","haskell","opengl","quake","quake3"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ocharles.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-17T09:53:45.000Z","updated_at":"2025-02-06T16:39:20.000Z","dependencies_parsed_at":"2023-02-24T17:00:54.102Z","dependency_job_id":null,"html_url":"https://github.com/ocharles/hs-quake-3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocharles%2Fhs-quake-3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocharles%2Fhs-quake-3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocharles%2Fhs-quake-3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocharles%2Fhs-quake-3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocharles","download_url":"https://codeload.github.com/ocharles/hs-quake-3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758170,"owners_count":21638989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["frp","game","haskell","opengl","quake","quake3"],"created_at":"2024-10-03T12:36:10.508Z","updated_at":"2025-04-30T18:11:33.292Z","avatar_url":"https://github.com/ocharles.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"``hs-quake-3``\n==============\n\nHello, welcome to the ``hs-quake-3`` repository! This project re-implements\nvarious parts of the Quake 3 game in Haskell.\n\n.. image:: 2017-04-17-progress.png\n\nFeatures currently supported:\n-----------------------------\n\n* Most shader operations work. Most texture modulation functions work, multiple\n  passes with blending, alpha testing and sorting are implemented.\n\n* BSP file parsing, and use of the PVS data to perform occlusion culling.\n\nStill to be done:\n-----------------\n\n* Sky boxes\n* Fog\n* Vertex deformation\n* Curved surfaces\n* Entities\n\nMap\n---\n\nTo give you an overview of the project:\n\n* ``Quake3.Shader.Parser`` is responsible for parsing Quake 3 shader files into\n  an AST.\n\n* ``Quake3.Shader.TypeCheck`` \"type checks\" the result of parsing. At this\n  stage, we register known shader opcodes and their parameters, and type check\n  into a considerably richer data structure.\n\n* ``Quake3.Shader.GL`` takes the result of type-checking, and can transform\n  shaders into a graph of OpenGL calls. This graph is described by\n  ``RenderGraph``.\n\n* ``RenderGraph`` allows one to describe a rendering pipe-line out of smaller\n  components. The idea behind the render graph is to collect and sort common\n  operations - state changes in OpenGL are expensive, so we want to avoid them\n  wherever possible. ``RenderGraph`` currently contains nodes necessary for\n  rendering (most of) Quake 3 - nodes to bind texture stages, set shader\n  parameters, enable multiple passes, and so.\n\n  This module is independent of Quake 3, and may well be usable in other\n  projects.\n\n* ``GLObjects`` is a light wrapper around objects offered by OpenGL. Here we\n  have what are essentially ``newtype`` wrappers around textures, vertex array\n  objects, and helper functions to create/upload data.\n\n* ``Wires.*`` contains the logic of the game. ``Wires.Game`` is responsible for\n  taking the camera position, determining which clusters are visible to deliver\n  a final render. ``Wires.Camera`` implements a rudimentary first-person camera,\n  interpreting SDL keyboard and mouse events as matrix transformations.\n\n* ``UI/Main`` forms the initialization process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focharles%2Fhs-quake-3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focharles%2Fhs-quake-3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focharles%2Fhs-quake-3/lists"}