RangeError: Error #3669 where range error is not possible. 

Software: Away3D 4.x

gazuraz, Newbie
Posted: 11 November 2012 01:07 PM   Total Posts: 5

Well I am very surprised ... Usually when one starts experimenting whit new technologies first big unsolvable error comes when doing advanced tutorials. Mine came at the hello world.

package 
{
 import away3d
.containers.View3D;
 
import away3d.entities.Mesh;
 
import away3d.materials.TextureMaterial;
 
import away3d.primitives.PlaneGeometry;
 
import away3d.textures.BitmapTexture;
 
import flash.display.Sprite;
 
import flash.events.Event;
 
 
/**
  * ...
  * @author Gazuraz
  */
 
public class Main extends Sprite 
 {
  
private var view:View3D;
  
[Embed("spaceship.jpg")]
  
public static const SpaceShip  : Class;
  
  public function 
Main():void 
  {
   
if (stageinit();
   else 
addEventListener(Event.ADDED_TO_STAGEinit);
  
}
  
  
private function init(e:Event null):void 
  {
   removeEventListener
(Event.ADDED_TO_STAGEinit);
   
// entry point
   
view = new View3D();
   
addChild(view);
   
   var 
texture:BitmapTexture = new BitmapTexture(new SpaceShip().bitmapData);
   var 
material_texture:TextureMaterial = new TextureMaterial(texture);
   var  
_view:Mesh = new Mesh(new PlaneGeometry(25625611truetrue), material_texture); 
   
   
view.scene.addChild(_view);
   
_view.rotationX 90;
   
   
addEventListener(Event.ENTER_FRAMErender);
   
  
}
  
  
private function render(e:Event):void 
  {
   view
.render();
  
}
  
 }
 

throws error:

RangeError: Error #3669: Bad input size.
at flash.display3D::VertexBuffer3D/uploadFromVector()

Normally I would expect this to happen when using advanced meshes and not simple poor basic plane whit 256 X 256 px jpg on a 8 GB RAM computer whit 1024 mb of gamer graphic card….  Does some one know how to fix this ?

The Error is related whit doubleSided property. When material is not doubleSided there is no error.

 

File Attachments
TestingMolehill.zip  (File Size: 288KB - Downloads: 290)
   

Avatar
Fabrice Closier, Administrator
Posted: 11 November 2012 01:29 PM   Total Posts: 1265   [ # 1 ]

This bug has been fixed. Either use the PlaneGeometry class from dev branch or do not pass the boolean doubleside to your constructor.

   

gazuraz, Newbie
Posted: 11 November 2012 01:42 PM   Total Posts: 5   [ # 2 ]

Many thanks smile that fixed the problem.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X