Slack group invite link: Join Slack
Resume cookie dialog: RESUME
Technology demonstration: Demo
Video tutorial: tutorial
Path to itch: gameapi-builder-in-itch.io
Path to steam: gameapi-builder-is-now-in-steam
skool link: skool
Address: kullervonkatu 24a28, 33500 tampere
Email address: terop@kotiposti.net
Phone number: +358 50 5827126
Y-tunnus: 3544765-4 (Tero Pulkkinen)
Ko-fi address: terop57376
Github: https://github.com/terop2/GameApi
Source Code: GameApi-sourcecode-v.tar.gz.
Yours,![]()
Development history of the project:














gameapi-builder --context >gameapi.contextgameapi-builder --script script.txt -o mod_script.txtgameapi-builder --file mod_script.txt<iframe src="mywebdir/display.html" scrolling="no" style="border:none;" width="830" height="630"/>
GLTF standard organisation made significant mistake when specifying GLTF file format, given that they do not support quads and polygons any longer. They're trying to conform tool vendors who explicitly break other people's 3d engines and tools instead of trying to do it properly (and possibly document the correct way to render polygons). HINT: correct way is to remove the feature that is misused, not the feature that was successfully broken by the idiots. i.e. they should remove possibility to _only use triangles_, instead of removing polygon feature. At current situation, detecting who is idiot is more important, and this is why our engine _enables polygons by default in .obj files_, so that when you see random bullshit polygons in obj files coming from some tool, you'll know which tool vendors are trying to break 3d engines. At least well known sanmiguel 3d model has this exact problem, and we had to use disable_polygons() to get acceptable render of the model.
The steps needed to render polygons are:
Module.gameapi_cb = function()
{ var d = document.getElementById("img"); d.style="display:none"; }
gameapi-builder --script script.txt -o mod2.txt gameapi-builder --file mod2.txt
Important part for deployment is the properties of html_run, since it contains url to your hosting space, which you need to change. This ensures that any urls that you load inside the node graph can be fetched from your hosting space. Unrestricted url access is not allowed for copyright reasons.
Web server config(.htaccess) should be something like the following: (you should change the url)
Header set Access-Control-Allow-Origin "https://meshpage.org" Header set Cross-Origin-Embedder-Policy "require-corp" Header set Cross-Origin-Resource-Policy "same-site" Header set Cross-Origin-Opener-Policy "same-origin" Header set Access-Control-Allow-Headers "range"Additionally, you should have in the page where iframe or embed is in, the following header definition:
<?php
header("Cross-Origin-Opener-Policy: same-origin");
?>
Apparently this needs to be in the page itself and not in the .htaccess to get SharedArrayBuffer and pthreads working.
Header set Cache-Control "max-age=604800, immutable"(this avoids small problem with browsers deciding different caching strategy for .wasm and .js files and serving mismatched files for the users, causing EM_ASM crashes)
AddOutputFilterByType BROTLI_COMPRESS text/xml AddOutputFilterByType BROTLI_COMPRESS text/css AddOutputFilterByType BROTLI_COMPRESS application/xml AddOutputFilterByType BROTLI_COMPRESS application/xhtml+xml AddOutputFilterByType BROTLI_COMPRESS application/rss+xml AddOutputFilterByType BROTLI_COMPRESS application/javascript AddOutputFilterByType BROTLI_COMPRESS application/x-javascript AddOutputFilterByType BROTLI_COMPRESS application/wasm AddOutputFilterByType BROTLI_COMPRESS application/x-font-opentype AddOutputFilterByType BROTLI_COMPRESS text/plain <files *.wasm> SetOutputFilter BROTLI_COMPRESS </files> <files *.ds.*> SetOutputFilter BROTLI_COMPRESS </files> <files *.ds> SetOutputFilter BROTLI_COMPRESS </files> <files *.data> SetOutputFilter BROTLI_COMPRESS </files> AddType application/wasm wasm AddType application/x-gameapi-binary ds AddType text/plain mtl AddType application/x-font-opentype otfThen /etc/apache2/sites-enabled/000-default.conf probably should have:
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascipt application/wasm application/x-javascript
</IfModule>
<IfModule mod_headers.c>
RewriteCond "%{HTTPS:Accept-encoding}" "br"
RewriteCond "%{REQUEST_FILENAME}\.br" "-s"
RewriteRule "^(.*)\.(wasm)" "$1\.$2\.br" [QSA]
RewriteRule "^(.*)\.(ds)\.(..)" "$1\.$2\.$3\.br" [QSA]
RewriteRule "\.wasm\.br$" "-" [T=application/wasm,E=no-brotli:1]
<FilesMatch "(\.wasm\.br)$">
Header append Content-Encoding br
Header append Vary Accept-Encoding
</FilesMatch>
<FilesMatch "(\.ds\...\.br)$">
Header append Content-Encoding br
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
Then you need brotli packages:
sudo apt install brotli -y sudo a2enmod brotli sudo systemctl restart apache2What technologies are you using to provide the features of the site?
Usage instructions:
<a href="mywebdir/display.html" target="_blank">LINK</a> (displays scene in fullscreen) (requires click by the user)
<iframe src="mywebdir/display.html" width="800" height="600" scrolling="no" style="border:none;"> (embed, no clicks required / android doesn't work right)
<iframe src="mywebdir/scene.html" width="800" height="600" scrolling="no" style="border:none;"> (displays fullscreen) (requires click by the user) (scene_screenshot.webp can be changed to actual screenshot of the scene)
<iframe src="mywebdir/detect.html" width="800" height="600" scrolling="no" style="border:none;"> (desktop displays embedded) (android displays fullscreen but requires click) (scene_screenshot.webp for android can be changed)
Other instructions/claude/sonnet5.5 probably needs to know this info:
Instructions for claude/fable5.2:
Instructions for claude/opus 5.5:
Advanced usage/web server config:
STABLE RELEASE: WIN:
v.28 (124 days ago)
STABLE RELEASE: LINUX:
v.28 (124 days ago)
MOST RECENT RELEASE: WIN:
v.28 (5 days ago)
MOST RECENT RELEASE: LINUX:
v.28 (0 days ago)
RELEASE SELECTION LOGIC:
OR ON UBUNTU 26.04:
LD_LIBRARY_PATH=. ./gameapi_cmdline --file script.txt --homepage homepageurl
We regret to inform you that we need cookies, local filesystem and index database and certificate store on your computer to keep the site up and running. It's necessary for the correct operation of the site, but hopefully you agree with this usage. We use cookies for these purposes:
We have designed a way to purchase our technology via nft using ethereum, so now we ask you to purchase it here with money, or here with eth
For eth, you need to have ethereum wallet available, for example coinbase wallet.