Board index FlightGear Support Graphics

Triton Ocean SDK Integration

Graphics issues like: bad framerates, weird colors, OpenGL errors etc. Bad graphics ar usually the result of bad graphics cards or drivers.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).
- please upload a screenshot of the problem.

If you experience FlightGear crashes, please report a bug using the issue tracker (can be also used for feature requests).
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article. If you are seeing corrupted/broken textures, please see this article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

Triton Ocean SDK Integration

Postby pssaransiva » Sat Feb 19, 2022 6:29 am

Is it possible to improve the FligthGear ocean rendering by integrating the Triton Ocean SDK.
We need to improve ocean by rendering shorelines (using bathymetry data in terrain for the water to interact with the coast naturally), different sea states and ship wakes.

Thanks.
pssaransiva
 
Posts: 2
Joined: Sat Feb 19, 2022 5:46 am

Re: Triton Ocean SDK Integration

Postby erik » Sat Feb 19, 2022 9:09 am

In contrast to humans, where some things are really obvious, computers need to be told everything. Bathymetry data is just a first step, the shaders also need to know in which direction the coastline is. Which is information we don't readily have available.

I don't think Triton Ocean SDK will ever be a part of the solution since it probably requires one to develop the simulation framework around it. Integrating it later might require way too much work which could be better spent integrating something like:
https://www.shadertoy.com/view/Ms2SD1

Or just parts of it.

Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm

Re: Triton Ocean SDK Integration

Postby MariuszXC » Sat Feb 19, 2022 12:19 pm

And if you replace line 187:
float time = iTime * 0.3 + iMouse.x*0.01;
with
float time = 0.0 * iTime * 0.3 + iMouse.x*0.01;
(or just leave the +iMouse part)

Then you can enjoy the effect without constant panning, which is annoying. You can still pan around with a mouse, to look around.
The effect, as implemented, reflects what is called a 'confused seas' state, as occurs for example in areas where strong currents meet, or after a sudden change in wind direction. For a more normal look a more predominant wave train is missing. Still, a very impressive looking synthetic sea.
INOP
MariuszXC
 
Posts: 1062
Joined: Tue May 18, 2021 5:38 pm
Location: Europe
Callsign: SP-MRM
Version: 2020.4
OS: Ubuntu 16.04

Re: Triton Ocean SDK Integration

Postby pssaransiva » Sun Feb 20, 2022 2:39 am

Thanks for your suggestions.

If Triton SDK is hard to implement, then can I look into integrating osgOcean with FG.
Is there any integrations already available?
pssaransiva
 
Posts: 2
Joined: Sat Feb 19, 2022 5:46 am

Re: Triton Ocean SDK Integration

Postby erik » Sun Feb 20, 2022 8:45 am

Apparently it has been discussed before:
https://wiki.flightgear.org/Implement_O ... FlightGear

I don't think it was ever implemented though.
Erik
Current: Parachutist, Paraglider, Pterosaur, Pilatus PC-9M and variants, ERCO Ercoupe, Fokker Dr.1, Fokker 50, Fokker 100
Less active: Cessna T-37, T-38, Santa Claus. Previous: General Dynamics F-16. Worked on: Wright Flyer
erik
 
Posts: 2248
Joined: Thu Nov 01, 2007 2:41 pm


Return to Graphics

Who is online

Users browsing this forum: No registered users and 2 guests