Featured TUTORIAL Race Track Builder - Inject elevation data and terrain texture

Discussion in 'Tracks' started by Wurstkoffer, Sep 17, 2017.

  1. Wurstkoffer

    Wurstkoffer Member

    Joined:
    Sep 6, 2017
    Messages:
    51
    Likes Received:
    34
    Don't have that option. Any plugin involved?
    upload_2018-1-14_17-54-34.png
     
  2. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    That's strange... I have a recent version on my home pc (2.18.4) and an older portable version and they both have it. What version are you using?
     
  3. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    I don't have any plugins installed that I can remember
     
  4. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    It's 2.18.14 I have actually. My menu looks like this

    upload_2018-1-14_21-37-53.png
     
  5. Wurstkoffer

    Wurstkoffer Member

    Joined:
    Sep 6, 2017
    Messages:
    51
    Likes Received:
    34
    Damn! I had 2.18.11 before, now 2.18.15, but nothing changed.
     
  6. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    That's weird... I can't find anything in the help about this either
     
  7. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    I'm cautiously optimistic that I've got it working now. I seem to be getting good data finally,and the only change that I've made is in the Geoserver Layer page, where I added a Metadata link and a Data link, both the same, with the name of the workspace. I also added the SRS definition as you suggested, also in the Layer page, under Declared SRS
     
    luchian likes this.
  8. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    I should probably make a short video showing it working (except that I've never made one before) and demonstrate the various steps. For a single tile it's not too complicated, but I still need to figure out how to use multiple files tiled in a single layer.

    But I was grinning like the cheshire cat last night watching the terrain moulding itself perfectly. I was subdividing as far as RTB allows and it was still improving the quality.
     
    Wurstkoffer, Willy Wale and luchian like this.
  9. Wurstkoffer

    Wurstkoffer Member

    Joined:
    Sep 6, 2017
    Messages:
    51
    Likes Received:
    34
    That's dope, man! :)
     
  10. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    I’ve decided to make a short-ish loop based on the 50cm data for the North York Moors, to test out how good the surface is. I’ll set the track profile to conform to the terrain as much as possible and then post the result. Can’t promise when…

    I'm writing up a set of instructions on setting up Geoserver, but I've been having problems today and I can't figure out why. Stuff that was working yesterday isn't today...
     
  11. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,492
    You've created a forum impossibility. One cannot like nor dislike the above comment.


    Sorry I cannot be of any real help. I understand half of what you guys write, but still following the discussion with great interest. I like.. no, I admire this game of patience and perseverence with trying to male this work. In small steps, but no quitting. Looking forward to see something visual when all the codding stuff works.

    - on Tapatalk
     
    Pixelchaser and Les Neilson like this.
  12. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    Why, when I copy and paste some test into this box, does it refuse to let me post it?
     
  13. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    As far as setting up Geoserver goes, this is what seems to work for me:

    First, grab your lidar data and combine it into a single file. (Tiling is another topic, but looking briefly into it, I notice a related app called GeoWebCache specifically designed for tiling datafiles. It is also available as a standalone app and might be useable for our needs by itself. I’ll get around to checking it out)

    Install a Java Runtime Environment (version 8), then install Geoserver and try starting it up. As I said before, the default port setting didn’t work for me; I changed it and it works okay. Once it’s running you can access the Admin page (http://localhost:yourportnumber/geoserver), log in and set up access to the data.

    First you need to create a workspace.
    Click on Workspaces, and select Add new workspace
    Give it a name
    Set the URI to http://localhost:yourportnumber/workspacename and click Save

    Then you need to create a datastore under the workspace that references your datafile.
    Click on Stores, and select Add new store
    Select the filetype of the lidar data you’ve got
    Select the workspace you’ve just set up, and browse to the datafile
    Save it and you’ll be directed to the New Layer chooser
    Select Publish and set up some layer parameters
    You need to insert a URL for the data (http://localhost:yourportnumber/workspacename). The same works for both Metadata and Data links

    Not sure if it’s necessary to change the Declared SRS…
    The bounding boxes should be okay as they are

    (The only other thing I set was in the WMS settings. I set the interpolation method to bicubic. This calculates an elevation value based on the 16 surrounding boxes to get the best possible output, but there is a performance penalty. The default setting just gives the nearest value, which could lead to visible stepping. Bilinear is the compromise option. This needs testing to see if there’s a visible effect, and if the performance penalty Is noticeable. Now I think about it, this option may only be relevant to raster rendering, and not to plain text output, not sure about this)

    Select Layer Preview and find the entry for your data. Click on the OpenLayer link and this will bring up a new tab showing a clickable display of the data. Clicking on it should show altitude values. The URL for this page is the one you need to copy into config.php (only up to ‘wms?’). Copy in the layer name as well.

    Save the changes to config.php, start up Apache, and run RTB…

    Once you start subdividing your terrain, open the log file in xampp/htdocs/maps/logs and check that you’re getting WMS elevation values rather than Google. If the Google values are shown rather than the WMS, copy the WMS URL into your browser and see if you get an error instead of ‘GRAY INDEX = elevationvalue’. If so, either I’ve not explained things correctly, or you’ve missed a bit somewhere…

    Good luck!

    Any problems, please ask. Occasionally I find a setup that was working yesterday refuses to cooperate. So far I haven’t found a way to fix this. In the end it’s easier to set up a new workspace etc. etc. as before
     
    Wurstkoffer, Pixelchaser and luchian like this.
  14. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    Progress on track building... Here's a screenshot of what the terrain looks like subdivided to the maximum that RTB allows

    upload_2018-1-18_18-46-9.png

    Same view from Google street view:

    upload_2018-1-18_18-46-48.png

    A little further down, there's an odd depression in the road surface. Turns out there's a cattle grid!
     
    Wurstkoffer, luchian and Pixelchaser like this.
  15. Pixelchaser

    Pixelchaser Well-Known Member

    Joined:
    Jan 4, 2015
    Messages:
    1,541
    Likes Received:
    1,050
    very nice indeed ! very interested to see how road laying operates on it. would you mind sharing a portion of terrain in rtb so I can see? bit lost with trying it myself at the moment, I have my limerock data I could try I guess. but from those images laying the road properly would tidy up all the anomolys.
     
  16. luchian

    luchian Administrator Staff Member

    Joined:
    Jun 3, 2014
    Messages:
    3,007
    Likes Received:
    1,492
    Yes, known problem but unknown solution. Must be linked to formatting or something. Hopefully it can be solved somehow.


    Otherwise, it looks very nice. Very good reference to work on, especially if all the process can be automatized. But overall, it probably takes way less time than doing it manually. I wouldn't know, I did not work with lidar yet.
     
  17. Pixelchaser

    Pixelchaser Well-Known Member

    Joined:
    Jan 4, 2015
    Messages:
    1,541
    Likes Received:
    1,050
    I wonder what brendon thinks of this... he could make it so much easier I bet.
     
  18. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    Oh yes, I wonder...

    What can I give you to look at? An fbx, a zipped project?
     
    Pixelchaser likes this.
  19. Pixelchaser

    Pixelchaser Well-Known Member

    Joined:
    Jan 4, 2015
    Messages:
    1,541
    Likes Received:
    1,050
    rtb project if it not too big..
     
  20. Les Neilson

    Les Neilson Active Member

    Joined:
    Sep 21, 2016
    Messages:
    186
    Likes Received:
    89
    ...184MB. I'm uploading it now.

    Problem though, KSEditor won't load the fbx because the mesh has too many vertices. I should have thought of that...
     
    Pixelchaser likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice