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 texture’s 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)) {
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...