关于顶点动画,ShaderX5里有篇专门来讲,在虚幻3引擎里也有一个更加丰富的实现。使用了一个Pivot Painter的3dmax脚本。其实自己灵活用vertex color可以避开使用Pivot painter。美术同学对这些还是蛮头晕的,能简单就简单。但是对于想要省shader来说,看看Sha...
分类:
其他好文 时间:
2014-11-25 15:43:58
阅读次数:
237
金正恩将军在朝鲜航天局宣布,要让朝鲜宇航员登陆太阳。一位中国记者问到,太阳这么热怎么登上去?顿时全场鸦雀无声,大家纷纷议论怎么会问这个问题。 这时,金将军缓缓说到,我们天黑去!说完全场朝鲜人民响起雷...
分类:
其他好文 时间:
2014-11-25 14:42:17
阅读次数:
219
在linux开发平台,c语言中调用标准库函数 sleep(), 需要引入头文件 #include?<unistd.h> ps: windows平台, 需要引入 #include?<windows.h> deep learning: http://blog.csdn.net/lxmky/article/details/70269...
分类:
其他好文 时间:
2014-11-25 14:41:06
阅读次数:
165
You can update the ports in your yaml configuration file: http:
??port:?9000
??adminPort:?9001 See http://dropwizard.codahale.com/manual/core/#configuration-defaults for more information. EDI...
分类:
其他好文 时间:
2014-11-25 14:40:23
阅读次数:
177
/**
?*?@brief?Codeforces?Round?#278?(Div.?2)?c
?*?@file?c.c
?*?@author?面码
?*?@created?2014/11/25?14:15
?*?@edited??2014/11/25?14:15
?*?@type?brute
?*
?*/
#include?<st...
分类:
其他好文 时间:
2014-11-25 14:39:53
阅读次数:
150
容斥原理...
分类:
其他好文 时间:
2014-11-25 14:39:48
阅读次数:
112
二叉查找树(Binary Search Tree)的遍历的方法有很多,通常使用的是递归的遍历,其便于理解,但是使用递归的话会造成程序运行的空间浪费,效率并不高。为此可以使用一个栈来模拟递归的过程,实现迭代版的二叉查找树的遍历。但是会使用到额外的存储空间,虽说在运行效率上比递归版的有所提高,但是额外的存储空间还是一定的浪费。但是如何减少额外的存储空间呢?我们知道二叉查找树是可以转换为一个双向环形链表...
分类:
其他好文 时间:
2014-11-25 14:39:21
阅读次数:
172
Description
One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers....
分类:
其他好文 时间:
2014-11-25 14:39:38
阅读次数:
275
客户端IP地址的获取与应用(考虑多级反向代理),在项目中,当涉及到IP地址的限制(如:内网访问等),或访问记录的存储展示等都需要获得访问者的IP地址,下面展示IP地址的获取方法:...
分类:
其他好文 时间:
2014-11-25 14:39:17
阅读次数:
112
Description
The problem is to multiply two integers X, Y. (0
Input
The input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.
Output
For...
分类:
其他好文 时间:
2014-11-25 14:39:45
阅读次数:
169
5.怎么使float保留两位小数或多位小数*
两种方法:
import java.math.*;
……
方法1:
float f = 34.232323;
BigDecimal b = new BigDecimal(f);
float f1 = b.setScale(2, BigDecimal.ROUND_HALF_UP).floatValue();
// b.setScale(2,...
分类:
其他好文 时间:
2014-11-25 14:38:56
阅读次数:
204
//
// UMAnalyticsHelper.m
// LJEUMAnalytics
//
// Created by xiaoyao on 14/11/25.
// Copyright (c) 2014年 lijien. All rights reserved.
//
#import "UMAnalyticsHelper.h"
#import "MobClick.h"
#defin...
分类:
其他好文 时间:
2014-11-25 14:38:13
阅读次数:
171
1、RPG(Role Playing Game) 角色扮演游戏
RPG游戏的核心是扮演,在玩法上通常是玩家扮演游戏中的一个或多个角色,—般有完整的故事情节。RPG游戏强调的是游戏的剧情发展和个人体验,这也是和冒险类游戏的重要区别之一。如:《仙剑奇侠传》
2、ACT(Action Game)动作游戏
ACT游戏的剧情一般比较简单,玩家控制游戏...
分类:
其他好文 时间:
2014-11-25 14:38:20
阅读次数:
263
题目大意:给出一些初始相互分离的岛,有三个操作,1.分析两点是否联通,如果不连通,在之间连一条边。2.更改一个点的权值。3.询问两点之间路径上所有点的点权和。
思路:基本算是LCT的模板题了吧,好久没写了,基本都要忘了,这是照别人代码写的。。。
CODE:
#include
#include
#include
#include
#define MAX 30010
...
分类:
其他好文 时间:
2014-11-25 14:35:20
阅读次数:
178
之前在C++ primer这本书上没有看到关于优先队列的东西,最近在看A*算法中看到
总结一下
priority_queue的用法
priority_queue调用 STL里面的 make_heap(), pop_heap(), push_heap() 算法实现,也算是堆的另外一种形式。先写一个用 STL 里面堆算法实现的与真正的STL里面的 priority_queue用法相似...
分类:
其他好文 时间:
2014-11-25 14:36:30
阅读次数:
307
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2014-11-25 14:35:41
阅读次数:
150
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with...
分类:
其他好文 时间:
2014-11-25 14:34:37
阅读次数:
210