Ambient: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Aerizeon (talk | contribs)
No edit summary
Sleepy E (talk | contribs)
m Added missing argument "tag"
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:Vp_ambient_example.png|frame|Two cubes, with ambient 0.2 (top) and ambient 1.0 (bottom)]]
{{feature|1|0.3.9|  |Vp_ambient_example.png|Three cubes, with ambient 1.0 (top), 0.5 (middle) and 0.0 (bottom) }}
The '''ambient''' command sets the ambient component of the current surface lighting properties.
The '''ambient''' command sets the ambient component of the current surface lighting properties.
<br>
{{Clear}}
<br>
 
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
==Usage==
==Usage==
  ambient ''value''
  '''ambient''' ''intensity'' [''tag=''] [''name=''] [global]


==Arguments==
==Arguments==
;value :The intensity with which ambient light will effect the object<br>'''Values:''' Decimals between 0.0 and 1.0 <br>'''Default:''' 1.0
;Intensity :The intensity with which ambient light will effect the object<br>'''Values:''' Decimals between 0.0 and 1.0 <br>'''Default:''' 1.0
; Tag : Applies the change to a tagged(RWX)/named(OBJ, MD5Mesh) part of the model
; Name : The name of the object(s) to initiate the command on (see [[Name]] for more information)<br>'''Default:''' Current object only
; Global : If set, this will cause a trigger (e.g. activate, adone) to initiate this command for all users have the object in view. Otherwise, the command will be initiated only for the user who activates the trigger<br>'''Default:''' Not set


==Example==
==Example==
  [[create]] ambient 0.2;
  [[create]] ambient 0.2;
----
 
Ambient light will have little effect on this object.
 
{{Build}}
{{Build}}
[[Category:Action Commands]]
[[Category: Script commands]]

Latest revision as of 16:31, 26 July 2018

Ambient
Three cubes, with ambient 1.0 (top), 0.5 (middle) and 0.0 (bottom)
Build required 1
Version required 0.3.9


The ambient command sets the ambient component of the current surface lighting properties.

Usage

ambient intensity [tag=] [name=] [global]

Arguments

Intensity
The intensity with which ambient light will effect the object
Values: Decimals between 0.0 and 1.0
Default: 1.0
Tag
Applies the change to a tagged(RWX)/named(OBJ, MD5Mesh) part of the model
Name
The name of the object(s) to initiate the command on (see Name for more information)
Default: Current object only
Global
If set, this will cause a trigger (e.g. activate, adone) to initiate this command for all users have the object in view. Otherwise, the command will be initiated only for the user who activates the trigger
Default: Not set

Example

create ambient 0.2;

Ambient light will have little effect on this object.

Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb