Skip to content

Commit 316a728

Browse files
committed
useSmoothingGroups option disabled in 3DS parser
1 parent dd25731 commit 316a728

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Basic_Load3DS.as

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,14 @@ package
131131
_lightPicker = new StaticLightPicker([_light]);
132132
_view.scene.addChild(_light);
133133

134-
//setup parser to be used on Loader3D
135-
Parsers.enableAllBundled();
136-
137134
//setup the url map for textures in the 3ds file
138135
var assetLoaderContext:AssetLoaderContext = new AssetLoaderContext();
139136
assetLoaderContext.mapUrlToData("texture.jpg", new AntTexture());
140137

141138
//setup materials
142139
_groundMaterial = new TextureMaterial(Cast.bitmapTexture(SandTexture));
143140
_groundMaterial.shadowMethod = new FilteredShadowMapMethod(_light);
141+
_groundMaterial.shadowMethod.epsilon = 0.2;
144142
_groundMaterial.lightPicker = _lightPicker;
145143
_groundMaterial.specular = 0;
146144
_ground = new Mesh(new PlaneGeometry(1000, 1000), _groundMaterial);
@@ -151,7 +149,7 @@ package
151149
_loader.scale(300);
152150
_loader.z = -200;
153151
_loader.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
154-
_loader.loadData(new AntModel(), assetLoaderContext);
152+
_loader.loadData(new AntModel(), assetLoaderContext, null, new Max3DSParser(false));
155153
_view.scene.addChild(_loader);
156154

157155

0 commit comments

Comments
 (0)