Susheel's Blog

Web Name: Susheel's Blog

WebSite: http://blog.susheelspace.com

ID:232510

Keywords:

Susheel,Blog,

Description:

keywords:
description:The place where I write \"things\".
Yeah, its been a long time.

The blog has remained inactive for an extraordinary amount of time I know! Reason? Nothing in particular. Most of my time was spent on a project which, I must say, is the biggest one till date. I will post details about it in stages in the coming months. It involves a lot of new things, some old ones and some surprises as well. A lot of things to share, and I need to plan out a couple of things before I put it here.

New engine with Global Illumination

BuzzMore
Posted in General.
Code.Fu: Quickly testing if a positive integer is a power of 2.

If you are a graphics programmer you will often need to test if an integer is a power of 2. To do this you can exploit a neat trick using binary arithmetic. This trick will work with all positive integers.

Lets say the number you are testing is 4. Take a look at the simple binary arithmetic below:

  4 -- 0100‬ (binary)- 1 -- 0001------------------  3 -- 0011  4 -- 0100 3 -- 0011------------------  0 -- 0000

In short, you subtract 1 from the number and do a binary AND of the result and the original number. If the number is a power of two, the result you get will always be 0.  The only exception is 0 itself, which will return 0 in the above operation. Depending on your application you may or may not want that.

C/C++:

#define bool int /*remove this line for C++*/bool is_powof_2(int x){   return ((x  (x-1)) == 0);}bool is_powof_2_excl_0(int x){   return (x != 0)  ((x  (x-1)) == 0);}

Python:

def is_powof_2(x):	return ((x  (x-1)) == 0)def is_powof_2_excl_0(x):	return (x != 0) and ((x  (x-1)) == 0)
BuzzMore
Posted in Code.Fu, Game development, Programming Development.
Mail for Windows 10 Pretty but poorly designed.

I upgraded to Windows 10 a month back. Yeah I know its late, but hey, its difficult to switch in the middle of a large project. Windows 10 is probably the best windows version since XP, at least from a programmers point of view. Oh yes, thank you for bringing back the start menu! That Windows 8 Start Page thingy was really annoying and was the single thing which prevented me from upgrading. The other reason being, no DirectX 12 for Windows 7. Having said that, probably the worst thing on Windows 10 is the Mail application. I am using it for a month now and with each passing day, I get annoyed at it a bit more. Yes I know its pretty, but its poorly designed. I dont know what the exact reason was, but by the looks of it every attempt was made to simplify the interface. Well, simplicity is fine, but not when it comes at the cost of efficiency or for that matter legibility. A wise man once said, Things should be made as simple as possible, not not any simpler.

Some basic UI mistakes seem to have been made in the app. The mail writer can be confusing to understand with little separation between the mail fields and the message. A small line separation in-between would have been great. Its get slow as turtle walking on top of a turtle when a email thread gets large. The incoming-outgoing mail list tree is just a mess with little or no options, no way to resize, no way to switch between list, no quick sorting header, and many more things that I just cant believe were all taken out. This may work for a phone app, but for a desktop, the mail for windows 10 just doesnt measure up. One more thing the icons are just ridiculously big and so are the fonts for the UI in general. They may look good on a phone, but are unnecessary for the desktop. All this could have been tolerated had it not been for the ridiculous bugs in the software. Mails not syncing right, sent mails disappearing, poor IMAP syncing, are just some of them. All this from a company that makes Outlook!

So, for me its back to Thunderbird, my good old faithful mail app. Its been there with me ever since I can remember. Old is apparently gold!

BuzzMore
Posted in General.
When s#!t happens!

Its painful when your graphics card dies out, but even more so when it dies out not because you pushed it too hard (overclocked it), but because of a power-surge. I had a trusty HD 4870, and though it wasnt the newest of the cards it did serve me well for over 4 years now and could still push most games I play at decent framerates. Plus and more importantly, it worked very well for all my current graphics needs. I mostly target DX-9 to DX-10 level hardware and the 4870 was more than enough for that task. Sigh!  its dead now!

It so happened that while I was away one weekend, an electrical fault caused current to leak into the earthing terminal (probably busted earthing of the power co.). Since the earthing terminals of most electrical equipment (including most PCs) dont break when you turn off the switch, the current flowed into my PC and destroyed one of the PSU caps. As a result PCIe supply of PSU shorted out killing the graphics card. Fortunately (and thank God) no data was lost and the HDDs seem quite OK when I ran tests on them.

The only option left was to get a new card and I opted for the R9 270X. No point in going for an older card now that the R9s are DX-12 compatible. Unfortunately The R9s dont play well with older MoBos and so I had to get a new MoBo with a new CPU, and a new PSU, with a new cabinet and basically build a new dev machine from scratch, not to mention another 20-hour dev setup after installing a new OS.

Well to anyone who is reading this, my advise is to at the very least have a stabilizer for your PC. A UPS can go a long way in preventing such a thing and the most important thing is to have a good PSU. Go for the known brands Corsair, Cooler Master, Antec, etc.

BuzzMore
Posted in Hardware, Tech.
The Hobbit The Battle Of The Five Armies in 4DX.

The Hobbit: The Battle Of The Five Armies

Fourteen years is a long time, but the last and final chapter of the Hobbit trilogy The Battle of the Five Armies brings to conclusion an incredibly brilliant and successful series of the films (6 in total, The Lord of the Rings Trilogy and The Hobbit Trilogy), all of which were a truly remarkable experience. I am a fan of J.R.R Tolkien, a masterful story teller and a great writer and of Peter Jackson who has been equally remarkable at bringing to life Tolkiens Middle Earth in all its grandeur!

The third Hobbit movie starts off where the previous one (The Desolation of Smaug) ends and without giving out too many spoilers, let me just say that the start of the movie is not something to miss out on. The special effects, like in the previous films were, are beautiful.  Martin Freeman (Bilbo), Ian McKellen (Gandalf), Richard Armitage (Thorin) play their parts to perfection. The performance of the rest of the cast is equally impressive. Martin (Bilbo) has been particularly successful at growing the character of Bilbo from an unsure, uncaring, fumbling little hobbit to someone whose council is heeded to even by an egotistic King Thranduil (Lee Pace). If I had ever pictured a hobbit (Bilbo) while reading the The Hobbit, Martin would have been him.  Kudos to him for keeping the soul of Tolkiens work alive though-out the trilogy.

Martin as Bilbo

For The Battle of the Five armies I got an invite to experience the movie in 4DX thanks to Cinepolis (India). 4DX is a new technology that Cinepolis claims, enhances your movie experience by adding an extra dimension of realism. The movie was released in 3D just like the last two hobbit films were, but the 3D experience was enhanced further by adding multi-sensory motion and environment effects which the company calls 4DX. 4D as in an extra dimension along with 3D. In plain English, it means adding movement, weather, lighting, scent effects which are supposed to make you feel like you are right there living inside the movie. To achieve this experience, your chair is augmented with motion where it yaws, sways and shakes to mimic the motion of the camera. A scent spray is located in front of your chair to send out a stream of scent effects like sweet smells of flowers, or the smell of fresh grass in an open meadow. A blast of cold air is sent when the camera pans over snow covered peaks and streaks of simulated lightning are displayed out across the ceiling to represent thunder lightning appearing on the screen.

Was the 4DX experience worth it? For the most part I would say Yes. Again without giving away spoilers let me say that the start of the movie is probably where I enjoyed the effects the most, followed by the glacial effects (cold air breathing down my neck) and finally the meadows of The Shire where the flowery smell of the environment was unmistakable. To be fair though I have to say that the technology is new and some chinks remain. There were sections of the movie where effects were misplaced and some effects felt preempted, defeating the suspense of the action that was about to ensue. A scene where Bilbo was just walking down to an injured friend was accompanied by shaking of the chair which did not augment the emotion of the scene. However, these were (according to me) only minor creases that need to be ironed out to make 4DX a truly wholesome experience. I would still vouch for 4DX since it tickles those senses which traditionally remained dormant while watching a movie. As for the final question Did I enjoy it? Oh! Absolutely I did! :))

As far as the movie goes I would say that it really did feel like an end of a remarkable experience.The Battle of the Five armies is right up there with all other Tolkien-Jackson movies, well worth the praise the series is know for. For me, watching the last movie in 4DX was the proverbial icing on the cake! To quote King Theoden (figuratively)  If this is to be the end, then I would have such an end, as to be worthy of remembrance. and the last of the Hobbit movie was exactly that.

BuzzMore
Posted in General, Tech.
Visual Studio Community Edition (Free).

Microsoft has released free Visual Studio Community Edition. Its basically a free full featured Visual Studio IDE (apparently with everything included) that can be used to make all kinds of apps. I was even surprised to find support for Python and Git included. Even more surprising was the Apple and Android logos in the supported platforms section!

Link: http://www.visualstudio.com/products/visual-studio-community-vs

BuzzMore
Posted in DirectX, Game design, Game development, General, OpenGL, Programming Development, Software.
Yes I am Alive!

WOW!!! its been a very long time, and yes, I am alive and well

TAGS:Susheel Blog 

<<< Thank you for your visit >>>

The place where I write \"things\".

Websites to related :
Cre8tive Cookie

  keywords:
description:
Cre8tive CookieMy Life, My Loves, My Papercrafts!PagesHomeMy CalendarContact Me Tuesday, 20 August 2019

Campagne pour le retour de nos s

  keywords:
description:
Compagne Home The Who The Why The How

Lusakavoice : Lusaka Voice | Zam

  keywords:lusakavoice.com, Lusakavoice, seo stats, traffic, worth, keywords, analysis
description:Lusakavoice at WO. [td_block_19 custom_title='HEADLIN

Auladidatica.blogspot.com : Aula

  keywords:
description:Aula Didática | Auladidatica.blogspot - Auladidatica.blogspot.com traffic statistics
HOMERECENTLY ANALYZEDWORTHALEXA RANKH

EVERKI Laptop Bags - Built for B

  keywords:EVERKI Laptop Bags
description:EVERKI Laptop Bags - Built for Business | Mobile Professionals
Skip to Content Sign In Toggle NavSearchCompar

Watch Fox News Channel and Fox B

  keywords:
description:
Sign in to comment!Login Fox News Home Watch Live Trending Video Watch Live Show Clips News

ADDO -- African Dragonflies and

  keywords:
description:
About Species Coverage Participate Contacts Facebook Order ODONATA Fabricius, 1793Suborder

Skate Shop Townsville - Cre8ive

  keywords:
description:
Skip to contentOur Gear LugeLongboardingSkateboardingScootersGraffitiRollerblading SkatesShopThe TeamLost and FoundContactSite

Fox8Live.com - www.fox8live.com

  keywords:
description:
ip-address.comHomeMy IPSpeedtestSitemapProxy CheckerProxy ListVerify Email AddressTrace Email AddressIP to Zip CodeIP Address D

Medical World Nigeria - Medical

  keywords:Radiographers Registration board of Nigeria, National postgraduate medical college of nigeria, ,Medical and dental council of nigeria, ,Niger

ads

Hot Websites