Monday, January 11, 2016

 Stunning 3D desktop, a variety of effects, TSF Desktop demo version, now share with you




            


l Do you also want to develop 3D applications, but they can not start.
l Have you ever been TSF SHELL 3D desktop attract brilliant, you are not also want to do some yourself.
l some time ago with a lot of time, study a little of its implementation, and then by means of the NB libgdx, package implements a fast developing similar 3D application architecture.
l Using this architecture, implements a fake TSF desktop, the effect is good.
l 800 * 480 on my cottage can run out very beautiful effect, but the power situation is also acceptable.
l Please God look at the way to the point (material direct copy TSF)


Picture more, if more cards here, you can see the album to my Baidu.
http://xiangce.baidu.com/picture/album/list/04402feb0ff8c029ff77abce2e7b961dc496981a

Source is relatively large, do not pass up, if necessary, sagaofmoon @ gmail.com


(I spotted only at night)

/ *
* Fade effects page
* /
public class EffectFadeView extends SlideScreenView {

private final String TAG = "EffectFadeView";

private float SPosition [], SColor [], STextureVet [], CurPosition [];

public EffectFadeView (VLayoutParams params, List & lt; NAppInfo & gt; mappInfoList) {
super (params, mappInfoList);
int count = ApageAppNumber * 4 * 3;
CurPosition = new float [count];
for (int i = 0; i & lt; count; i ++) {
CurPosition = SPosition;
}
}
Override
public void InitSour (float [] Position, float [] Color, float [] TextureVet) {
SPosition = Position;
SColor = Color;
STextureVet = TextureVet;
}
Override
public void StartExpend () {

}
Override
public void StartShrink () {

}
Override
public boolean TimeChangeVet () {
return false;
}
Override
public void TouchChangeVet (float [] Position, float [] Color,
float [] TextureVet, float TouchX, int Screen) {
int view_width = mDisplayWidth2D;
int app_count = mApageAppNumber * 4;
int i = 0;

// Assignment
for (i = 0; i & lt; CurPosition.length; i ++) {
Position = CurPosition;
}

for (i = 0; i & lt; SColor.length; i ++) {
Color = SColor;
}

for (i = 0; i & lt; STextureVet.length; i ++) {
TextureVet = STextureVet;
}

// The touch position, change transparency, and size
float Alf = (view_width - Math.abs (TouchX)) / view_width;
TouchX - = view_width;
float Scale = (-TouchX) / view_width;

// Change the size and transparency
for (i = 0; i & lt; app_count; i ++) {
Position [i * 3 + 0] * = Scale;
Position [i * 3 + 1] * = Scale;
Position [i * 3 + 2] * = Scale;
Color [i * 4 + 3] = Alf;
Color [i * 4 + 2] = Alf;
Color [i * 4 + 1] = Alf;
Color [i * 4 + 0] = Alf;
}
}
}


Reply:
[Img = http: //img.blog.csdn.net/20130502232642858] [/ img]
Reply:

Reply:

Reply:
Wow looks pretty good
Reply:
Finally goes renderings very powerful ah
Reply:
Wow looks pretty good
Reply:
This effect is too strong
Reply:
Sawtooth! Eternal pain!
Reply:
Indeed, serrated unavoidable ah
Reply:
A more detailed description, see my blog
http://blog.csdn.net/u010458632/article/details/8878208
Reply:
quote the 10th floor u010458632 reply:
a more detailed description, see my blog
http://blog.csdn.net/u010458632/article/details/8878208

Source can share?
changsheng1005@vip.qq.com
Reply:
This is too praised the landlord seeking to share zhaozhongya2@126.com
Reply:
This is too praised the landlord seeking to share zhaozhongya2@126.com
Reply:
This is too praised the landlord seeking to share zhaozhongya2@126.com
Reply:
I envy ah, the landlord too strong
Reply:

Reply:
Very praise, support what the landlord, relatively good 3D effect
Reply:
Well, I want to try.
Reply:
Powerful ah ah ah ah ah
Reply:
Wow! The landlord is too much! Want to learn about, to share the source code it? Thank you! 1006458849@qq.com
Reply:
Trouble pass parts of the code 1298310223@qq.com

No comments:

Post a Comment