woensdag 2 juli 2014

Visual Studio 2013 IIS express development webserver 64 bit

On a 64 bit Windows 7 platform, the IIS express (development webserver) will run your application in 32 bit mode if you compile it for AnyCPU. This is very strange, ofcourse.
Check the following checkbox to run it in 64 bit: Menu -> Tools/Options/Projects and Solutions/Web projects/Use 64 bit version of IIS express for web sites and projects.

woensdag 12 maart 2014

C++ : Return Value Optimization

A strange thing in C++ is the Return Value Optimization. A copy-constructor will not be called, although you might think it will.

vrijdag 14 februari 2014

Windows 7 ASP.NET CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64

When creating a simple website with IIS on Windows 7 64 bit, the message pops up: CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64 etc...

The solution to this problem is to change the application pool settings from ApplicationPoolIdentity to LocalSystem.

Select the applicationpool that is used by your website. Go to advanced settings. Change the ID to LocalSystem.

zaterdag 25 januari 2014

OpenGL NVidia black window

A very strange bug I discovered in the NVidia OpenGL driver. A program of mine run fine with AMD, but with NVidia it showed a black screen.

OpenGL program's must bind a VertexArray in NVidia.
So, in the initialization do:

GLuint meuk;

glGenVertexArrays(1,&meuk);
glBindVertexArray(meuk);
glBindVertexArray(0);

In every RenderScene, do:
glBindVertexArray(meuk);

woensdag 18 december 2013

Assimp: one material per mesh

A mesh does use only a single material. If an imported model uses multiple materials, the import splits up the mesh. Use this value as index into the scene's material list.

dinsdag 17 december 2013

Converting OGLDEV samples to SDL using GLM

When you convert OGLDEV samples to SDL using GLM, you might run into trouble. GLM is column-major and the OGLDEV samples are row-major.
This is not a big problem. Just invert the GL_TRUE in glUniformMatrix4fv to GL_FALSE. See this post: http://stackoverflow.com/questions/20578922/cant-display-model-using-glm-lookat-and-glm-perspective

dinsdag 3 december 2013

DDS mipmaps creation

You want to create DDS mipmaps for using compressed textures in OpenGL? Just use Paint.NET 3.5+
No need to download "The Compressonator" for that.
The funny thing is that I tried to convert a JPG to DDS with "The Compressonator", but the JPG format was not supported. So I went to Paint.NET to convert the JPG to an other format. However when choosing the output type I discovered that Paint.NET can save DDS's and create mipmaps! Great free software that Paint.NET.

There also is available a bulk image processor: http://pdnbulkupdater.codeplex.com/