Elvas Tower: New Route Editor for Open Rails - Elvas Tower

Jump to content

  • 208 Pages +
  • « First
  • 22
  • 23
  • 24
  • 25
  • 26
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

New Route Editor for Open Rails Build routes without msts Rate Topic: -----

#231 User is offline   Goku 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 06 October 2015 - 10:22 PM

View PostThat Genset Foamer, on 06 October 2015 - 09:44 PM, said:

Also, could curve radius be constrained by the user (selecting a design speed or manual input), meaning that only arc and thus arc length need to be computed by the sim?

Here you can see example use: https://www.youtube....h?v=BH6pUjOMqdA
(I did only one curve solution that only sometimes works).

You know only position and rotation of two endpoints.

Instead of calculating R1, R2, A it will be fine to calculate P3 and something about vector V. Maybe that will be easier.
With P3 and vector V i can split two curve solution into two separate one curve solutions.

http://i.imgur.com/qKM5IQO.png

#232 User is offline   That Genset Foamer 

  • Superintendant
  • Group: Status: Inactive
  • Posts: 1,459
  • Joined: 14-September 12
  • Gender:Male
  • Location:Somewhere on the ATSF 4th District
  • Simulator:OpenRails
  • Country:

Posted 06 October 2015 - 10:23 PM

Update--Found that the bearing for the tangent can be related to the bearing from the two angles. This new point where the opposing points of tangency intersect (Here, the PT of Curve 1 and the PC of Curve #2).


The first constraining equation is the one fixing the bearing of point "I", this intersection, to the known bearings.

I = C + A
I = 90 - A + D

C + A = 90 - A + D ---> 2A + C = 90 + D -----> 2A = 90 + D - C

Therefore A = (90 + D - C) / 2 is one constraining identity.

The second constraint is that the tangents must be identical between one bearing of the curve and

T1 = R1tan(A/2)
T2 = R2tan((90-A+D)/2)

The length between the PI of curve 1 and the PI of curve 2 are the sum of both tangents, plus any added tangent the user inserts.

Attached File(s)



#233 User is offline   Goku 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 06 October 2015 - 10:34 PM

I think 90 - A + D on my image could be wrong.
Look here:

http://i.imgur.com/niDSfs8.png

#234 User is offline   Goku 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 07 October 2015 - 11:53 AM

Another question. Is any open source ACE compression software awailable? Something like aceit? Or I need to write all by myself?
Now I have only uncompressed rgb. No dxt and no mipmaps.

#235 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 07 October 2015 - 12:08 PM

View PostGoku, on 07 October 2015 - 11:53 AM, said:

Another question. Is any open source ACE compression software awailable? Something like aceit? Or I need to write all by myself?
Now I have only uncompressed rgb. No dxt and no mipmaps.

My personal project has an ACE writer which includes compressing with DXT1 (lossy) and RGB with ZLIB/DEFLATE (lossless) in C#. License is BSD 2-clause so you should be able to do whatever you like with it (whether that's translating the code to C++ or just seeing how the formats are implemented). :)

#236 User is offline   disc 

  • Foreman Of Engines
  • Group: Private - Open Rails Developer
  • Posts: 818
  • Joined: 07-October 12
  • Gender:Male
  • Simulator:OpenRails
  • Country:

Posted 07 October 2015 - 12:42 PM

View PostGoku, on 07 October 2015 - 11:53 AM, said:

Another question. Is any open source ACE compression software awailable? Something like aceit? Or I need to write all by myself?
Now I have only uncompressed rgb. No dxt and no mipmaps.


What do you save in ACE? is it connected to route editor?

#237 User is offline   Goku 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 07 October 2015 - 01:12 PM

View Postdisc, on 07 October 2015 - 12:42 PM, said:

What do you save in ACE? is it connected to route editor?

Yes. Terrain painting uses this feature. It will be also possible to put png/bmp textures on terrain tiles with auto convert.



Also I will make ui for texture conversion like tgatool/aceit.

#238 User is offline   disc 

  • Foreman Of Engines
  • Group: Private - Open Rails Developer
  • Posts: 818
  • Joined: 07-October 12
  • Gender:Male
  • Simulator:OpenRails
  • Country:

Posted 07 October 2015 - 01:29 PM

View PostGoku, on 07 October 2015 - 01:12 PM, said:

Yes. Terrain painting uses this feature. It will be also possible to put png/bmp textures on terrain tiles with auto convert.



Also I will make ui for texture conversion like tgatool/aceit.


Will be DDS support too? Maybe ACE is needed for MSTS, but for OR DDS is better.

#239 User is offline   eugenR 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 472
  • Joined: 15-April 13
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 08 October 2015 - 02:18 AM

View PostGoku, on 06 October 2015 - 10:34 PM, said:

I think 90 - A + D on my image could be wrong.
Look here:

http://i.imgur.com/niDSfs8.png

I Think it is: C + A = D + X or X = C + A - D
If you think first the Tangentialline thru the Point P3 now rotate it along the circle to the Point P1 (Angle A)
now you rotate the Tangentialine in the Point P1 to the vertical (Angle C).
And now the same on the other side.

both sum of Angles (A +C) and (D + X) are equal:
They start on the same Angle in Point P3 and end in the vertical.

#240 User is offline   conductorchris 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,345
  • Joined: 24-March 10
  • Gender:Male
  • Simulator:Open Rails - MSTS
  • Country:

Posted 08 October 2015 - 09:14 AM

When thinking about curves, don't forget that most don't go straight from tangent into curve but have a "spiral" section that eases into the curve.
Christopher

  • 208 Pages +
  • « First
  • 22
  • 23
  • 24
  • 25
  • 26
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users