Camera Clipping

Software: Away3D 4.x

Avatar
Baush, Sr. Member
Posted: 04 October 2011 01:20 PM   Total Posts: 135   [ # 16 ]

I can confirm that the SkyBox was causing the problem. Removing it solved the problem.. There may be a z-sorting conflict between sprite3D and Skyboxes.

Let me know if you can’t reproduce it and need me to build a minimal sample of the problem.

Thanks !

   

Avatar
Alejandro Santander, Administrator
Posted: 04 October 2011 02:12 PM   Total Posts: 414   [ # 17 ]

Yes, we’re nailing this bug!

I added a skybox and can confirm that this is causing a conflict with clipping on alpha-ed sprites. I’ve filed this as an issue on Github: https://github.com/away3d/away3d-core-fp11/issues/132

Without skybox: http://www.lidev.com.ar/tests/away3d/sprites_skybox/without_skybox/ (alpha blended sprites and alpha threshold-ed sprites work as expected)
With skybox: http://www.lidev.com.ar/tests/away3d/sprites_skybox/with_skybox/ (alpha threshold-ed sprites only start to become visible with camera zoom out)

view.camera.lens.far 5000;
   
view.backgroundColor 0xFF00FF;

   var 
r:Number 5000;

   var 
tri:Trident = new Trident();
   
view.scene.addChild(tri);

   var 
colorMaterial:ColorMaterial = new ColorMaterial(0xFFFFFF);
   var 
plane:Plane = new Plane(colorMaterialrrr);
   
plane.= -r/2;
   
view.scene.addChild(plane);

   var 
bmd:BitmapData = new BitmapData(512512true0xFF000000);
   
bmd.perlinNoise(484818falsetrueBitmapDataChannel.RED BitmapDataChannel.ALPHAtrue);
   var 
bmd1:BitmapData bmd.clone();
   
bmd1.colorTransformbmd.rect, new ColorTransform(100) );

   var 
bitmapMaterialForBlending:BitmapMaterial = new BitmapMaterial(bmd);
   
bitmapMaterialForBlending.alphaBlending true;

   var 
bitmapMaterialForThreshold:BitmapMaterial = new BitmapMaterial(bmd1);
   
bitmapMaterialForThreshold.alphaThreshold 0.5;

   var 
toRads:Number Math.PI 180;
   for(var 
i:uint90; ++i)
   
{
    
var sprite:Sprite3D = new Sprite3D== bitmapMaterialForThreshold bitmapMaterialForBlending 500500);
    
sprite.0.7 Math.costoRads );
    
sprite.0.7 Math.sintoRads );
    
view.scene.addChild(sprite);
   
}

   
var perlin:BitmapData = new BitmapData(256256false0);
   
perlin.perlinNoise(50508uint(1000*Math.random()), falsetrue7true);
   var 
map:CubeMap = new CubeMap(perlinperlinperlinperlinperlinperlin);
   var 
skybox:SkyBox = new SkyBox(map);
//   view.scene.addChild(skybox); // uncomment to see sprite/skybox conflict 
   

bildakid, Newbie
Posted: 19 January 2012 02:59 PM   Total Posts: 4   [ # 18 ]

I’m having the same problem, I’m creating a vr tour of a couple rooms, but for some reason the camera is only showing the walls that are close to the camera, as I walk along I can see more walls as I move, but the disapearing walls floor and clieling are definally connected to the distance from the camera becasue it’s constant. Did anyone find out what was happening.

   

Avatar
Baush, Sr. Member
Posted: 19 January 2012 08:44 PM   Total Posts: 135   [ # 19 ]

Hello bildakid, did you try playing around with the camera.lens.near and .far values or it’s a different problem?

   

bildakid, Newbie
Posted: 19 January 2012 08:50 PM   Total Posts: 4   [ # 20 ]

thank you for the reply the near and far values did the trick, finally getting to see what’s inside my model.

   

torich, Newbie
Posted: 31 July 2012 06:49 AM   Total Posts: 1   [ # 21 ]

Hello Kitty Camera

The camera is cute, but that’s about it. Feels and looks very cheap. Controls are not user-friendly, especially for a child. You lose any/all pictures on the camera if you have to change the batteries. Display screen on back is useless. Pictures are very low res.

Hello kitty camera is the best one camera that i ever seen. This camera very funny. The price also inexpensive. Very suit for girl. I think this camera very unique and beautiful. More people today buy it. For more information you can read it at : hello kitty camera

   

hellensm, Newbie
Posted: 13 August 2012 01:42 PM   Total Posts: 1   [ # 22 ]

Poloroid Camera

Polaroid began a revolution in photography by introducing a camera that could deliver instant pictures. Today, the revolution continues with digital cameras, also able to offer instant pictures. If you have decided to buy a new Polaroid camera, you must read some reviews and make sure you get a good price. You can view the review at : poloroid camera

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X