User Guide

888 Chapter 14: Properties
nearFiltering
Usage
member(whichCastmember).texture(whichTexture).nearFiltering
member(whichCastmember).shader(whichShader).\
texture(whichTexture).nearFiltering
member(whichCastmember).model(whichModel).shader.texture\
(whichTexture).nearFiltering
member(whichCastmember).model(whichModel).shaderList\
[shaderListIndex].texture(whichTexture).nearFiltering
Description
3D texture property; allows you to get or set whether bilinear filtering is used when rendering a
projected texture map that covers more screen space than the original texture source. Bilinear
filtering smooths any errors across the texture and thus improves the textures appearance. Bilinear
filtering smooths errors in two dimensions. Trilinear filtering smooths errors in three dimensions.
Filtering improves appearance at the expense of performance, with bilinear being less
performance-costly than trilinear.
When the property’s value is
TRUE, bilinear filtering is used. When the value is FALSE, bilinear
filtering is not used. The default is
TRUE.
Example
This statement turns off bilinear filtering for the texture named gbTexture in the cast
member Scene:
member("Scene").texture("gbTexture").nearFiltering = FALSE
netPresent
Usage
-- Lingo syntax
_player.netPresent
// JavaScript syntax
_player.netPresent;
Description
Player property; determines whether the Xtra extensions needed to access the Internet are
available but does not report whether an Internet connection is currently active. Read-only.
If the Net Support Xtra extensions are not available,
netPresent will function properly, but
netPresent() will cause a script error.
Example
This statement sends an alert if the Xtra extensions are not available:
-- Lingo syntax
if (not(_player.netPresent)) then
_player.alert("Sorry, the Network Support Xtras could not be found.")
end if
// JavaScript syntax
if (!(_player.netPresent)) {