For some time till today, whenever I right click on My Computer and select Manage, nothing was happenning. I have fixed it up now but while browsing around, I haven’t seen a solid and a complete solution, so here is a sum up what I have done for the fix.

Symptom: Right click on My Computer, select Manage OR hit Start->Run, type compmgmt.msc and click Ok will NOT open up Computer Management Console on a Vista computer.

WARNING: Information here is only my personal experience, I will take NO responsibility at all.
WARNING: You will need a Windows installation disk in the same language as your installed system.

What NOT to do: (Doing so will just make you waste time)
- Don’t scan for a virus or backdoor or malware action
- Don’t play with UAC settings
- Don’t try to Run As Administrator
- Don’t try to restore from a back-up or a System Restore
- Don’t ever try to obtain the WIM filter driver from the Windows Automated Installation Kit (Windows AIK): vista_6000.16386.061101-2205-LRMAIK_EN.img. It’s HUGE (992.2 MB)
- Don’t follow MS Help and Support KB 942968: (http://support.microsoft.com/default.aspx?scid=kb;EN-US;942968) Stop error when you try to download updates from Windows Update on a computer that is running Windows Vista: “0×80070246″

What to do:

1. Follow this article till the very last item, because you will get stuck when it comes to replace the file with a good-copy of the file. (i.e. 3.Type the following command to replace the file with a known good copy of the file):
from http://support.microsoft.com/kb/929833:

1.    Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click
Command Prompt, and then click Run as administrator.
If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
2.    Type the following command, and then press ENTER:
sfc /scannow
The sfc /scannow command scans all protected system files and replaces incorrect versions with correct Microsoft versions.
To determine which files could not be repaired by the System File Checker tool, follow these steps:
1.    Open an elevated command prompt.
2.    Type the following command, and then press ENTER:
findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >sfcdetails.txt
Note The Sfcdetails.txt file contains details from every time that the System File Checker tool has been run on the computer.
The file includes information about files that were not repaired by the System File Checker tool. Verify the date and time entries
to determine the problem files that were found the last time that you ran the System File Checker tool.
3.    Type the following command, and then press ENTER:
edit sfcdetails.txt
The Sfcdetails.txt file uses the following format:
Date/Time SFC detail
The following sample log file contains an entry for a file that could not be repaired:

2007-01-12 12:10:42, Info                  CSI    00000008 [SR] Cannot
repair member file [l:34{17}]"Accessibility.dll" of Accessibility, Version =
6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture neutral,
VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type
neutral, TypeName neutral, PublicKey neutral in the store, file is missing

If the System File Checker tool cannot repair a file, follow these steps:
1.    At an elevated command prompt, type the following command, and then press ENTER:
takeown /f Path_And_File_Name
For example, type takeown /f E:\windows\system32\jscript.dll.
2.    Type the following command, and then press ENTER to grant administrators full access to the file:
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
For example, type icacls E:\windows\system32\jscript.dll /grant administrators:F.

2. Download and install 7-Zip file archiver, if you don’t already have. http://www.7-zip.org/download.html

3. Insert your windows installation disk

4. Run 7-Zip archiver, open the installation disk, open the WIM file :
DVD_Drive_Letter\sources\install.wim

5. In the install.wim, browse through: (replace tr-TR with your own locale ID) (Note the leading 1)
1\Windows\System32\tr-TR\

6. Locate the file mmc.exe.mui, Right click on it and select copy, in the copy dialog, browse to: (replace tr-TR with your own locale ID) (Your_Windows_Drive is probably C)
Your_Windows_Drive:\Windows\System32\tr-TR\
and press OK

7. That’s it. It should be working now. Try to hit Start->Run, type compmgmt.msc and clicking OK should now open up the computer management console.

Good luck!

traditional shadow mappingdisable back-face cullingUsing polygon offsetShadows and Shadow Mapping
Shadows has remained as a big challenge for years in computer graphics. There are many ways to achieve “shadows”, some methods require special data structures and coding, and some has quality and speed falloffs.
Shadow mapping is one of methods been used by now, presenting relatively easy implementation and reasonable speed, at cost of aliasing effect for shadows far from the camera, a shadow texture to hold information for each point light (more for soft shadows) and big sized shadow map texture memory space requirement.
For more information:
http://en.wikipedia.org/wiki/Shadow_mapping
http://www.paulsprojects.net/tutorials/smt/smt.html

Back-face Culling
Back-face culling is the process of discarding polygons that are not facing towards the camera where the image is taken from. So often used in 3D video games, the process allows rendering of scene much faster by eliminating the calculation of back-facing polygons-those eventually will be covered by another front-facing polygons. To get a better understanding, one can imagine a box, having all the 6 faces facing outer from the cube, that means the top face will orient towards above the cube, and bottom face will orient below. So, any camera that is in the outer space of the cube will see the all 6 faces, but a camera in the cube will not see any.

Back-face Culling and Shadow Maps
In general purpose 3D drawing software and CAD applications, it is often impossible to determine the correct orientation of faces. Any single face in 3D space may be clock-wise or counter clock-wise, constructing a outer face of an entity or should be just a plane with both sides visible, depending on the whole drawing. So, all faces in CAD applications are simply rendered without back-face culling, remaining both sides visible.
On the other hand, shadowing with shadow map method requires back-face culling turned on, makes it impossible to use with CAD applications. After searching everywhere to find a way to make shadow mapping work while back-face culling is off, I haven’t came to any solution. Then I have decided to play a bit and finally made it! So here it is.

The Sample
I will be using a very good, yet simple to understand sample project, developed by Paul Baker. You can find his tutorial at http://www.paulsprojects.net/tutorials/smt/smt.html.
Load the project into Microsoft Visual Studio and run. Then open the file main.cpp and locate glEnable(GL_CULL_FACE); in function bool Init(void) on line 70 and replace it with glEnable(GL_CULL_FACE); and run again. When back-face culling disabled, you will see there is disturbing Z-fight effect, due to multi pass rendering required for shadow maps (Three passes actually, in this example).

The fix
This time, comment out glEnable(GL_CULL_FACE); and after that, insert:
glDisable(GL_CULL_FACE);
glPolygonOffset(1.0, 1.0);
glEnable(GL_POLYGON_OFFSET_FILL);
Shadows should be rendering correct again.

Polygon Offset
Polygon offset is useful when you face coplanar faces, ie: faces on the same exact location and depth to the camera. If such coplanar faces are fed to OpenGL pipeline for drawing, you will see the disturbing z-fight effect, random colors from both faces, as in the image at the top line of this post. The reason of the z-fight effect in the previous example is that the lit and dark areas both are the same distance to the camera, having the same depth values causing the trouble. Polygon offset comes for help:
Polygon offset does not only correct z-fight effects but can also be used for highlighting the edges of a solid object and create some other effects. For more information on polygon offset, refer to: http://www.opengl.org/resources/faq/technical/polygonoffset.htm

SIGGRAPH 2005

SIGGRAPH, international conference on computer graphics and interactive technologies was held on 31 July-4August in Los Angeles Convention Center. That was really a great experience for me to face cutting-edge technologies and latest improvements all in one place. The conference was too dense and it was impossible to miss some precious seminers, that were simultaneously presented. http://www.siggraph.org/s2005/

I had the opportunity to present the components we have developed for IntelliCAD, a general purpose 3D drawing application, in IntelliCAD WorldMeeting 2005 - the Netherlands to professional CAD developers from all around the world. The components were picking entities by ray tracing, the raster module, the photo-realistic rendering module, CNC and some other components. The impression was great and thanks to all attenders for listening and interest. www.intellicad.org

Hanoi Towers

Hanoi Towers-screen shotThis small graphical application will solve you the Tower of Hanoi problem for 31 pieces max, recursively, and at desired speed.

Hanoi Towers-Win32 application (page)
Hanoi Towers-Win32 application (direct link to file)
Hanoi Towers-source

viewfonts

Very simple utility to view a text in various fonts at a glance, printing also supported, with source code.

FontsViewer Application

FontsViewer Source (BCB6.0)

.

.

baluun-screen shot
Really simple game in VB.
Hit the baloons!

Baluun-Win32 application
Baluun-Source Visual Basic

Welcome to emreburhan.com

Blogs will go here, soon.

Credits goes to Halit YEŞİL from globya.net, for kindly supporting this web site. You rock!