migueltk's picture

The best demo I've seen and with source code

Hi, ...
I want to share with all of this demo, GLSLDemo awesome! and also the author provides the source code. It uses OpenGL, I have not compiled the project but hope to soon.
Adapt this project to OpenTK would be a good showcase of the possibilities of OpenTK.

Ah! and do not forget to put the 3D glasses.

P.D: How I can insert a frame of video in this post?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
flopoloco's picture

Really cool demo.

iframe tag does not work about video embed...

migueltk's picture

I would like to add a video and here, as I can do this.

ATI video cards there is any error in the shaders and start the demo the screen is black, you should press the A button to switch to 3D view and see the demo.

migueltk's picture

I would like to add a video as it is here http://www.opentk.com/project/labyrinth, as I can do this .
ATI video cards there is any error in the shaders and start the demo the screen is black, you should press the A button to switch to 3D view and see the demo.

the Fiddler's picture

Iframes may cause security issues, thus can only be used by privileged users.

Cool demo, btw!

migueltk's picture

I understand, I hope that in future all can embed videos.

I modified the shaders "reflection_refraction_perpixel3.frag" and "postfx.frag"for the demo work on ATI graphics cards.

In a file "reflection_refraction_perpixel3.frag" to modify the code line 42:
Original code:
normal_final_view +=  bumpmapping_factor*(2.0 * texture2D(texNormalMap, gl_TexCoord[0].st) - 1.0);      // DOT3 bump mapping

Modified code:
normal_final_view += vec3(bumpmapping_factor*(2.0 * texture2D(texNormalMap, gl_TexCoord[0].st) - 1.0))// DOT3 bump mapping

In a file "postfx.frag" to modify the code line 29:
Original code:
return colorIn.r * 0.299 + colorIn.g * 0.587 + colorIn.b * 0.114;

Modified code:
return vec4(colorIn.r * 0.299 + colorIn.g * 0.587 + colorIn.b * 0.114);

Toanso's picture
migueltk wrote:

Hi, ...
I want to share with all of this demo, GLSLDemo awesome! and also the author provides the source code. It uses OpenGL, I have not compiled the project but hope to soon.
Adapt this project to OpenTK would be a good showcase of the possibilities of OpenTK.

Ah! and do not forget to put the 3D glasses.

P.D: How I can insert a frame of video in this post?

sorry~~ where can i find the source code?

migueltk's picture

You must display the imformation box of the video "to see complete description " and follow the links ...

Anyway below are the links.

More info (french) : http://yannick.gerometta.free.fr/base.php?id=glsldemo
Executable : http://yannick.gerometta.free.fr/files/GLSLDemo_win32_v1.0.zip
Source : http://yannick.gerometta.free.fr/files/GLSLDemo_src_v1.0.zip

Toanso's picture

Thanks a lot, it' very cool, but i also have not compiled it successfully.
There are something wrong when initlizes the SceenManager

void SceneManager::Init()
{
for(std::map<std::string, SceneBase*>::iterator it = m_SceneDB.begin(); it != m_SceneDB.end(); it++)
		(*it).second->Init();
}

did you meet this problem??

migueltk's picture

Try it with the source code I've used.

GLSL Demo

the Fiddler's picture

If it still won't work, post the compiler errors so we can see what might be the issue.