Re: [Flightgear-devel] Shader question

2010-03-14 Thread Erik Hofman
Heiko Schulz wrote: Now I have to learn to make normalmaps! :-) I've updated the normalmap utility in FlightGear/utils/Modeller to reflect the output of the following tutorial: http://www.katsbits.com/htm/tutorials/creating_bumpmaps_from_images.htm It's not a one size fits all solution but

Re: [Flightgear-devel] Shader question

2010-03-14 Thread Frederic Bouvier
Hi Erik, Le 14/03/2010 15:13, Erik Hofman a écrit : Heiko Schulz wrote: Now I have to learn to make normalmaps! :-) I've updated the normalmap utility in FlightGear/utils/Modeller to reflect the output of the following tutorial:

Re: [Flightgear-devel] Shader question

2010-03-14 Thread Patrice Poly
There is also another approach to creating normal maps, using a detailed, high polygon count model of the object, from which you extract the normals and map them to the low polygon object which is used in the game. A nice tutorial for blender can be found here :

Re: [Flightgear-devel] Shader question

2010-03-14 Thread Erik Hofman
Frederic Bouvier wrote: There is a very good Gimp plugin that has a 3D preview, support relief maps and works under Windows : http://registry.gimp.org/node/69 Of course, source code is also available for Linux and Mac. I also found a tutorial here :

Re: [Flightgear-devel] Shader question

2010-03-14 Thread Frederic Bouvier
Le 13/03/2010 16:09, Heiko Schulz a écrit : Would be great it would support nightlighting as well. (Switching between emissive nightlighted and daylighted textures) So we can get rid of those ugly lightpoints What about this (unfinished) one :

Re: [Flightgear-devel] Shader question

2010-03-14 Thread Heiko Schulz
    What about this (unfinished) one : http://frbouvi.free.fr/flightsim/fgfs-urban-night.jpg -Fred Yep, exactly that was in my mind! __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen

Re: [Flightgear-devel] Shader question

2010-03-13 Thread Frederic Bouvier
Hi Tim, Le 07/03/2010 18:53, Tim Moore a écrit : On Sun, Mar 7, 2010 at 6:37 PM, Frederic Bouvier wrote: Hi Tim, is there a way to have the value of an uniform updated every frame by the value of a live property ? I've been promising this to AndersG for some time now. I have

Re: [Flightgear-devel] Shader question

2010-03-13 Thread Tim Moore
On Sat, Mar 13, 2010 at 10:35 AM, Frederic Bouvier fredfgf...@free.frwrote: Hi Tim, Le 07/03/2010 18:53, Tim Moore a écrit : On Sun, Mar 7, 2010 at 6:37 PM, Frederic Bouvier wrote: Hi Tim, is there a way to have the value of an uniform updated every frame by the value

Re: [Flightgear-devel] Shader question

2010-03-13 Thread Frederic Bouvier
Le 13/03/2010 13:06, Tim Moore a écrit : On Sat, Mar 13, 2010 at 10:35 AM, Frederic Bouvier fredfgf...@free.fr mailto:fredfgf...@free.fr wrote: Hi Tim, Le 07/03/2010 18:53, Tim Moore a écrit : On Sun, Mar 7, 2010 at 6:37 PM, Frederic Bouvier wrote: Hi Tim,

Re: [Flightgear-devel] Shader question

2010-03-13 Thread Heiko Schulz
Hi, The shader is great! Though I have to admit it really works great on a middle to far distance, as the buildings don't show any windows, walls etc. Would be great it would support nightlighting as well. (Switching between emissive nightlighted and daylighted textures) So we can get rid of

[Flightgear-devel] Shader question

2010-03-07 Thread Frederic Bouvier
Hi Tim, is there a way to have the value of an uniform updated every frame by the value of a live property ? I used : parameters sun-angleuse/sim/time/sun-angle-rad/use/sun-angle /parameters and then, in pass uniform namesun_angle/name typefloat/type

Re: [Flightgear-devel] Shader question

2010-03-07 Thread Tim Moore
On Sun, Mar 7, 2010 at 6:37 PM, Frederic Bouvier fredfgf...@free.fr wrote: Hi Tim, is there a way to have the value of an uniform updated every frame by the value of a live property ? I've been promising this to AndersG for some time now. I have code that basically makes this (the