Skip to content

Commit

Permalink
useSmoothingGroups option disabled in 3DS parser
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-bateman committed Jan 24, 2014
1 parent dd25731 commit 316a728
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Basic_Load3DS.as
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,14 @@ package
_lightPicker = new StaticLightPicker([_light]);
_view.scene.addChild(_light);

//setup parser to be used on Loader3D
Parsers.enableAllBundled();

//setup the url map for textures in the 3ds file
var assetLoaderContext:AssetLoaderContext = new AssetLoaderContext();
assetLoaderContext.mapUrlToData("texture.jpg", new AntTexture());

//setup materials
_groundMaterial = new TextureMaterial(Cast.bitmapTexture(SandTexture));
_groundMaterial.shadowMethod = new FilteredShadowMapMethod(_light);
_groundMaterial.shadowMethod.epsilon = 0.2;
_groundMaterial.lightPicker = _lightPicker;
_groundMaterial.specular = 0;
_ground = new Mesh(new PlaneGeometry(1000, 1000), _groundMaterial);
Expand All @@ -151,7 +149,7 @@ package
_loader.scale(300);
_loader.z = -200;
_loader.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
_loader.loadData(new AntModel(), assetLoaderContext);
_loader.loadData(new AntModel(), assetLoaderContext, null, new Max3DSParser(false));
_view.scene.addChild(_loader);


Expand Down

0 comments on commit 316a728

Please sign in to comment.