Board index FlightGear Development Effects and shaders

I notice trees are missing transparencies in 17.4 vers.

An exciting "new" option in FlightGear, that includes reflections, lightmaps, the particle system etc.. A lot is yet to be discovered/implemented!

I notice trees are missing transparencies in 17.4 vers.

Postby abassign » Tue Nov 14, 2017 1:18 am

In my FGFS version 17.4 on Linux Mint 18.2 NVIDIA 1050 4 GB VRAM graphics card, for at least two weeks (I compile daily) I notice that trees are missing transparencies. Instead the grass is right.

Image

Image

If I compile on a machine without a graphics card, but with Intel 7 and Linux Mint 18.2 operating system. The trees are right.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: I notice trees are missing transparencies in 17.4 vers.

Postby wkitty42 » Tue Nov 14, 2017 1:41 am

are you seeing any errors in the console?
do you see any if you use --log-level=debug ?

FWIW: i'm not seeing this issue and i have a much weaker NVIDIA card than you... but i'm also on (k)ubuntu 14.04 which is kinda complicating some things related to compiling FG right now...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: I notice trees are missing transparencies in 17.4 vers.

Postby Thorsten » Tue Nov 14, 2017 7:59 am

Looking into the repository access log:

tree.eff has last been changed 03-03-2017, the shader family (tree-ALS.vert, tree-ALS.frag, tree-ALS-shadow.vert and tree-ALS-shadow.frag) has last been changed in 2016 and the classic shaders have last been changed in 2013, so there's no GLSL or effect change matching the timeframe.

Since nobody else seems to be seeing it either, it's probably some modification/change you did locally. The alternative is that some C++ change did this - in which case a GIT bisect to identify the commit responsible would be your best bet.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: I notice trees are missing transparencies in 17.4 vers.

Postby abassign » Tue Nov 14, 2017 9:47 am

I try to start with option:

--log-level=debug

When with the view I point a location with trees, only for the first time, the system load the trees data:

Code: Select all
Building LOD Drawables: 3
Building LOD Drawables: 3
Building LOD Drawables: 3
SGMaterialCache::~SGMaterialCache() size=291
FGStgTerrain::get_elevation_m: alt 235.696 no material
FGStgTerrain::get_elevation_m: alt 233.35 no material
FGStgTerrain::get_elevation_m: alt 220.947 no material
FGStgTerrain::get_elevation_m: alt 235.379 no material
Random Buildings: 0
  Dropped due to mask: 0
  Dropped due to random object: 0
  Dropped due to other buildings: 0
Random Buildings: 0
  Dropped due to mask: 0
  Dropped due to random object: 0
  Dropped due to other buildings: 0
Building material 0x7fc7c1ecf780
Building texture 0x7fc788f2ef40
Building fractions 0.9 0.1
Random Buildings: 0
  Dropped due to mask: 0
  Dropped due to random object: 0
  Dropped due to other buildings: 0
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/mixed-alt.png
Tree effect Effects/tree-european-mixed
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/deciduous-alt.png
Tree effect Effects/tree-european-deciduous
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/coniferous-alt.png
Tree effect Effects/tree
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/mixed-alt.png
Tree effect Effects/tree
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/mixed-alt.png
Tree effect Effects/tree-european-mixed
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/mixed-shrub.png
Tree effect Effects/tree
Tree texture /media/lab_risv01/Salvataggi/backup/fgfs/install/flightgear/fgdata/Textures/Trees/deciduous-alt.png
Tree effect Effects/tree
Building LOD Drawables: 2
Building LOD Drawables: 2
Building LOD Drawables: 2
Building LOD Drawables: 2


After I note this message:

Code: Select all
...
Building LOD Drawables: 3
Building LOD Drawables: 3
SGMaterialCache::~SGMaterialCache() size=291
FGStgTerrain::get_elevation_m: alt 236.613 no material
FGStgTerrain::get_elevation_m: alt 235.696 no material
FGStgTerrain::get_elevation_m: alt 233.35 no material
FGStgTerrain::get_elevation_m: alt 220.947 no material
FGStgTerrain::get_elevation_m: alt 235.379 no material
FGStgTerrain::get_elevation_m: alt 235.696 no material
FGStgTerrain::get_elevation_m: alt 233.35 no material
FGStgTerrain::get_elevation_m: alt 220.947 no material
FGStgTerrain::get_elevation_m: alt 235.379 no material
FGStgTerrain::get_elevation_m: alt 236.613 no material
FGStgTerrain::get_elevation_m: alt 235.696 no material
FGStgTerrain::get_elevation_m: alt 233.35 no material
FGStgTerrain::get_elevation_m: alt 220.947 no material
FGStgTerrain::get_elevation_m: alt 235.379 no material
Key value 65507 out of range
FGStgTerrain::get_elevation_m: alt 235.696 no material
FGStgTerrain::get_elevation_m: alt 233.35 no material
FGStgTerrain::get_elevation_m: alt 220.947 no material
FGStgTerrain::get_elevation_m: alt 235.379 no material
FGStgTerrain::get_elevation_m: alt 236.613 no material
FGStgTerrain::get_elevation_m: alt 235.696 no material
FGStgTerrain::get_elevation_m: alt 233.35 no material
FGStgTerrain::get_elevation_m: alt 220.947 no material
FGStgTerrain::get_elevation_m: alt 235.379 no material
User pressed key 3 with modifiers 4
...


I try with different terrain texture, but the problem remain :(

Unfortunately this problem I have often encountered with NVIDIA, I currently use version 384.90, but with the previous I found the same problem.
It's strange that when it happens it can disappear with a subsequent compilation. Of course it is a risk to use the 17.4 version, but it seems useful to report the problem to help develop a better product.

It is certainly a problem with the lack of transparency, but it is strange to happen only with the trees. The problem, as mentioned above, does not happen with the intel (machine without NVIDIA) card I use on another machine always with i7 processor and the same operating system.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: I notice trees are missing transparencies in 17.4 vers.

Postby Thorsten » Tue Nov 14, 2017 10:36 am

Well, there's no errors either -nothing much to work with.

The GIT bisect is your best bet then.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: I notice trees are missing transparencies in 17.4 vers.

Postby V12 » Wed Nov 15, 2017 6:24 am

I have LUbuntu 17.04, nVidia 750 GTX and trees are OK. But I don't use vegetation shadow.
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: I notice trees are missing transparencies in 17.4 vers.

Postby abassign » Wed Nov 15, 2017 8:22 am

V12 wrote in Wed Nov 15, 2017 6:24 am:I have LUbuntu 17.04, nVidia 750 GTX and trees are OK. But I don't use vegetation shadow.


This night I reinstalled all the FGFS program with download_and_compile.sh script, but first to start I delete the folder ".fgfs" and the old "fgfs" The compilation is finish well, but the problem persist:

Image
Image

Clouds, which I think should use a similar solution, do not seem to be affected by the same problem.
Image

Several times, in previous years, I had the same problem that "strangely" disappeared after a compilation with a later version. Normally, the latency time of the problem was a few days (+/- when some modification to the code was entered), never for so long.
I'd like to understand the origin of the problem and why it happens only for the trees!
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: I notice trees are missing transparencies in 17.4 vers.

Postby wkitty42 » Wed Nov 15, 2017 4:39 pm

FWIW: this and other similar problems are being looked into on the developer's mailing list...

as for the origin of the problem, it could simply be a typo in the code but it is possible that there is some memory corruption from other unchecked code that stomps over the stack or heap...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: I notice trees are missing transparencies in 17.4 vers.

Postby abassign » Wed Nov 15, 2017 10:57 pm

I hope that who develop the code do the correction :)
In fact the problem came up after making a version update about 2 weeks ago. Previously everything work fine.
Last edited by bugman on Wed Nov 15, 2017 11:15 pm, edited 1 time in total.
Reason: Please do not quote the entire previous post.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: I notice trees are missing transparencies in 17.4 vers.

Postby wkitty42 » Wed Nov 15, 2017 11:21 pm

what version of OSG (aka openscenegraph) are you building against?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: I notice trees are missing transparencies in 17.4 vers.

Postby FighterAce » Mon Nov 27, 2017 4:43 am

I had this exact same problem (on a Mac OSX), but when I disabled anti-aliasing, the trees regained their normal transparency. Try that.
FighterAce
 
Posts: 189
Joined: Wed Mar 22, 2017 9:48 pm
Location: In the sky
Callsign: FighterAce
Version: 2017.1.3
OS: Mac Mojave

Re: I notice trees are missing transparencies in 17.4 vers.

Postby Neilson » Thu Nov 30, 2017 6:20 pm

I had the same on Mac with ALS, turning it of did seem to help.
User avatar
Neilson
 
Posts: 440
Joined: Fri Sep 02, 2011 9:17 pm
Location: Rochester UK EGTO
Callsign: Neilson
Version: 2017.3.1
OS: Mac

Re: I notice trees are missing transparencies in 17.4 vers.

Postby hamzaalloush » Sat Dec 30, 2017 7:58 am

have you solved this?

btw, i do indeed have opaque tree transparency if i force Nvidia AA instead of FG's.. but it allows me to do x8
hamzaalloush
 
Posts: 631
Joined: Sat Oct 26, 2013 10:31 am
OS: Windows 10


Return to Effects and shaders

Who is online

Users browsing this forum: No registered users and 5 guests