conflict of dimensions

Rush for Glory on Steam —

I’m really excited to announce the release of Rush for Glory on Steam. I can’t wait to hear all feedback about the game and I will do my very best to deliver a great game experience!


What’s news —

I changed the design of the engine in the next version. In the new design, I have separate main library of the engine. It includes memory allocators, containers, random system, basic math functions, simple memory leak and memory corruption detector, callstack system and crash reporter. All of these stuffs are now simpler, more optimized and more easy to use.

Developing memory leak detector and callstack system is straight forward and you can find many samples on the net easily. But I was thinking to find a solution to detect memory corruptions. I found that it’s really complicated and it isn’t suits on me. My problem was not much trouble and there was no need to use complex solutions. All I needs was a simple system to checks the array bounds. So my memory corruption detector does that for me fast and secure. Although it may not report all memory corruptions but it can do for many of them.

The new system can report memory status, callstack with every value in every call when the system is running or crashed. It is a trick. When a crash happens on the application side, the function “DllMain()” called to detach the library. There I check the flags and memory status to verify that application closed unexpectedly and report memory statuses. This works well on Microsoft Windows. But I have no idea about the other platforms.

My next news title is about the network system. The new version has a basic network system based on UDP protocol. The system has been guaranteed to create a connection which supports reliable data order, request for loosed critical data, merge and compress data packets and connection speed controller to prevent data accumulation. The network system contains Client, Server, Connection and socket objects which allows the developer to design any network paradigm based on the genre of the game.

In the Client/Server architecture, the Server object has been featured by broadcast capabilities to create a game session with specified number of clients to join. The Client object can list the game sessions and let the player to choose a game to join. Also there are Connection object and Socket object to design the other network architectures as like as peer to peer connections, stars, mesh, etc. I wrote the network system recently and still need more optimization and debug and probably we will test it on “Rush for Glory”.

Next Container Library —

Developing Rush for Glory game is going to be finished. so I decided to rewrite some parts of the engine recently. this may cause to rewrite the whole source code. at the first step I rewrote the containers library. in this new version I changed structure of containers for decrease usage of templates<> which make code ugly. I used sampler to decrease allocations. also implementing memory allocators is more easy that before and changeable during the code in some cases. finally implementing new memory allocator which uses stack memory to avoid calling malloc function.

Note that some new features are not designed for general purposes. there are many limitations to using them and must be used with care because those features are designed to develop game and most of capabilities are depend on needs of a game engine.

Here are some highlights :

Added math base functions to the library with some fast functions like :

// fast sqrt root using Log Base 2 Approximation With One Extra Babylonian Steps
float sx_sqrt_fast( const float x );

// return sine( x ) from table. maximum absolute error is 0.001f
float sx_sin_fast( const float x );

// return cosine( x ) from table. maximum absolute error is 0.001f
float sx_cos_fast( const float x );

// compute sine and cosine of the angle x in same time. maximum error is 0.001f
void sx_sin_cos_fast( const float IN x, float& OUT s, float& OUT c);

and some useful conventional functions

MemManFixed::SetBuffer(void* buffer);
I can change the memory buffer of the allocator by setting a new buffer. this feature is available only on fixed memory manager. it means that it’s suitable just for arrays and strings.
For example I wanna change/fill an string in an structure. in this example when I set members of structure to the allocator, all string functions can be applied easily.

struct FileInfo {
wchar path[256];
wchar name[64];
wchar type[32];

FileIfo fileInfo;

MemManFixed memTmp;
String strTmp( 0, &memTmp );

// extract file path from file name and copy that to fileInfo.path
memTmp.SetBuffer( &fileInfo.path );
strTmp = fileName;

// extract name of the file and copy that to
memTmp.SetBuffer( & );
strTmp = fileName;

// extract file type and copy that to the fileInfo.type
memTmp.SetBuffer( &fileInfo.type );
strTmp = fileName;

This memory manager use memory stack of function. by the way this feature is available only on fixed memory manager. this means that it’s suitable just for arrays and strings.

In this example I try to collect some nodes from the scene manager. this will happens at each frame more than once, at renderer, AI system & etc. implementing new Array class cause to calling allocation/deallocation. the other solution is declaring static array. the other solution is using memory stack with some limitation but fast and easy memory management.
example :

MemManFixed_inline<MAX_NODE_COUNT> tmpMem;
Array<Node*> nodes( 0, &tmpMem );

// collect nodes from the scene manager
g_engine->m_scene->GetNodesByFrustum( cameraFrustum, nodes );

for ( int i = 0; i < nodes.Count(); ++i )
// ... do something !

Although there are some changes like adding new functions, changing algorithms in the other stuff to increase performance and capabilities, but those still need to be optimized more and more. oh I forgot to say that I put away namespaces in c++. those things are not suitable for game programming and maybe not suitable at all !

Terrain :: Geometry —

The Terrain for seganx engine is going to be completed. in this post I will describe the geometry algorithms I used for rendering the terrain briefly. my approach to design this feature was easy to use, simple and straight forward implementing. Artist/Level designer can easily:
– create geometry every where and every amount that was required.
– increase performance by implementing LOD and patching geometries to reach minimum draw call.

As I mentioned before, everything in the scene is a kind of node member. In this method the terrain is like the other members ( mesh, particle, sound, … ). The terrain is a node member too. Thus for importing terrain to the scene we must create terrain and attach it to the node and then add the node to the scene. so we can create any number of terrain and add them to the scene. But to reaching the goals which mentioned above I design terrain members with some more information.

Geometry data
Each terrain member has a fixed 33×33 vertices placed in grid style. I choose this size because I want to generate 6 levels of details. With 33×33 vertices we have 32×32 quads for first level. This means if we half each level for 6 times, finally we will have one quad for lowest level of details. Choosing vertices for each level will do by using 6 static fixed size LOD structures called TerrainLOD that used for all terrain members. Thus, there is no need to more indices/vertices for each level and we just choose a correct LOD structure depends on view distance. So for rendering all terrain members I used a big buffer and append to that big buffer vertices of all terrain members in view port. Appending process just applied on vertices which described in LOD structure. Finally, the terrain will draw by one draw call.

T-junction problem
T-junction problem appears between terrain blocks with different LOD and make terrain ugly. The picture in below illustrate this problem clearly:

T-Junction between LODs

There are several ways to remove these junction problems. according to ‘Geometry Data’ of terrain in engine I defined and implemented a simple structure to describe indices for each LOD. this structure split indices for each LOD to 9 part :

typedef struct TerrainLOD
    TerrainChunk    center;         //  standard center
    TerrainChunk    sideFUL[4];     //  standard 4 sides
    TerrainChunk    sideLOD[4];     //  simplified 4 sides

Indices of center in this structure contain polygon indices that cover the center except 4 sides “up, right, down, left”. these sides will covered by sideFUL or sideLOD. sideFUL contain indices to cover with all polygons in that LOD and sideLOD contain simplified indices.

Choosing which side ( sideFUL or sideLOD ) to use as indices is simple. we can easily predict the LOD of neighbors. to predict LOD of each neighbors I compute the neighbor’s position by adding fixed terrain size to current position. by passing this position to some special functions we can get neighbor’s LOD number depend on current camera properties. for each neighbor which uses less details we append sideLOD to the big buffer, otherwise we use sideFUL. here is an screen shot for terrain in wire frame mode :

Terrain rendering in seganx engine

My next task is choosing and implementing terrain material system. current system support multilayer material system. but implementing brush, gathering information of each brush on terrain to increasing performance, optimization and optimization and optimization still need more and more and more works. but now I have to spend more time to cnep game project.

what is race essay cheap dissertation chapter writing sites gb help with my education annotated bibliography cheap blog post editor site for college best thesis editing website usa type my shakespeare studies dissertation results best application letter ghostwriters services for masters professional university essay proofreading site ca professional analysis essay ghostwriters site ca who is peyton farquhar cheap assignment proofreading website for college popular rhetorical analysis essay writing services for university top dissertation results editor website for school professional academic essay writers services for university esl article review ghostwriter site for school order environmental studies dissertation proposal custom school movie review sample professional mba thesis examples annotated bibliography writers website ca phd writers site ca type my esl reflective essay on lincoln buy best definition essay on hacking custom school descriptive essay samples esl papers writers sites gb custom custom essay writer sites ca best critical thinking ghostwriters website online popular college essay ghostwriters websites gb type my leadership movie review popular scholarship essay editing website for school lord of the flies tone best literature review ghostwriting website for college popular custom essay editor sites online cheap business plan ghostwriters sites for mba write me best university essay on shakespeare do my remedial math homework custom definition essay editor site for school order best academic essay on brexit cheap dissertation hypothesis writer websites uk popular critical analysis essay ghostwriter services online top critical thinking ghostwriter site custom custom essay ghostwriters sites au best application letter writing services for phd cheap paper ghostwriting sites for phd top school dissertation hypothesis examples popular college dissertation results ideas custom cover letter writer site for college custom article editing sites ca article editor service us do my marketing business plan esl blog writer website gb esl thesis statement ghostwriting service for university cheap reflective essay writers website for phd cheap writing website for university critical essay editor services au best movie review editing website gb anthropology essay writers for hire top article ghostwriting websites usa buy popular descriptive essay on pokemon go esl masters critical analysis essay examples cheap papers ghostwriting service for school best case study proofreading services for mba cheap speech proofreading website popular letter writers site us popular mba essay proofreading services online pay to do esl content online top dissertation hypothesis ghostwriter services for masters esl thesis statement ghostwriter service for university pay to do physics course work custom thesis ghostwriters website ca top speech ghostwriter site for school best dissertation abstract writers services online help me write popular university essay online professional dissertation conclusion ghostwriters websites usa popular paper proofreading websites for masters popular editor site online professional thesis statement writing websites for phd best definition essay writer for hire online professional creative writing ghostwriters sites usa best descriptive essay editor websites ca top definition essay editing for hire for mba custom thesis statement editor websites ca esl thesis proposal editing websites for mba top dissertation proposal proofreading sites au write my ecology article review pay to do cheap reflective essay on founding fathers critical thinking ghostwriters for hire au esl creative essay editing for hire ca popular argumentative essay writers service for mba esl thesis proposal editor site gb geography editor sites esl book review writers service for phd cheap essays editing site uk do my esl argumentative essay on shakespeare professional dissertation abstract ghostwriting websites ca popular assignment editing websites for mba buy top descriptive essay on brexit cheap best essay editing for hire for masters custom curriculum vitae writing service for university best mba essay writer website custom analysis essay editing site ca do my logic dissertation professional letter ghostwriting sites au type my geometry dissertation results pay for logic speech professional admission paper ghostwriting service usa cheap analysis essay proofreading websites professional critical thinking editor sites online cheap phd essay ghostwriters service for masters best reflective essay ghostwriters sites for college esl blog writing service uk popular cover letter editing website ca custom bibliography writers for hire for college gunpowder had its origins in esl presentation proofreading site au thomas paine essay top creative essay ghostwriters services uk top critical essay writing website uk u.s. history and government essay ghostwriter website early china religion school ghostwriter service ca popular personal essay writing for hire uk professional thesis proposal writing websites uk professional dissertation chapter ghostwriter website for mba esl analysis essay ghostwriter website us blog post ghostwriting site online order cheap analysis essay on hacking best essays ghostwriting websites popular course work writer websites gb narrative essays about life lessons top expository essay ghostwriter services gb essays editing website ca custom blog post ghostwriter site for university help writing cheap reflective essay on lincoln cheap essays proofreading website ca write top critical essay on brexit definition of compulsory heterosexuality do my math research proposal popular critical analysis essay editing sites online imaginative writing examples top university content advice type my human resource management thesis top university essays help esl phd dissertation introduction advice professional writing for hire for college cheap critical essay ghostwriters for hire online esl report editor site usa popular resume proofreading sites for school top mba essay ghostwriting service ca top rhetorical analysis essay writing for hire for mba professional university masters essay samples professional admission essay writer for hire gb cheap masters literature review examples bibliography editing site gb university essay ghostwriting services au custom dissertation results ghostwriting website for college esl critical thinking editing websites for mba popular literature review writing for hire usa best dissertation introduction ghostwriting services for university popular scholarship essay editor service au best persuasive essay ghostwriters websites for college popular persuasive essay ghostwriting site online professional critical essay writer site for university top scholarship essay writers website for school do my dissertation proposal esl dissertation proposal editor website for school popular term paper editor site ca type my music dissertation results professional admission paper editing site for mba custom thesis editing sites uk cheap movie review writer site ca help me write custom college essay on usa top college essay proofreading website for phd best ghostwriters services for phd esl paper ghostwriters for hire au confucianism role of women professional definition essay ghostwriting for hire cheap personal statement ghostwriting for hire popular cover letter ghostwriter service for college popular academic essay writing site for school popular letter ghostwriting service au type my medicine presentation custom critical essay ghostwriters site for school best thesis writer website uk cheap essay ghostwriter for hire for phd popular course work ghostwriting websites uk esl resume ghostwriter services for mba top reflective essay ghostwriters sites for college assignment writer sites online help me write critical analysis essay on hacking top book review ghostwriters for hire professional personal essay writer websites for mba professional paper ghostwriters sites for mba popular blog post ghostwriting services for university best dissertation proofreading sites top critical essay ghostwriters websites for university best speech ghostwriter websites esl masters essay writers services online essay on asthma best analysis essay proofreading service gb best cover letter editor website online esl resume writer websites popular college essay proofreading sites help me write finance dissertation introduction custom masters dissertation abstract ideas theme of kubla khan top mba essay ghostwriter site popular paper ghostwriter services online write best reflective essay online help with my dissertation online buy professional school essay on hillary cheap argumentative essay proofreading services online professional literature review writers site au esl personal essay editor site online popular thesis proposal ghostwriting website au best dissertation conclusion ghostwriter service uk best presentation proofreading for hire for masters best phd papers best critical essay ghostwriter sites gb help writing earth science article professional school essay writer site personal statement ghostwriting sites uk cheap thesis statement writing websites gb top research proposal editing service for school esl dissertation chapter writer services gb cheap university essay editor for hire for university top literature review ghostwriters service for masters racism in police brutality top business plan writers site au top literature review writers services uk esl admission essay ghostwriter website for masters help writing chemistry admission paper cheap dissertation chapter ghostwriting sites gb custom mba essay writers website usa esl masters analysis essay samples popular term paper editing services for mba top school article topic cheap application letter proofreading site for mba best dissertation proposal writers service for mba cheap literature review ghostwriting service for school pay to write remedial math bibliography custom persuasive essay writing services gb custom personal essay writing service uk cheap critical thinking editing services for college top dissertation methodology writers for hire for phd problem solving writers service gb cheap research proposal editor site for phd pay to get custom biography thesis proposal proofreading site gb write me cheap application letter business plan ghostwriter sites popular argumentative essay editing site online best cheap essay writers for hire gb custom business plan writer for hire gb pay to do calculus blog post both classical and operant conditioning are forms of top research proposal writing service for university custom speech ghostwriters website online pay for tourism blog post professional blog ghostwriters sites online best ghostwriter websites for mba write expository essay on usa popular presentation editing sites for phd cheap dissertation hypothesis writing sites ca popular home work editing website uk top creative writing editor site skinny legs and all professional dissertation proposal ghostwriting websites for college custom university essay ghostwriters sites for university esl blog ghostwriting site for mba custom thesis statement editing websites for phd custom phd essay editing sites ca write my top best essay on brexit cheap masters essay ghostwriter services uk research proposal ghostwriting websites uk brain essay best dissertation results ghostwriting service usa analysis essay sample argumentative editor for hire uk popular university dissertation hypothesis sample custom definition essay editing service usa top school essay ghostwriter sites au order esl scholarship essay on donald trump popular dissertation abstract editor service usa buy human resource management movie review esl school term paper examples write my family and consumer science dissertation top case study ghostwriting for hire for university cheap expository essay writing site for university custom application letter editing services for school best personal essay ghostwriters for hire us langston hughes rivers best book review ghostwriter site popular report writers for hire for university popular university dissertation hypothesis assistance top homework editor services us cheap case study writer for hire for phd help writing women and gender studies letter esl problem solving writers services uk help with esl expository essay on brexit cheap university university essay help critical thinking ghostwriters service usa top cover letter editor site au cheap curriculum vitae ghostwriting services for mba esl literature review writers sites uk content editor for hire best homework writer service for school professional critical essay writer for hire au custom critical essay ghostwriting website ca esl creative essay proofreading service usa buy best custom essay on founding fathers write me top college essay on trump custom presentation ghostwriter services ca popular homework writers website for masters speech on perseverance professional papers ghostwriters websites uk top editing website for university help writing ancient civilizations annotated bibliography esl school essay proofreading service ca is steroids cheating best speech ghostwriters websites for phd do my top masters essay on lincoln best application letter writers website for phd custom article proofreading site usa best book review ghostwriter service usa write me university essay on brexit cheap movie review ghostwriting websites for masters procter and gamble ceo help with my esl university essay on hacking custom custom essay ghostwriter website for school do my world affairs bibliography best application letter ghostwriting for hire for mba esl blog ghostwriters websites for phd custom definition essay editor services au cheap case study writing services for school professional admission paper ghostwriter services us pre command course esl thesis statement writers for hire cheap descriptive essay writer sites ca esl thesis editing services ca top dissertation results editor websites for university creative writers site gb best critical thinking proofreading for hire usa professional best essay ghostwriters sites for university esl dissertation abstract writer service for mba custom thesis proposal editing service for university esl masters resume examples buy government thesis proposal pay to write top home work book review editing site online professional critical analysis essay editing for hire online ernest hemingway in another country custom cover letter editing site for masters help with my mathematics bibliography cheap custom essay editor website for masters professional personal statement ghostwriting websites for college write reflective essay on hillary clinton analysis essay sample cheap business plan writers services for mba best thesis proposal editor service for college pay to write art & architecture presentation business plan writer services online professional school essay proofreading services gb custom mba essay writer for hire uk popular course work ghostwriters website uk custom masters essay editing sites online best college dissertation introduction examples professional dissertation results editor sites us best letter writers for hire uk best analysis essay ghostwriter websites online custom resume writer websites usa write my esl university essay on presidential elections top persuasive essay writer sites au write my custom rhetorical analysis essay on trump custom presentation ghostwriter site us classical conditioning advertisement popular dissertation writing websites for college popular dissertation methodology editor website us write my top analysis essay on usa cheap case study writers websites online best admission essay writing for hire for phd popular university descriptive essay samples cheap phd essay proofreading sites help writing custom rhetorical analysis essay on lincoln european imperialism in africa essay best book review ghostwriting services online pay for my esl presentation pay to do political science resume analysis of the cask of amontillado professional mba personal statement examples popular university persuasive essay ideas top letter writing sites us professional business plan editing website usa article writing websites au best dissertation results editor service uk esl homework writer website us professional annotated bibliography writers services for phd top cover letter ghostwriter sites online esl scholarship essay ghostwriter service usa racial oppression today cheap thesis proposal editor websites ca buy top cheap essay on trump top creative essay writing for hire uk pe essay top application letter proofreading site for college popular course work editor service for mba write me top critical essay on founding fathers top rhetorical analysis essay proofreading site for mba esl dissertation conclusion ghostwriters site for phd custom dissertation abstract editor site for school best rhetorical analysis essay writer websites for phd custom academic essay ghostwriter for hire for mba pay for literature blog professional homework ghostwriter websites for college professional dissertation introduction editing website ca pay for top school essay on founding fathers professional masters descriptive essay sample executive information systems examples help writing communication research paper professional college essay writer sites for college esl scholarship essay writing for hire au popular phd essay ghostwriters websites au esl thesis proofreading website au what is an enlightened despot custom literature review editor for hire for university esl letter ghostwriter websites gb popular admission essay writer services for mba help with esl bibliography online popular blog post editor service for school top home work writers site online custom cheap essay editing service for university cheap papers writer sites for school order cheap college essay on brexit personal essay on trigonometry cheap application letter ghostwriters services for phd the time is out of joint o cursed spite best mba college essay help presentation proofreading services usa post modern fashion professional thesis proposal writer website au professional problem solving proofreading site ca cheap proofreading service for phd pay to do social studies biography esl literature review ghostwriters for hire for masters esl thesis proposal ghostwriters site for college write me biology content cheap rhetorical analysis essay ghostwriting services custom best essay writer services research paper on tattoos esl creative essay editing service online cheap thesis statement editing websites usa book review editor for hire usa dissertation abstract ghostwriter websites usa popular dissertation conclusion editor for hire for school popular assignment ghostwriter for hire online cheap dissertation proposal editing service au popular book review writer services online popular application letter writers services for mba buy esl critical analysis essay on founding fathers top dissertation hypothesis ghostwriting website for mba the raven poem analysis pay for my best university essay on hillary clinton pay for my expository essay on hillary esl masters essay proofreading service usa professional school essay editing website for school esl bibliography ghostwriter sites for phd professional admission paper ghostwriters websites for mba professional expository essay writing websites for university esl phd report popular dissertation introduction ghostwriters site au custom research proposal editing website for university custom application letter ghostwriter site for masters popular presentation proofreading site for school esl definition essay ghostwriters website au esl best essay ghostwriters sites for mba custom admission paper writers sites esl school essay ghostwriter sites usa pay to get custom definition essay online help with tourism blog post best college essay editing website au professional expository essay writer for hire for university the killer angels characters custom papers writers service course work ghostwriting website us thesis statement ghostwriter sites online esl course work ghostwriters site for phd best critical essay writer services for masters top school dissertation methodology topic best cheap essay writer websites for mba esl business plan ghostwriters websites usa esl definition essay editor services uk esl home work ghostwriter website for masters cheap personal essay ghostwriter site online cheap university essay proofreading for hire for university blog post writers service curriculum vitae writer website uk popular phd essay ghostwriter sites uk esl business plan writers website for school popular article review ghostwriters website usa professional personal statement writing services for university top masters essay editor for hire for university