Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-24 Thread Erik Hofman
Frederic Bouvier wrote: Fixed. What do you think of the night lighting ? It's not entirely what I hoped for, for example the park is completely lit now. Maybe it would be an idea to use the light value as a contrast enhancer for the lit areas? Erik

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-24 Thread Frederic Bouvier
- Erik Hofman a écrit : Frederic Bouvier wrote: Fixed. What do you think of the night lighting ? It's not entirely what I hoped for, for example the park is completely lit now. Maybe it would be an idea to use the light value as a contrast enhancer for the lit areas? The lit areas

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-24 Thread Erik Hofman
Frederic Bouvier wrote: What do you mean by contrast enhancer ? Now all lit pixels are lit equally. What I was suggesting would lit lighter pixels more than darker pixels (I expect multiplying by the gray-scaled pixel color would suffice). Erik

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-24 Thread Frederic Bouvier
- Erik Hofman a écrit : Frederic Bouvier wrote: What do you mean by contrast enhancer ? Now all lit pixels are lit equally. Not exactly. What I was suggesting would lit lighter pixels more than darker pixels (I expect multiplying by the gray-scaled pixel color would suffice).

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-24 Thread Erik Hofman
Frederic Bouvier wrote: The blue channel has the emission factor. One can redo the map to achieve the effect you are suggesting. I think I was thinking more something in the line of this patch. Erik Index: urban.frag === RCS

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-23 Thread Erik Hofman
Frederic Bouvier wrote: visible. Now I think I managed to get it right with 3d objects. See : http://frbouvi.free.fr/flightsim/fgfs-city-relief-4.jpg Even more impressive! Erik -- Download Intel#174; Parallel Studio

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-23 Thread Erik Hofman
Erik Hofman wrote: Frederic Bouvier wrote: visible. Now I think I managed to get it right with 3d objects. See : http://frbouvi.free.fr/flightsim/fgfs-city-relief-4.jpg Even more impressive! There's just one thing, the wrong side of the buildings seem to be lit with this update? Erik

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-23 Thread Frederic Bouvier
- Erik Hofman a écrit : Erik Hofman wrote: Frederic Bouvier wrote: visible. Now I think I managed to get it right with 3d objects. See : http://frbouvi.free.fr/flightsim/fgfs-city-relief-4.jpg Even more impressive! There's just one thing, the wrong side of the buildings seem to

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-23 Thread David Megginson
Looks fantastic! David On Tue, Mar 23, 2010 at 4:22 AM, Erik Hofman e...@ehofman.com wrote: Frederic Bouvier wrote: visible. Now I think I managed to get it right with 3d objects. See : http://frbouvi.free.fr/flightsim/fgfs-city-relief-4.jpg Even more impressive! Erik

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-23 Thread Frederic Bouvier
- Frederic Bouviera écrit : - Erik Hofman a écrit : Erik Hofman wrote: Frederic Bouvier wrote: visible. Now I think I managed to get it right with 3d objects. See : http://frbouvi.free.fr/flightsim/fgfs-city-relief-4.jpg Even more impressive! There's just one

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-22 Thread Frederic Bouvier
Le 18/03/2010 23:45, David Megginson a écrit : On Thu, Mar 18, 2010 at 5:56 PM, Frederic Bouvier wrote: I noticed the same problem with roads and 3d buildings -- they're floating above the city. Is it possible to make the bump maps go up instead of down? In Shaders/urban.frag,

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-19 Thread Erik Hofman
David Megginson wrote: I didn't seem to make any difference -- 3D buildings, trees, etc. were still floating above the roofs of the bump-map buildings. I also tried Keep in mind that relief mapping is just trickery to make something look like it is standing out from the scenery. In fact

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-19 Thread Anders Gidenstam
On Fri, 19 Mar 2010, Erik Hofman wrote: David Megginson wrote: I didn't seem to make any difference -- 3D buildings, trees, etc. were still floating above the roofs of the bump-map buildings. I also tried Keep in mind that relief mapping is just trickery to make something look like it is

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-19 Thread Frederic Bouvier
- Erik Hofman a écrit : David Megginson wrote: I didn't seem to make any difference -- 3D buildings, trees, etc. were still floating above the roofs of the bump-map buildings. I also tried Keep in mind that relief mapping is just trickery to make something look like it is standing

[Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-18 Thread David Megginson
On Thu, Mar 18, 2010 at 8:43 AM, Torsten Dreyer tors...@t3r.de wrote: First of all: That's a really cool eye candy, good work! Seconded. This is the coolest addition I've seen to FlightGear in a long time. What I noticed from a close up is, that it seems that the floor of the buildings is

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-18 Thread Frederic Bouvier
Hi David, - David Megginson a écrit : On Thu, Mar 18, 2010 at 8:43 AM, Torsten Dreyer tors...@t3r.de wrote: First of all: That's a really cool eye candy, good work! Seconded. This is the coolest addition I've seen to FlightGear in a long time. What I noticed from a close up

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-18 Thread David Megginson
On Thu, Mar 18, 2010 at 5:56 PM, Frederic Bouvier fredfgf...@free.fr wrote: I noticed the same problem with roads and 3d buildings -- they're floating above the city.  Is it possible to make the bump maps go up instead of down? In Shaders/urban.frag, change line 57 :        vec2 dp =

Re: [Flightgear-devel] Make relief map go up instead of down? (was Re: Shaders experiments)

2010-03-18 Thread Anders Gidenstam
On Thu, 18 Mar 2010, David Megginson wrote: I didn't seem to make any difference -- 3D buildings, trees, etc. were still floating above the roofs of the bump-map buildings. I also tried Hi, You could try this diff: http://pastebin.ca/1845056 It is possible that this does the same as Fred's