BVEStation

Author Topic: NYCTA (T) Line Tottenville (SIR) to 125 St. Broadway via 2nd Ave using Sketchup  (Read 28225 times)

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Hi,

I have known of OpenBVE for some time and did some minimal work to get familiar with the product.  About 2 years ago I detailed a comprehensive fictional subway plan for Staten Island.  The details are here http://www.nyctransitforums.com/forums/topic/47689-staten-island-fantasy-system-useful-for-future-bve/.  One of the lines takes the existing 2nd Avenue plan and extends it to Staten Island via Governers Island and the Red Hook Tunnel to St. George, Staten Island using Brooklyn as an anchor.  The existing SIR route would be modified to handle subways with signals, new structures and expanding the right of way.

I would like to build my objects as detailed as possible, so I wrote a program to create vertices and faces using primitive objects (rectangle, circles, polygons, etc.).  Although I had success it was equivalent to blindly building objects.  I needed something visual.  Enter Sketchup.  I have become quite experienced in using this product over the last year and wanted to find a way to export from .skp files to .csv files recognizable by OpenBVE.  My success was limited until I found a plugin that extracted meshes, faces, and vertices.  This plugin generated an XML file and had a trial version conversion program that converted the XML format to B3D format.  Sadly there is no longer any support for this so I wrote my own conversion program to generate .csv object files.  The results were fantastic, but there are downsides where the triangulation of the polygons generate quite a lot of faces as well as some problems with reverse faces that can be corrected building the Sketchup model.

I have somewhat coded up the Tottenville yard, rendering it size-wise as closely as possible aided by Google Maps satellite view.  I have built custom signals and am investigating how to integrate them with the Signal namespace if at all possible.  For signal identifiers I will use the chaining for the current 2nd Avenue line.  One problem is that the distance markers go negative based on the current use of the IND zero point where a current signal at 72nd Street is marked as 1168.  So when the identifier goes negative, I will precede the number with an "M" for minus.

Other issues concern FPS which is not to high, barely cracking 20 with a CPU running full throttle and my laptop fan running at full steam.  I am using a nearly 5 year old Sony VAIO 2.2 GHz Quad Core i7 running under 64-bit Windows 7 Home Premium with 8GB of RAM.  My graphics card is the NVIDIA GeForce GT 540M with 4GB of memory.  Not sure if this is a problem.

Anyway here are some screen captures.

1. Regional Plan using Scribble Maps




2. Forward View showing signals, bumpers, and crossovers.










« Last Edit: July 17, 2017, 12:55:17 pm by GG_Train »
Joe

TrainKidKris

  • Guest
Good job

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Ok, here is an update.  I had to update the configuration of the switches and yard leads given the curve extends some 125 meters past the point where the curve originally ended.  Also I have reduced the polygon count for the signals by 80 percent.  This was an FPS killer.

This is my first rendition of the station frame.  I will be modifying the beams slightly for better definition, add the station name, subway maps, and other signs.  There will be an exit to the fictitious Perth Amboy ferry.  The Jersey Coast line is less than a mile from the Tottenville station.




Aerial View Showing Tottenville Beach and approach to yard and station.  For scenery I am using Structure.Ground to define a scene every 25 meters.  Images for Ground need not be just ground.  It is possible to place objects above the y-axis, so trees, buildings, and other landscaping can be place there.  Can experienced users validate this technique for me?  I viewed the OpenBVE source code and there seems to be no limitations for the number of objects for Ground, Dike, etc.  Memory is your limiting factor.




Here is Tottenville Beach with the station visible behind the trees.  This may be overkill, but I enjoy that detail.




On the platform viewing southbound with the Arthur Kill visible behind the trees.  The Tottenville station is 6 feet above sea level.

« Last Edit: July 17, 2017, 01:01:34 pm by GG_Train »
Joe

Offline coneyislandDFNQ

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 801
  • Gender: Male
  • Route & Object Developer
    • View Profile
I am very impressed keep up the great work, I will definitely be looking at how this project progresses

Offline BVERailer

  • Operator
  • ***
  • Posts: 302
  • Gender: Male
  • Your average railfan, I guess..
    • View Profile
Looking nice! Keep up the great work!
I am BVERailer. I love to play openBVE and other simulation games. Please check out my YouTube channel: https://www.youtube.com/channel/UCxp-G9E0TqfwJJQUQHiuZYw

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Hi, here are some more images.  These will be my last images until I finish a one station route video showing an R1 running from Tottenville to Arthur Kill Road. I will be on vacation for a while, plus I will be working on my O-Gauge hobby also.  I have expanded my Sketchup to CSV conversion program to eliminate the triangulation of faces in most cases.  This program removes common edges for a face but the rendering fails for concave polygons which is correct by design given the limitations of OpenGL.  It is easy however to add line segments to make convex polygons in those cases.

Anyway here are the images:

Look at the route sign for the T train.  It goes to "Downtown" Staten Island (the St. George area) via Staten Island's South Shore, then uses the Red Hook Tunnel to get to Manhattan.  The bullet is colored turquoise.




Here are several lighted yard signals.




And here are the new lighted interlocking signals for the switches in the view.






« Last Edit: July 17, 2017, 01:06:05 pm by GG_Train »
Joe

Offline TJay1724

  • Developer
  • Conductor
  • **
  • Posts: 150
  • Gender: Male
  • BVEStation Member
    • View Profile
This looks absolutely amazing!!!

Offline Fan Railer

  • Global Moderator
  • Dispatcher
  • ****
  • Posts: 897
  • Gender: Male
  • Train Developer
    • View Profile
    • Fan Railer's YouTube Channel
I'm really digging those new signals!

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Hi everyone.  The status of this project is that I completed the track from Tottenville to Richmond Valley Road.  This includes curves and pitch, but no signals.  The Main Street - Tottenville station houses and mezzanine is complete with signage.  Miscellaneous markers for train lengths and other station artifacts (subway maps, station seats, garbage pails, stairs from tracks to platform, etc.) will soon be added.  Details on both sides of the tracks go out about 500 feet on each side complete with streets and pavement.  This detail will make building a reverse direction easier.

Here are a few more images:

1. Exit at end of platform to Bentley Street, Tottenville Beach, and the Perth Amboy Ferry.




2. Entrance on Ellis Street to mezzanine.




3. Exit at start of platform to Main Street and Ellis Street.




4. Bentley Street station house.

« Last Edit: July 17, 2017, 01:24:10 pm by GG_Train »
Joe

Offline WizDaGamer

  • New Recruit
  • *
  • Posts: 61
  • Gender: Male
  • Third year as Route Developer
    • View Profile
Awesome!

Offline MtaR160

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • Youtuber & A lonely Developer
    • View Profile
Please Can You Teach Me How To Do This,This Failed Everytime, Can You Give Me Your Conversion Program So I Can Convert, I'm A Newbie But I Was To Be A Developer, Please Give It To me

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Ok, I have not posted in a while. I was away on vacation a lot over the summer and now I am working on my O-Gauge subway layout in addition to this.  I have the tracks down from Tottenville to Richmond Valley Road.  No new signals have been added yet and I am working on scenery which is about 400 meters away from the Arthur Kill Road station.  Here is a shot of beautiful Tottenville USA.  I have one fictional apartment house and may add another mid-rise.  After all, Staten Island will have some Queens influence as it now has a subway.

Regarding the conversion program from SketchUp.  I will share this in detail.  The conversion has only failed ONCE because of strange hidden geometry that I was able to remove.  That is one time for thousands of conversions.  The enhanced conversion combines triangles to reduce the number of faces.  Concave polygons behave erratically.  This is a limitation of OpenGL.  The conversion program first creates an XML file via a plugin and then runs an executable written in C# to convert the XML file to CSV format.  It is sophisticated enough to minimize the number of polygons and use a material naming convention to light up faces which is useful for signals.

Tottenville USA!!!

Joe

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
OK. Here you go.  A zip file containing all the files of my work done so far.  Included are all the SketchUp files also.  See my tutorial on how to convert SketchUp files to CSV format.

http://www.mediafire.com/file/b9tu2ucq8f2qu7q/NYCT_T_Line_OpenBVE.zip
« Last Edit: October 07, 2017, 11:20:20 am by GG_Train »
Joe

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Another street scene on Ellis Street which runs adjacent to the tracks with fictitious bus route.  More updates for downloads to follow. Buses and cars will be included.

« Last Edit: October 12, 2017, 12:54:36 pm by GG_Train »
Joe

Offline GG_Train

  • New Recruit
  • *
  • Posts: 26
  • Gender: Male
  • BVEStation Member and Developer
    • View Profile
Updates are slow, but work is being done. In order to get quicker rendering, the number of faces must be reduced.  This image is of Girard Street in Tottenville looking towards the tracks.  Originally this view which is is 25 meter section had 12000 faces. It now has only 2000 with better detail because the textures are image files rather than vectors. An automobile that once had 500 faces now has 25. A bus with 1200 faces now has 55. More textures have to be loaded, so I am not sure if there is a downside to that.

Joe