Away3D Forum 0 Copyright (c) 2013 ExpressionEngine tag:away3d.com,2013:05:21 Displacement filter 3D - Fisheye Effect - Fragment Samplers are black when setTextureAt - WTF? tag:away3d.com,2013:forum/viewthread/.4524 2013-05-21T13:23:11Z 0 FLAmaniac hi,
I am trying to create displacement filter.
I create displacment based on procedural map ( sin) but i look bad.

I want to set additional texture for Fragment shader but something is wrong.
Were i put texture to sampler i get black image on fs0 (i want to post process/displace currentFrame of view3d)

my code in FishEyeFilterTask

override protected function getVertexCode():String
{
   
 
return  "mov op, va0n" 
   
"mov v0, va1n";
}
override 
protected function getFragmentCode():String
{
 
//trying to get view when context.setTextureAt(1, _t); is call = black screen on all samplers
 
return "tex oc, v0, fs0 <2d,linear,nomip>n";

}

override 
public function activatestage3DProxy:Stage3DProxycamera3D:Camera3DdepthTexture:Texture ):void
  {
   
// TODO: not used
   
camera3D camera3D;
   
depthTexture depthTexture;
   
   var 
context:Context3D stage3DProxy._context3D;
   
//set on sampler1 but all saplers are black
   
context.setTextureAt(1_t);

   
context.setProgramConstantsFromVectorContext3DProgramType.VERTEX0_data);
   
context.setProgramConstantsFromVectorContext3DProgramType.FRAGMENT0_data);
  

trying to get view when context.setTextureAt(1, _t);  (_t is displacment map texture) is called = black screen on all samplers
I only get something when i put displacment map texture on fs0 but this owerrides screen frame.

yes i am changing fragment code to sample 1to see displacment map but it is black (fs0 also)

return “tex oc, v0, fs1 <2d,linear,nomip>n”;

]]>
25 SkeletonAnimator,5FPS,Why ? tag:away3d.com,2013:forum/viewthread/.4522 2013-05-21T08:28:55Z 0 Marshal var mesh:Mesh =  AssetLibrary.getAsset(_meshTag) as Mesh;
  _item = mesh.clone() as Mesh;
  _skeleton =  AssetLibrary.getAsset( _skeletonTag ) as Skeleton;
  var animationSet:SkeletonAnimationSet = new SkeletonAnimationSet(3);
  for(var i :int ; i <_animationTag.length;i++){
animationSet.addAnimation(AssetLibrary.getAsset( _animationTag ) as AnimationNodeBase);
};
  _animator = new SkeletonAnimator(animationSet, _skeleton);    _animator.updatePositi
  this.addChild(_item);

]]>
3ds awd export uv problem tag:away3d.com,2013:forum/viewthread/.4523 2013-05-21T08:36:31Z 0 cledus Hi all!

I’m using the awd exporter for max. I have two problems.

1. When I export with uv’s I get a hard seam on the model. I have attaches a images. A simple cylinder exported with and without the “Include texture co-ordinates” option checked.

2. The smoothing gets really strange. Its like away3d tries to “smooth” the model. This problem disappears if I increase the tessellation.

If I export to .obj non of this problems appears.

The reason I’m using awd is because I need simple animation, like a handle on a bucket raise and material. Is there another file-format that supports this in away3d.

Have a great day everybody!

]]>
How can I use OutlinePass? tag:away3d.com,2013:forum/viewthread/.4518 2013-05-21T00:43:33Z 0 maricate I’ve been reading but did not understand how to use or apply.
What I need is a wireframe plan where I can control the alpha.
I could not control this through other methods.
I found this method OutlinePass, but could not apply it.
Could someone please give an example?

Thank you!

]]>
Flexible terrain generation tag:away3d.com,2013:forum/viewthread/.4496 2013-05-17T15:03:53Z 2013-05-17T15:05:26Z SuperSam Hi,

I would like to know the current capabilities of Away3D in terms of terrain generation.

I know of a couple ways to generate terrain:
- Using heightmaps, it’s fast but not flexible, and kind of boring and repetitive anyway.
- Using actual meshes, it’s very flexible but might be overkill, and possibly you cannot make large landscapes easily for performance reasons (or can you ?).


Recently I found a third way to generate terrain. It’s from the Phyre Engine and is described here (PDF back from 2008, the engine must have evolved since then).


I don’t know the official name of that technique, but based on what I read from the paper I’ll call it “High order surface terrain generation”.


Just read the overview part of the paper for a general idea in terms of terrain “features”. Every single point listed in the Goals subsection is exactly what I am looking for.


Can Away3D allow me to do that currently ?

If yes, could you hint me on how ?
If not, do you think I can reasonably hope to see it added within the next 3 months ? 6 ? 12 ? Unlikely any time soon ?


Thanks a bunch !

]]>
Zooming textures tag:away3d.com,2013:forum/viewthread/.4482 2013-05-13T18:07:22Z 2013-05-13T18:11:47Z Pokey Hello,

I am very new to Away3D, so I ask your patience with my ignorance.

First I would like to say that I am very impressed by the Away3D project and I am extremely grateful to all the contributors.

I am trying to make a globe that supports extensive zooming. The approach I have used in a simple 2D version of my project is to split the image into multiple tiles (3600 in this case) and then use JavaScript to load (swap out the image url) higher resolution jpegs for the tiles that are visible and load low res jpegs for the tiles that are not visible (to save memory).

The further in the user zooms, the fewer tiles are visible but are in higher resolution. When the user zooms out, more tiles are visible but loaded with lower resolution.

Is there a way to do something similar with a sphere in Away3D?

Thanks in advance for your patience and help!

]]>
Earth and texture swapping on zoom tag:away3d.com,2013:forum/viewthread/.4521 2013-05-21T08:22:24Z 0 Dlate Hi,

This has probably been discussed in previous posts, but i was unable to find a clear anwser.

I have an earth globe and i want to show higher resolution texture(s) upon zooming in. Away3d has maximum texture size of 2048x2048.

Im wondering whats best practice to show higher resolution textures, and if there are any examples available.

Many thanks!

]]>
4.11 and Flash Cs6 Context3D tag:away3d.com,2013:forum/viewthread/.4520 2013-05-21T07:25:31Z 0 FJW Hi
Am trying to begin a new project but can’t get past context3D error.
have put the zip file here. Could anyone show me how to solve this bad
beginning?
Best
Frederick

]]>
World like from Minecraft tag:away3d.com,2011:forum/viewthread/.1451 2011-11-25T20:46:39Z 2011-12-01T23:33:39Z Rayen123 I am trying make level like minecraft (just only 20x20x20 cube), but it has low fps. How I can optimalize it for more lot of cubes (etc. 200x200x200) with high fps ? Thanks
s.txt

( I think its posible, look this http://www.youtube.com/watch?v=c0IwvN4IdH4&t=43 )

]]>
Strategy camera tag:away3d.com,2013:forum/viewthread/.4506 2013-05-19T14:48:13Z 2013-05-19T16:29:10Z izharkov Hello!

How to make strategy camera in Away3D like in this video? Is there some examples? Can anyone help?

]]>