3D-Wind-Field icon indicating copy to clipboard operation
3D-Wind-Field copied to clipboard

About learning algorithm

Open Rookiemin opened this issue 4 years ago • 11 comments

Hello,dear author. Recently I am studying your algorithm in demo, but due to the limited level, I can't understand some algorithm . Could you please tell me which algorithms are used in this demo? I want to study this demo further. Thanks any way!

Rookiemin avatar Dec 03 '20 01:12 Rookiemin

I have written some comment about the algorithm I used in the GLSL code. The key algorithms I used are listed below:

  • Bilinear interpolation https://en.wikipedia.org/wiki/Bilinear_interpolation
  • Runge Kutta second order https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods#Second-order_methods_with_two_stages
  • unit conversion: meters -> longitude latitude degrees https://en.wikipedia.org/wiki/Geographic_coordinate_system#Length_of_a_degree
  • WGS84 (lon, lat, lev) -> ECEF (x, y, z) https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_geodetic_to_ECEF_coordinates

P.S. It might be better if you ask about a specified algorithm you don't understand so that I can give you a more helpful answer

RaymanNg avatar Dec 04 '20 00:12 RaymanNg

Hello,dear author. Could you explain to me why use the convert Coordinate algorithm( WGS84 (lon, lat, lev) -> ECEF (x, y, z) )? I have a question, can the particle position be directly expressed in latlonlev? Thank you very much for your guidance.

Rookiemin avatar Dec 16 '20 03:12 Rookiemin

Could you explain to me why use the convert Coordinate algorithm( WGS84 (lon, lat, lev) -> ECEF (x, y, z) )?

The coordinate system of WebGL is Cartesian coordinate system, not WGS84, I have to convert WGS84 to XYZ for rendering

can the particle position be directly expressed in latlonlev?

I am afraid not, you have to render with the coordinate system of WebGL

RaymanNg avatar Dec 17 '20 01:12 RaymanNg

Can I convert the coordinate system to a two-dimensional Cartesian coordinate system? If so, could you provide me with an algorithm form​ula?​

------------------ 原始邮件 ------------------ 发件人: "RaymanNg/3D-Wind-Field" <[email protected]>; 发送时间: 2020年12月17日(星期四) 上午9:10 收件人: "RaymanNg/3D-Wind-Field"<[email protected]>; 抄送: "啥也不会的小菜鸟"<[email protected]>;"Author"<[email protected]>; 主题: Re: [RaymanNg/3D-Wind-Field] About learning algorithm (#52)

Could you explain to me why use the convert Coordinate algorithm( WGS84 (lon, lat, lev) -> ECEF (x, y, z) )?

The coordinate system of WebGL is Cartesian coordinate system, not WGS84, I have to convert WGS84 to XYZ for rendering

can the particle position be directly expressed in latlonlev?

I am afraid not, you have to render with the coordinate system of WebGL

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Rookiemin avatar Dec 17 '20 01:12 Rookiemin

Can I convert the coordinate system to a two-dimensional Cartesian coordinate system?

Could you elaborate your question? From which coordinate system you want to convert to 2D Cartesian coordinate system? And why converting to 2D? 2D is just a special case of 3D.

RaymanNg avatar Dec 17 '20 10:12 RaymanNg

sorry,I didn't describe it clearly。 Firstly,I am trying whether this demo can be converted into a 2D wind field。 So, I thought about converting the wgs84 coordinate system in webgl into a 2D coordinate system. See what the result looks like。 Could you give me some suggestions?

Thank you anyway! ------------------ 原始邮件 ------------------ 发件人: "RaymanNg/3D-Wind-Field" <[email protected]>; 发送时间: 2020年12月17日(星期四) 晚上6:15 收件人: "RaymanNg/3D-Wind-Field"<[email protected]>; 抄送: "啥也不会的小菜鸟"<[email protected]>;"Author"<[email protected]>; 主题: Re: [RaymanNg/3D-Wind-Field] About learning algorithm (#52)

Can I convert the coordinate system to a two-dimensional Cartesian coordinate system?

Could you elaborate your question? From which coordinate system you want to convert to 2D Cartesian coordinate system? And why converting to 2D? 2D is just a special case of 3D.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Rookiemin avatar Dec 17 '20 10:12 Rookiemin

What do you mean by 2D wind field? To draw particle trails on the surface of the Earth?

RaymanNg avatar Dec 18 '20 08:12 RaymanNg

Achieve a 2D wind field effect------------------ 原始邮件 ------------------ 发件人: "Rayman"<[email protected]> 发送时间: 2020年12月18日(星期五) 下午4:25 收件人: "RaymanNg/3D-Wind-Field"<[email protected]>; 抄送: "Rookiemin"<[email protected]>;"Author"<[email protected]>; 主题: Re: [RaymanNg/3D-Wind-Field] About learning algorithm (#52)

Rookiemin avatar Dec 18 '20 08:12 Rookiemin

Did you mean render 2D map like this example?

If so, then this is unfortunately not supported by this demo for the moment, you may refer to issue #18 to get some detail.

RaymanNg avatar Dec 21 '20 14:12 RaymanNg

Could you explain in detail why that effect cannot be achieved?

------------------ 原始邮件 ------------------ 发件人: "RaymanNg/3D-Wind-Field" <[email protected]>; 发送时间: 2020年12月21日(星期一) 晚上10:40 收件人: "RaymanNg/3D-Wind-Field"<[email protected]>; 抄送: "啥也不会的小菜鸟"<[email protected]>;"Author"<[email protected]>; 主题: Re: [RaymanNg/3D-Wind-Field] About learning algorithm (#52)

Did you mean render 2D map like this example?

If so, then this is unfortunately not supported by this demo for the moment, you may refer to issue #18 to get some detail.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Rookiemin avatar Dec 22 '20 01:12 Rookiemin

I am afraid not, because I am not familiar with 2D rendering of Cesium. All I know is that 2D rendering of Cesium is quite different from that of 3D. I suggest that you should seek for help in Cesium Forum

RaymanNg avatar Dec 23 '20 05:12 RaymanNg