- 博客(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
1128
原创 开源Ogre实时脚本编辑器Beta1.11
1.11版本简化了脚本创建。在准备好hlsl的基础上只需1个命令就可以创建好program跟material.
2015-01-14 18:10:23
637
原创 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
851
转载 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
759
原创 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
1025
原创 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
450
转载 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
356
原创 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
341
原创 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
399
转载 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
657
原创 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
447
原创 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
6936
原创 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
305
原创 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
421
原创 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
447
原创 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
418
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人