|
datouaizi, Member
Posted: 15 July 2012 10:35 AM Total Posts: 98
ma code
line = new SegmentSet();
for(var i:int = 0 ; i < point.length ; i++) { if(point[i] != point[ point.length - 1]) { var seg:LineSegment = new LineSegment(point[i],point[ point.length - 1],color0,color1, thickness); line.addSegment(seg); } } line.material.bothSides = true ; scene.addChild(line);
when i rotate camera around line ,line doens`t appear in some angle,like plane`s material doesn`t set bothside = true .
so how to do make line appear in every angle ?
|
Richard Olsson, Administrator
Posted: 16 July 2012 09:44 AM Total Posts: 1192
[ # 1 ]
This sounds like a bug that was fixed very recently, and confirmed to be working again in the release branch just today. You can find the issue here: https://github.com/away3d/away3d-core-fp11/issues/56
So try with the release branch, or wait for the final 4.0 release that will be released very, very soon.
|
datouaizi, Member
Posted: 16 July 2012 10:06 AM Total Posts: 98
[ # 2 ]
today means 17/7/2012 in America?
|
Richard Olsson, Administrator
Posted: 16 July 2012 10:08 AM Total Posts: 1192
[ # 3 ]
No. Today means the time stated on the forum posts, which unless I’m mistaken is UTC. Bottom line is that if you try the release branch now it should work.
|
datouaizi, Member
Posted: 16 July 2012 12:00 PM Total Posts: 98
[ # 4 ]
hi,i use lastest release version ,but segment never appear in all Axis!
|
Richard Olsson, Administrator
Posted: 16 July 2012 12:04 PM Total Posts: 1192
[ # 5 ]
What do you mean by “release version”? This was only recently fixed in the branch that is called “release” in the away3d-core-fp11 GitHub repository. If you want to make sure you are using that version, and you are not familiar with Git, download it as a zip from here: http://github.com/away3d/away3d-core-fp11/zipball/release
|
datouaizi, Member
Posted: 16 July 2012 12:09 PM Total Posts: 98
[ # 6 ]
can I ask some question about away3d?
|
Richard Olsson, Administrator
Posted: 16 July 2012 12:24 PM Total Posts: 1192
[ # 7 ]
Of course you can. That’s what the forum is for. Don’t ask to ask, just create a thread and ask your questions (as you have already done here.)
|
datouaizi, Member
Posted: 16 July 2012 12:38 PM Total Posts: 98
[ # 8 ]
thanks !
1,object bitmapTexture is png type ,the half-transparent area in away3d become full-transparent,whatever alpha threshold is ,why ?
2,how to write a spriteMaterial ? i need this to show hot wind and cold wind runuing.long time ago some kind guy shared a TimelineMaterial,like
sprite material,but it doesn`t well work,sprite doesn`t` play .
sorry for my poor English!
|
datouaizi, Member
Posted: 16 July 2012 12:43 PM Total Posts: 98
[ # 9 ]
3,i create a mobile ,in my computer it show well,but in other`s it has more
sawtooth.
|
Richard Olsson, Administrator
Posted: 16 July 2012 12:47 PM Total Posts: 1192
[ # 10 ]
1. If you want semi-transparency, don’t use alphaThreshold at all. That entire purpose of that property is to only allow full opacity or full transparency, i.e. no semi-transparency. That’s a performance optimization. Instead, make sure that alphaBlending is true, meaning that the alpha will be “blended” from fully opaque to fully transparent.
2. There is not animated material built into the engine at this point. You can however create your own using UV transforms. There have been some threads on the forum about this, so try to have a look around and see if you can find them. The basic principle is that you scale the UVs so that they only map to a small portion of the texture, which you make into a texture atlas (i.e. several sprites distributed over the surface of the texture.) To animate it, you change the offsetU and offsetV properties of the relevant sub-mesh (Mesh.subMeshes[0] in most cases.) Make sure to remember to set animateUVs to true on the material though.
3. Mobile Stage3D does not support anti-aliasing. So I’m afraid the sawtoothing can’t be prevented.
|
datouaizi, Member
Posted: 16 July 2012 12:56 PM Total Posts: 98
[ # 11 ]
create mobile model not in mobile.
view.antiAlias = 4;
still need other sets?
|
Richard Olsson, Administrator
Posted: 16 July 2012 02:12 PM Total Posts: 1192
[ # 12 ]
That setting is ignored on mobile, because on mobile the anti-aliasing is always disabled by Stage3D. That’s not an Away3D limitation. It’s a limitation of the platform.
|
vineoneo, Newbie
Posted: 05 June 2013 03:46 AM Total Posts: 1
[ # 13 ]
|