Added FX Materials

* Added FX Shader Materials
* Added Projector Actor
This commit is contained in:
n00b
2025-04-11 00:51:47 -04:00
parent 14a315db60
commit b67d63d32c
73 changed files with 5384 additions and 1825 deletions

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>ConvertToNormalMap [RCBasic Doc] </title>
</head>
<body>
<p><h2>sub ConvertToNormalMap(img_id, amp) </h2></p>
<p>
Converts an image to a format for normal maps
</p>
<p>
</body>
</html>

View File

@@ -9,6 +9,9 @@
<body>
<p><h2>Function CreateConeMesh( radius, cone_length, tesselation, top_color, bottom_color ) </h2></p>
<p>
Create a cone mesh
</p>
<p>
</body>
</html>

View File

@@ -9,6 +9,9 @@
<body>
<p><h2>Function CreateCylinderMesh( radius, cylinder_length, tesselation, color, close_top ) </h2></p>
<p>
Create a cylinder mesh
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>CreateProjectorActor [RCBasic Doc] </title>
</head>
<body>
<p><h2>Function CreateProjectorActor() </h2></p>
<p>
Create a projector actor.
</p>
<p>
Projector actors can be used to project a texture over objects in its field of view.
</p>
<p>
</body>
</html>

View File

@@ -9,6 +9,9 @@
<body>
<p><h2>Function CreateVolumeLightMesh( u, v, foot_color, tail_color, lp_distance, dim_x, dim_y, dim_z ) </h2></p>
<p>
Create a mesh to represent a light volume.
</p>
<p>
</body>
</html>

View File

@@ -9,6 +9,9 @@
<body>
<p><h2>Sub DeleteAN8( an8_project ) </h2></p>
<p>
Clears a anim8or project from program memory.
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetGPUInfo$ [RCBasic Doc] </title>
</head>
<body>
<p><h2>function GetGPUInfo$() </h2></p>
<p>
Returns the GPU Vendor info
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetMaterialConstant [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub GetMaterialConstant(material, m_constant$, ByRef n1, ByRef n2, ByRef n3, ByRef n4) </h2></p>
<p>
Gets the constant value of an FX material
</p>
<br><p>Related:
<a href="setmaterialconstant.html">SetMaterialConstant</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetMaterialConstantName$ [RCBasic Doc] </title>
</head>
<body>
<p><h2>Function GetMaterialConstantName$(material_type, index) </h2></p>
<p>
Returns the name of a uniform for an FX material type
</p>
<p>
NOTE: index should be a number between 0 and NumMaterialConstants
</p>
<br><p>Related:
<a href="nummaterialconstants.html">NumMaterialConstants</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetProjectorFOV [RCBasic Doc] </title>
</head>
<body>
<p><h2>Function GetProjectorFOV(actor) </h2></p>
<p>
Returns the field of view for a projector
</p>
<br><p>Related:
<a href="setprojectorfov.html">SetProjectorFOV</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetProjectorTarget [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub GetProjectorTarget(actor, ByRef x, ByRef y, ByRef z) </h2></p>
<p>
Get the point a projector is looking at
</p>
<br><p>Related:
<a href="setprojectortarget.html">SetProjectorTarget</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetSceneAmbientColor [RCBasic Doc] </title>
</head>
<body>
<p><h2>Function GetSceneAmbientColor() </h2></p>
<p>
Returns the ambient light color of the scene
</p>
<br><p>Related:
<a href="setsceneambientcolor.html">SetSceneAmbientColor</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>GetSceneShadowColor [RCBasic Doc] </title>
</head>
<body>
<p><h2>Function GetSceneShadowColor() </h2></p>
<p>
Returns the shadow color of the scene
</p>
<br><p>Related:
<a href="setsceneshadowcolor.html">SetSceneShadowColor</a>
</p>
<p>
</body>
</html>

View File

@@ -665,6 +665,8 @@ ul, #myUL {
<li><a href="getantialiasmode.html" target="main">GetAntiAliasMode</a></li>
<li><a href="converttonormalmap.html" target="main">ConvertToNormalMap</a></li>
</ul>
</li>
@@ -1021,6 +1023,8 @@ ul, #myUL {
<li><a href="systemram.html" target="main">SystemRam</a></li>
<li><a href="getgpuinfo.html" target="main">GetGPUInfo$</a></li>
</ul>
</li>
@@ -1697,6 +1701,8 @@ ul, #myUL {
<li><a href="actorexists.html" target="main">ActorExists</a></li>
<li><a href="createprojectoractor.html" target="main">CreateProjectorActor</a></li>
</ul>
</li>
@@ -2163,6 +2169,14 @@ ul, #myUL {
<li><a href="clearscene.html" target="main">ClearScene</a></li>
<li><a href="setsceneshadowcolor.html" target="main">SetSceneShadowColor</a></li>
<li><a href="getsceneshadowcolor.html" target="main">GetSceneShadowColor</a></li>
<li><a href="setsceneambientcolor.html" target="main">SetSceneAmbientColor</a></li>
<li><a href="getsceneambientcolor.html" target="main">GetSceneAmbientColor</a></li>
</ul>
</li>
@@ -2334,6 +2348,22 @@ ul, #myUL {
<li><a href="setterrainpatchlod.html" target="main">SetTerrainPatchLOD</a></li>
</ul>
</li>
</ul>
<ul id="myUL">
<li><span class="box">Projector</span>
<ul class="nested">
<li><a href="setprojectortarget.html" target="main">SetProjectorTarget</a></li>
<li><a href="getprojectortarget.html" target="main">GetProjectorTarget</a></li>
<li><a href="setprojectorfov.html" target="main">SetProjectorFOV</a></li>
<li><a href="getprojectorfov.html" target="main">GetProjectorFOV</a></li>
</ul>
</li>
</ul>
@@ -2459,6 +2489,14 @@ ul, #myUL {
<li><a href="materialexists.html" target="main">MaterialExists</a></li>
<li><a href="nummaterialconstants.html" target="main">NumMaterialConstants</a></li>
<li><a href="getmaterialconstantname.html" target="main">GetMaterialConstantName$</a></li>
<li><a href="setmaterialconstant.html" target="main">SetMaterialConstant</a></li>
<li><a href="getmaterialconstant.html" target="main">GetMaterialConstant</a></li>
</ul>
</li>

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>NumMaterialConstants [RCBasic Doc] </title>
</head>
<body>
<p><h2>Function NumMaterialConstants(material_type) </h2></p>
<p>
Returns the number of shader uniforms for an FX material
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>SetMaterialConstant [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub SetMaterialConstant(material, m_constant$, n1, n2, n3, n4) </h2></p>
<p>
Sets the constant value of an FX material
</p>
<br><p>Related:
<a href="getmaterialconstant.html">GetMaterialConstant</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>SetProjectorFOV [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub SetProjectorFOV(actor, fov) </h2></p>
<p>
Set the field of view for a projector
</p>
<br><p>Related:
<a href="getprojectorfov.html">GetProjectorFOV</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>SetProjectorTarget [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub SetProjectorTarget(actor, x, y, z) </h2></p>
<p>
Set the point a projector is pointed at
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>SetSceneAmbientColor [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub SetSceneAmbientColor(color) </h2></p>
<p>
Sets the ambient light color of the scene
</p>
<br><p>Related:
<a href="getsceneambientcolor.html">GetSceneAmbientColor</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>SetSceneShadowColor [RCBasic Doc] </title>
</head>
<body>
<p><h2>Sub SetSceneShadowColor(color) </h2></p>
<p>
Sets the shadow color of the scene
</p>
<br><p>Related:
<a href="getsceneshadowcolor.html">GetSceneShadowColor</a>
</p>
<p>
</body>
</html>

View File

@@ -0,0 +1,4 @@
#title ConvertToNormalMap [RCBasic Doc]
#header sub ConvertToNormalMap(img_id, amp)
Converts an image to a format for normal maps

View File

@@ -1,4 +1,4 @@
#title CreateConeMesh [RCBasic Doc]
#header Function CreateConeMesh( radius, cone_length, tesselation, top_color, bottom_color )
Create a cone mesh

View File

@@ -1,4 +1,4 @@
#title CreateCylinderMesh [RCBasic Doc]
#header Function CreateCylinderMesh( radius, cylinder_length, tesselation, color, close_top )
Create a cylinder mesh

View File

@@ -0,0 +1,6 @@
#title CreateProjectorActor [RCBasic Doc]
#header Function CreateProjectorActor()
Create a projector actor.
Projector actors can be used to project a texture over objects in its field of view.

View File

@@ -1,4 +1,4 @@
#title CreateVolumeLightMesh [RCBasic Doc]
#header Function CreateVolumeLightMesh( u, v, foot_color, tail_color, lp_distance, dim_x, dim_y, dim_z )
Create a mesh to represent a light volume.

View File

@@ -1,4 +1,4 @@
#title DeleteAN8 [RCBasic Doc]
#header Sub DeleteAN8( an8_project )
Clears a anim8or project from program memory.

4
doc/files/getgpuinfo.txt Normal file
View File

@@ -0,0 +1,4 @@
#title GetGPUInfo$ [RCBasic Doc]
#header function GetGPUInfo$()
Returns the GPU Vendor info

View File

@@ -0,0 +1,6 @@
#title GetMaterialConstant [RCBasic Doc]
#header Sub GetMaterialConstant(material, m_constant$, ByRef n1, ByRef n2, ByRef n3, ByRef n4)
Gets the constant value of an FX material
#ref SetMaterialConstant

View File

@@ -0,0 +1,8 @@
#title GetMaterialConstantName$ [RCBasic Doc]
#header Function GetMaterialConstantName$(material_type, index)
Returns the name of a uniform for an FX material type
NOTE: index should be a number between 0 and NumMaterialConstants
#ref NumMaterialConstants

View File

@@ -0,0 +1,6 @@
#title GetProjectorFOV [RCBasic Doc]
#header Function GetProjectorFOV(actor)
Returns the field of view for a projector
#ref SetProjectorFOV

View File

@@ -0,0 +1,6 @@
#title GetProjectorTarget [RCBasic Doc]
#header Sub GetProjectorTarget(actor, ByRef x, ByRef y, ByRef z)
Get the point a projector is looking at
#ref SetProjectorTarget

View File

@@ -0,0 +1,6 @@
#title GetSceneAmbientColor [RCBasic Doc]
#header Function GetSceneAmbientColor()
Returns the ambient light color of the scene
#ref SetSceneAmbientColor

View File

@@ -0,0 +1,6 @@
#title GetSceneShadowColor [RCBasic Doc]
#header Function GetSceneShadowColor()
Returns the shadow color of the scene
#ref SetSceneShadowColor

View File

@@ -0,0 +1,4 @@
#title NumMaterialConstants [RCBasic Doc]
#header Function NumMaterialConstants(material_type)
Returns the number of shader uniforms for an FX material

View File

@@ -0,0 +1,6 @@
#title SetMaterialConstant [RCBasic Doc]
#header Sub SetMaterialConstant(material, m_constant$, n1, n2, n3, n4)
Sets the constant value of an FX material
#ref GetMaterialConstant

View File

@@ -0,0 +1,6 @@
#title SetProjectorFOV [RCBasic Doc]
#header Sub SetProjectorFOV(actor, fov)
Set the field of view for a projector
#ref GetProjectorFOV

View File

@@ -0,0 +1,4 @@
#title SetProjectorTarget [RCBasic Doc]
#header Sub SetProjectorTarget(actor, x, y, z)
Set the point a projector is pointed at

View File

@@ -0,0 +1,6 @@
#title SetSceneAmbientColor [RCBasic Doc]
#header Sub SetSceneAmbientColor(color)
Sets the ambient light color of the scene
#ref GetSceneAmbientColor

View File

@@ -0,0 +1,6 @@
#title SetSceneShadowColor [RCBasic Doc]
#header Sub SetSceneShadowColor(color)
Sets the shadow color of the scene
#ref GetSceneShadowColor