自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (2)
  • 收藏
  • 关注

原创 c++ io manipulator

c++ io manipulatorI use this kind of io manipular now and then.std::cout Let's look at std::setw first,  it's defined as:_MRTIMP2 _Smanip __cdecl setw(streamsize wide) { // manipulator to set

2015-02-07 10:54:26 1087

原创 开源Ogre实时脚本编辑器Beta1.11

1.11版本简化了脚本创建。在准备好hlsl的基础上只需1个命令就可以创建好program跟material.

2015-01-14 18:10:23 602

原创 Memory allocate in Ogre

Every memory in ogre will be allocated from AllocatedObject, it use Policy to switch from different allocators.

2015-01-11 08:44:40 825

转载 Unity build

Unity buildOriginal articlePrincipleThe principle is pretty simply, ub(unity build) create an extra .cpp fiile which will include all the other cpp file. Then compile this file, so you onl

2015-01-04 13:11:56 717

原创 Use ogre rtt in cegui 0.8

Ogre rtt in cegui  0.8It's easy to display ogre rtt in cegui, but something should be taking care of.1. set up ogre texturempOgreTexture = &static_cast(getOgreRenderer()->createTexture("Ogre

2015-01-01 08:49:26 996

原创 note--Memory allocate in game

Dynamic memory allocation in gameCustom dynamic memory allocation is need in game or game engine because:1. Dynamic memory allocation via malloc() or C++’s global operator new is a very slow o

2014-12-29 11:05:18 421

转载 Class member attribute memory

This is what i learned from the book Game Engine Architecure. Let's see an example first:class A{private:float f;bool b1;double d;bool b2;};One instance of this class take 24

2014-12-28 20:40:37 331

原创 Remote debug in windows

For a lot of time, everything goes fine in your computer, but failed in others.Remote debug proved to be great helpful in this kind of situation.It pretty easystep1: downlad remote tool  fro

2014-12-28 20:07:48 309

原创 Light

DirectionalJust like sun light, light position means nothing,the only thing matters in directional is drectionPointJust like candle light, it has no direction, it illuminats every directio

2014-12-28 19:33:34 371

转载 Atan2

Some thing i should know about atant2:Most content of this article copyed from wikipediaThe purpose of using two arguments instead of one is to gather information on the signs of the inputs in ord

2014-12-28 19:05:22 605

原创 create loop with help of mathematica

It's pretty easy to find loop with help of mathematicaLet's say i want to scale a ball in 3d spacei want it to start as original onethan get bigger and bigger as time goes bywhen it's big en

2014-12-28 18:36:48 423

原创 line segment and point

O is arbitary pointAB = t ACConclusionOB = (1 - t)OA + t OCif 0 if t > 1,   point B is on right side of Cif t Proof:OB = OA + AB       = OA +  t(OC - OA)       = (1 - t)OA + t OC

2014-12-28 18:04:55 6906

原创 My favourate shortcut in visual studio

Some of these shortcut comes with vassistx, some is defined by my selfclipboard                                           ctrl + shift + v            increment search                        

2014-12-28 16:51:25 283

原创 3d plane

Format:1. Ax + By + Cz + D = 0;2. dot(n, p) + d = 0,   d = - dot(n, p)          //p = {x, y, z}        3. dot(L, P) = 0            // L = [n, d],  //P = {x, y, z, 1}, the same as p in homogeno

2014-12-28 15:22:38 393

原创 Yaw pitch roll

Rotate direction:  get your coordinate hand, align your thumb to the rotation axes,  winding direction of other finger will be our rotate directionMathematic script:unitX = UnitVector[3, 1]unitY

2014-12-28 12:15:47 405

原创 normal transform

conclusion:if T is orthogonaln'  = Tnelse       n' = inverse(transpose(T))nProof: normal n, arbitray point p1, p2  on plane. dot(n, (p1- p2)) = 0          ==>             transpose(n)(p1

2014-12-28 09:31:31 396

原创 Ogre实时脚本编辑器

Ogre实时脚本编辑器,支持.material, .particle, .compositor, .program

2014-12-19 21:23:16 562

OseBeta1.10

Ogre实时脚本编辑器 当前支持 .material .particle .program .compositor

2015-01-09

OseBeta1.00

自制Ogre实时脚本编辑器。 类似命令行模式。

2014-12-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除