Page 1 of 3

glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 4:19 am
by idle
A demo of using fragment and vertex shaders with the new 3Dengine

http://ubuntuone.com/2nxZqVM4WDckFrRmudSNJJ

Image

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 4:54 am
by J. Baker
Looks great on Mac! Just had to comment out lines 3-6 and remove the OpenGL subsystem. Nice work! ;)

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 5:08 am
by Kuron
J. Baker wrote:and remove the OpenGL subsystem.

:shock: How did you get it to run on a Mac without using OpenGL?

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 5:09 am
by J. Baker
Kuron wrote:
J. Baker wrote:and remove the OpenGL subsystem.

:shock: How did you get it to run on a Mac without using OpenGL?
Mac already uses OpenGL. So if you have it in the subsystem, I believe it will say something like, subsystem not found. Or something like that. ;)

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 5:13 am
by Kuron
Gotcha ;)

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 5:20 am
by idle
J. Baker wrote:
Kuron wrote:
J. Baker wrote:and remove the OpenGL subsystem.

:shock: How did you get it to run on a Mac without using OpenGL?
Mac already uses OpenGL. So if you have it in the subsystem, I believe it will say something like, subsystem not found. Or something like that. ;)
It will be the same on Linux when the 4.61 engine is done.

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 6:02 am
by J. Baker
idle wrote:
J. Baker wrote:
Kuron wrote:
J. Baker wrote:and remove the OpenGL subsystem.

:shock: How did you get it to run on a Mac without using OpenGL?
Mac already uses OpenGL. So if you have it in the subsystem, I believe it will say something like, subsystem not found. Or something like that. ;)
It will be the same on Linux when the 4.61 engine is done.
Is SDL currently the default or something?

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 6:03 am
by Little John
Runs without change on Windows XP x86. Looks great, idle!

Regards, Little John

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 6:31 am
by idle
Little John wrote:Runs without change on Windows XP x86. Looks great, idle!

Regards, Little John
thanks, I wasn't sure if it'd work on windows.


@J baker
No the default is openGL on linux, it's just not set in the config or complier.

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 8:30 am
by dige
@idle: lovely water simulation! I'll add a nice ocean sound loop and
use it as screensaver :-D

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 11:48 am
by luis
Very nice port of the the ogre ocean demo ! It works under Windows 7 64 bit :)

Re: glsl fragment and vertex shader 4.60

Posted: Mon Nov 14, 2011 8:23 pm
by idle
luis wrote:Very nice port of the the ogre ocean demo ! It works under Windows 7 64 bit :)
it'd be nicer if we could get at the script attributes to change the materials scripts parameters on the fly
currently it looks like we'd need to add a bunch of presets to the material and change the entities material
to produce different effects from the material.

Re: glsl fragment and vertex shader 4.60

Posted: Tue Nov 15, 2011 7:26 am
by DarkDragon
idle wrote:
luis wrote:Very nice port of the the ogre ocean demo ! It works under Windows 7 64 bit :)
it'd be nicer if we could get at the script attributes to change the materials scripts parameters on the fly
currently it looks like we'd need to add a bunch of presets to the material and change the entities material
to produce different effects from the material.
Requested already a long time ago: http://www.purebasic.fr/english/viewtop ... =3&t=45966

Maybe someone wants to translate my shadertutorial for PB OGRE http://www.purebasic.fr/german/viewtopi ... =9&t=24695 to have a better explanation for the problem. At the moment we have to create a light or set some standard material attributes to communicate with the shaders.

Re: glsl fragment and vertex shader 4.60

Posted: Tue Nov 15, 2011 8:04 pm
by idle
good tutorial, it's quite readable with google translate

Re: glsl fragment and vertex shader 4.60

Posted: Tue Nov 15, 2011 8:43 pm
by Kuron
Is anybody willing to share a compiled Windows EXE for the example?