<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 3dsupport.lua</title><link>https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/</link><description>Recent changes to 3dsupport.lua</description><atom:link href="https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 26 Oct 2012 02:56:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage 3dsupport.lua modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/</link><description>&lt;pre&gt;--- v3
+++ v4
@@ -22,6 +22,7 @@
 setup_3dsupport | | | Initialize (setup camera, shared textures etc.)
 load_shader | vertname, fragname, label, definestbl | | a wrapper around build shader that reads in two resources and builds into the label shader, but replacing all preprocessor boolean defines with those of the definestbl
 load_model | modelname | modeltbl | Load and prepare a model by using the basic fall-back loader or, preferably, if a loader script was found, use that.
+find_cabinet_model | gametbl | modelname | Heuristic to determine which model should actually fit a particular game based on the contents of *gametbl*.
 setup_cabinet_model | modelname, restbl, optionstbl | modeltbl | A higher-level loader that takes care of lots of arcade cabinet specific remapping, preferring dynamic resources from the resourcefinder.
 
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Fri, 26 Oct 2012 02:56:57 -0000</pubDate><guid>https://sourceforge.nete27bdd2b15c0904f3025cf56717ccdb574968343</guid></item><item><title>WikiPage 3dsupport.lua modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -4,11 +4,12 @@
 This script is used to help with setting up models, shaders etc.
 It is loaded and initialized by calling:
 
-~~~
+~~~~
 ::lua
+
 system_load("scripts/3dsupport.lua")();
 setup_3dsupport();
-~~~
+~~~~
 
 The setup_3dsupport function will need to be re-initialized if the stack context is popped. This function also maintains a cache of found models, so any changes to resources/models themepath/models won't be reflected until this cache is invalidated by re-initialization.
 
@@ -21,6 +22,6 @@
 setup_3dsupport | | | Initialize (setup camera, shared textures etc.)
 load_shader | vertname, fragname, label, definestbl | | a wrapper around build shader that reads in two resources and builds into the label shader, but replacing all preprocessor boolean defines with those of the definestbl
 load_model | modelname | modeltbl | Load and prepare a model by using the basic fall-back loader or, preferably, if a loader script was found, use that.
-setup_cabinet_model | modelname, restbl, options | modeltbl | A higher-level loader that takes care of lots of arcade cabinet specific remapping, preferring dynamic resources from the resourcefinder.
+setup_cabinet_model | modelname, restbl, optionstbl | modeltbl | A higher-level loader that takes care of lots of arcade cabinet specific remapping, preferring dynamic resources from the resourcefinder.
 
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Fri, 26 Oct 2012 02:56:00 -0000</pubDate><guid>https://sourceforge.net4ee72c81464ebd53f4a05d86d9a10228f64a30f9</guid></item><item><title>WikiPage 3dsupport.lua modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -19,7 +19,7 @@
 name | args | returns | description
 ---- | ---- | ------- | -----------
 setup_3dsupport | | | Initialize (setup camera, shared textures etc.)
-load_shader | vertname, fragname, label, definestbl | a wrapper around build shader that reads in two resources and builds into the label shader, but replacing all preprocessor boolean defines with those of the definestbl
+load_shader | vertname, fragname, label, definestbl | | a wrapper around build shader that reads in two resources and builds into the label shader, but replacing all preprocessor boolean defines with those of the definestbl
 load_model | modelname | modeltbl | Load and prepare a model by using the basic fall-back loader or, preferably, if a loader script was found, use that.
 setup_cabinet_model | modelname, restbl, options | modeltbl | A higher-level loader that takes care of lots of arcade cabinet specific remapping, preferring dynamic resources from the resourcefinder.
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Fri, 26 Oct 2012 02:55:22 -0000</pubDate><guid>https://sourceforge.net1e5ff2b59eedd2719202ee29c18dd6bd05f0ea65</guid></item><item><title>WikiPage 3dsupport.lua modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/3dsupport.lua/</link><description>3D Support Script
-----

This script is used to help with setting up models, shaders etc.
It is loaded and initialized by calling:

~~~
::lua
system_load("scripts/3dsupport.lua")();
setup_3dsupport();
~~~

The setup_3dsupport function will need to be re-initialized if the stack context is popped. This function also maintains a cache of found models, so any changes to resources/models themepath/models won't be reflected until this cache is invalidated by re-initialization.

It also opens and parses a group_sets file for mapping multiple games to shared cabinets (shid)

**Exported Functions:**

name | args | returns | description
---- | ---- | ------- | -----------
setup_3dsupport | | | Initialize (setup camera, shared textures etc.)
load_shader | vertname, fragname, label, definestbl | a wrapper around build shader that reads in two resources and builds into the label shader, but replacing all preprocessor boolean defines with those of the definestbl
load_model | modelname | modeltbl | Load and prepare a model by using the basic fall-back loader or, preferably, if a loader script was found, use that.
setup_cabinet_model | modelname, restbl, options | modeltbl | A higher-level loader that takes care of lots of arcade cabinet specific remapping, preferring dynamic resources from the resourcefinder.


</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Fri, 26 Oct 2012 02:55:04 -0000</pubDate><guid>https://sourceforge.netad303df5cf930347561fec48ac1494e967768007</guid></item></channel></rss>