转载自http://blog.csdn.net/jesse__zhong/article/details/24934083使用双surface,将第一个设置为透明背景,在摄像机上绘制图像,纠结搞了一天。其中参考了http://blog.csdn.net/yanzi1225627/article/de...
分类:
移动开发 时间:
2015-08-02 21:24:15
阅读次数:
1467
由于《深入理解Android 卷一》和《深入理解Android卷二》不再出版,而知识的传播不应该因为纸质媒介的问题而中断,所以我将在CSDN博客中全文转发这两本书的全部内容。第8章 深入理解Surface系统本章主要内容· 详细分析一个Activity的显示过程。· 详细分析Surface。· 详细分析SurfaceFlinger。本章涉及的源代码文件名及位置:· ActivityThre...
分类:
移动开发 时间:
2015-08-02 18:24:19
阅读次数:
358
我只想说我遇到过多少奇葩的bug啊。。。这么奇葩的错误我竟然能debug出来真是醉醉的
cgal4.5之后,有实现surface_mesh_deformation的example。
1.如何正常编译example?
最好是在编译cgal的时候,cmake中的entry就有,勾选上with_eigen,然后配置include目录即可。
这样以后省事,所以编译cgal的时候,要好好检查...
分类:
其他好文 时间:
2015-08-02 16:51:21
阅读次数:
224
一、Surface
Surface在SDK的文档中的描述是这样的:Handle onto a raw buffer that is being managed by the screen compositor,Android中的Surface就是一个用来画图形(graphics)或图像(image)的地方,对于View及其子类,都是画在Surface上,各Surface对象通过Surf...
分类:
移动开发 时间:
2015-07-31 13:03:46
阅读次数:
175
一,surface shader中访问worldposition在surface shader中访问世界坐标,只需在Input结构体中声明float3 worldPos即可,如下: structInput{float2uv_MainTex;float3worldPos;};voidsurf(In.....
分类:
数据库 时间:
2015-07-30 14:51:12
阅读次数:
380
#include
#include "/usr/local/ffmpeg_arm/include/SDL/SDL.h"
char *bmp_name[3] = {"000.bmp","111.bmp","222.bmp"};
int main()
{
int i=0;
//The images
SDL_Surface* hello = NULL;
SDL_Surfa...
分类:
系统相关 时间:
2015-07-28 18:50:59
阅读次数:
218
Twelves Monkeys
Time Limit: 5 Seconds Memory Limit: 32768 KB
James Cole is a convicted criminal living beneath a post-apocalyptic Philadelphia. Many years ago, the Earth's surface had been ...
分类:
其他好文 时间:
2015-07-28 10:54:16
阅读次数:
149
要实现双面透明无光照只有纹理色的surface shader。错误的写法:(导致带有曝光)Shader "Custom/doubleFaceTranspTexColor" { Properties { _Color ("Color", Color) = (1,1,1,1) _...
分类:
编程语言 时间:
2015-07-27 14:42:06
阅读次数:
195
//ref:Customdatacomputedper-vertex:http://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.htmlShader"Custom/myStandard_vertexColor"{Properties{_Color...
分类:
编程语言 时间:
2015-07-26 19:03:17
阅读次数:
203
Surface Shader: (1)必须放在SubShdader块,不能放在Pass内部; (2)#pragma sufrace surfaceFunction lightModel [optionalparams] (3)格式 CG规定了声明为表面着色器的方法(就是我们这里的surf)的...
分类:
其他好文 时间:
2015-07-26 18:54:54
阅读次数:
149