Board index FlightGear Release candidates

3.4 RC1 - No snow or rain in internal views (SOLVED)  Topic is solved

Release candidate testers are encouraged to post their feedback here. Please read the introduction topic for details.
Forum rules
Please read the introduction topic for details.

3.4 RC1 - No snow or rain in internal views (SOLVED)

Postby Necolatis » Mon Feb 02, 2015 2:10 am

In internal views there is no snow.


FG 3.4 RC1
Basic weather with Live metar
Windows 7 64bit, geforce 520m
Plane 777-300ER and others


d:\ProgramFiles\FlightGear34rc1\bin\fgfs.exe
--fg-root=d:\ProgramFiles\FlightGear34rc1\data
--fg-scenery=C:\Users\Nikolai\Documents\FlightGear\Custom Scenery;d:\ProgramFiles\FlightGear34rc1\data\Scenery;d:/ProgramFiles/terrasync
--terrasync-dir=d:\programfiles\terrasync
--fg-aircraft=C:\Users\Nikolai\Documents\FlightGear\Aircraft;d:/ProgramFiles/Development/Git/flightgear-saab-ja-37-viggen/Aircraft
--airport=EKCH
--runway=04L
--aircraft=777-300ER
--language=en
--console
--disable-random-objects
--prop:/sim/rendering/random-vegetation=false
--enable-horizon-effect
--enable-enhanced-lighting
--enable-ai-models
--enable-ai-traffic
--enable-real-weather-fetch
--geometry=1366x768
--bpp=32
--texture-filtering=4
--prop:/sim/rendering/multi-sample-buffers=1
--prop:/sim/rendering/multi-samples=4
--timeofday=noon
--enable-terrasync
--httpd=8080
--disable-fgcom
--prop:/sim/rendering/max-paged-lod=8
--prop:/sim/tile-cache/enable=false
--prop:/sim/rendering/multithreading-mode=AutomaticSelection
--prop:/sim/sound/voices/enabled=0
Last edited by Necolatis on Tue Mar 03, 2015 10:42 am, edited 2 times in total.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow in internal views

Postby Thorsten » Mon Feb 02, 2015 6:32 am

In internal views there is no snow.


Falling as precipitation? On the ground of a glacier landclass? On the surface of a tropical island? Generated by a shader effect with dynamical snowline? Inside the plane?
Thorsten
 
Posts: 11087
Joined: Mon Nov 02, 2009 8:33 am

Re: 3.4 RC1 - No snow in internal views

Postby jarl.arntzen » Mon Feb 02, 2015 8:09 am

@Necolatis: A screenshot would help immensly :)
Frequent Flyer. Occasional Lander.
jarl.arntzen
 
Posts: 106
Joined: Thu Jan 03, 2013 9:43 pm
IRC name: Jarl Arntzen
Version: 2017.1.1
OS: Ubuntu 14.04

Re: 3.4 RC1 - No snow in internal views

Postby Necolatis » Mon Feb 02, 2015 1:18 pm

Sorry, falling snow. The plane is on the runway, view is from the cockpit, and looking out the windows there is no falling snow. In external views there is falling snow.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow in internal views

Postby Necolatis » Mon Feb 02, 2015 1:29 pm

I can reproduce by putting SHSN in the metar.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow in internal views

Postby Thorsten » Mon Feb 02, 2015 5:30 pm

I'm guessing that's completely normal and the behaviour of ages ago. The osg precipitation code doesn't mesh too well with our shader framework, so whenever you try to render rain through a transparent texture (such as a cockpit window with just a tad of reflection texture) you don't see any precipitation. Only planes which don't have a transparent texture window work okay.

Can't be fixed without basically re-writing the whole way precipitation is done by osg, simply not worth it.
Thorsten
 
Posts: 11087
Joined: Mon Nov 02, 2009 8:33 am

Re: 3.4 RC1 - No snow in internal views

Postby Necolatis » Mon Feb 02, 2015 6:09 pm

No, that is not it, cause tried to open canopy in a plane, and still did not see snow falling.

Also it works fine in C172, because it has its cockpit view defined as not being internal.

So it has to do with the view being internal.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow in internal views

Postby Thorsten » Mon Feb 02, 2015 6:43 pm

Sorry, I can't reproduce this. Cockpit view in the c172p is definitely marked as internal view here (I checked both current view and the view definition), and snow works fine, so in the cockpit view of the ufo and the DR400 Dauphin. So I can't see that it has to do with internal or not. Checking for 10 minutes, I couldn't find any behaviour I haven't observed for a long time.

Incidentially, I also see proper precipitation from the 777-300ER cockpit.
Thorsten
 
Posts: 11087
Joined: Mon Nov 02, 2009 8:33 am

Re: 3.4 RC1 - No snow in internal views

Postby Necolatis » Mon Feb 02, 2015 8:38 pm

Well C172 has this, so assumed it was not internal:

Code: Select all
<view>
         <internal archive="y">false</internal>
         <config>
            <pitch-offset-deg>-8</pitch-offset-deg>
         </config>
      </view>



Anyway, if you don't have this problem I guess its related to my settings somehow.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow in internal views

Postby Hyde » Mon Feb 02, 2015 11:16 pm

Necolatis wrote in Mon Feb 02, 2015 8:38 pm:Anyway, if you don't have this problem I guess its related to my settings somehow.

I have same problem here.
Yes, I wanted to change 777 to see precipitation and snow but not succeeded.
I changed view internal to false then I can see snow but also cockpit was vanished.
Hyde
 
Posts: 728
Joined: Fri Aug 12, 2011 1:09 pm
Location: Peachtree city, GA
Callsign: N407DS
Version: GIT
OS: Fedora 25

Re: 3.4 RC1 - No snow in internal views

Postby Thorsten » Tue Feb 03, 2015 6:03 am

My c172p doesn't have these lines, mine has

Code: Select all
  <view>
   <internal type="bool" archive="y">true</internal>
   <config>
     <x-offset-m archive="y" type="double">-0.21</x-offset-m>
     <y-offset-m archive="y" type="double">0.235</y-offset-m>
     <z-offset-m archive="y" type="double">0.36</z-offset-m>
     <pitch-offset-deg type="double">-12</pitch-offset-deg>
   </config>
  </view>
Thorsten
 
Posts: 11087
Joined: Mon Nov 02, 2009 8:33 am

Re: 3.4 RC1 - No snow in internal views

Postby Hyde » Tue Feb 03, 2015 11:49 am

Thorsten wrote in Tue Feb 03, 2015 6:03 am:My c172p doesn't have these lines, mine has

Yes, mine ether. I should have checked first.
Anyway, I still have this issue on 777,
I checked on PC-9M, too. It doesn't work ether even canopy opened.
You mentioned it worked on 777-300ER.
What is the difference, I wonder. :?:
Hyde
 
Posts: 728
Joined: Fri Aug 12, 2011 1:09 pm
Location: Peachtree city, GA
Callsign: N407DS
Version: GIT
OS: Fedora 25

Re: 3.4 RC1 - No snow in internal views

Postby Necolatis » Tue Feb 03, 2015 1:15 pm

Yes, I double checked, it seems I looked at the wrong c172 -set.xml file.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow in internal views

Postby Necolatis » Sun Mar 01, 2015 3:18 pm

This is still an issue in FG 3.5

Also rain has the same problem. For example +SHRA

Tried setting /sim/current-view/internal to false, and immediately I can see the precipitation.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: 3.4 RC1 - No snow or rain in internal views  

Postby Necolatis » Tue Mar 03, 2015 10:41 am

YEAH!!!!

I solved it. It was not a bug, but apparently a feature.
In $FGDATA/Nasal/aircraft.nas is a rain section. Lots of planes uses it in their tiresmoke effect file, so I assumed I had to do aswell to get better tiresmoke in rain.
That system disables rain when in internal view. What I really wonder is why so many aircrafts would want that!

Anyway if the aircraft has something like this, then rain is disabled in internal views:

Code: Select all
aircraft.rain.init();

var rain = func {
   aircraft.rain.update();
   settimer(rain, 0);
}

# == fire it up ===
rain()
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1987
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Next

Return to Release candidates

Who is online

Users browsing this forum: No registered users and 1 guest