tcmodder Posted February 15, 2010 Share Posted February 15, 2010 Ok i have been working on a map.Once i get done making my road by dragging nodes to were i want the road and then press form land to roads or whatever that option is it makes the road very open around corners.Were ever a corner or turn is its like only half a road and is like broken apart.Also the terrain like deforms and makes huge holes or huge pointy spots realy high.Whats going on when i tryed to make a road with the dessert map that comes with the engine it worked amazing real smooth why not in my map?? See what i mean.. Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 15, 2010 Share Posted February 15, 2010 You need to set the Y offset to 0.055. Filename: models/entities/road/road_node.lua Line: 13 Code: class.roadoffset=0.005 Change To Code: class.roadoffset=0.055 According to my tests, this is the optimal value which is not too low and not too high for any scenarios. If more people can confirm that it works, it should be updated into the engine. 1 Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Josh Posted February 15, 2010 Share Posted February 15, 2010 I can't tell what you are trying to do from that screenshot. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted February 15, 2010 Share Posted February 15, 2010 If you follow the green line, that's where he wants his road to be, but it gets this broken look to it. I have the same issue. Quote Link to comment Share on other sites More sharing options...
Josh Posted February 15, 2010 Share Posted February 15, 2010 You need to adjust the directions your road nodes face to make a more natural line. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted February 15, 2010 Share Posted February 15, 2010 So does that mean the angle between node to node has to be below a certain value? It won't automatically make a curved road no matter the angle? Quote Link to comment Share on other sites More sharing options...
tcmodder Posted February 15, 2010 Author Share Posted February 15, 2010 You need to adjust the directions your road nodes face to make a more natural line. Doesnt do a think. Lumooja I cant find that code on line 13.I got into the file road_node.lua but what you said to change is not on that line 13 i cant find it in that file??? Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 15, 2010 Share Posted February 15, 2010 You need probably Leadwerks Engine 2.31. My data was based on that. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
tcmodder Posted February 15, 2010 Author Share Posted February 15, 2010 Hmm darn.I dont have $50 dollars right now to update but hey you dont know how to fix it in 2.3 do you? Quote Link to comment Share on other sites More sharing options...
Rick Posted February 15, 2010 Share Posted February 15, 2010 2.30 to 2.31 doesn't cost anything. Quote Link to comment Share on other sites More sharing options...
tcmodder Posted February 15, 2010 Author Share Posted February 15, 2010 2.30 to 2.31 doesn't cost anything. Wooha!What?I thought i had to pay $50 to upgrade?How do i upgrade?!!! Quote Link to comment Share on other sites More sharing options...
Rick Posted February 15, 2010 Share Posted February 15, 2010 Download http://leadwerks.com/werkspace/index.php?app=downloads&showfile=107 This will have a drop down box with the version you want to download starting at 2.3 and so far has 2.31. Quote Link to comment Share on other sites More sharing options...
carlb Posted February 15, 2010 Share Posted February 15, 2010 tcmodder make sure you do this to get full forums access forum access as you still showing as a member so you dont have full LE Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
tcmodder Posted February 15, 2010 Author Share Posted February 15, 2010 carlb thanks for the info.... Also i took a look and well seems as though i already have 2.31 i thought i didnt but to my amazement i do.LOL.Oops.So i wander whats my problem.Could it still be i need to adjust the direction the node faces?Also i noticed when i loaded the dessert test map that only half the road shows up.Whats wrong with my engine could i be missing drivers?Do i need to reinstall something?Please help.. Quote Link to comment Share on other sites More sharing options...
Josh Posted February 16, 2010 Share Posted February 16, 2010 The roads are built asynchronously, so they take some time to show up in a large map. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
tcmodder Posted February 16, 2010 Author Share Posted February 16, 2010 Alright i figure that.But i still dont understand why my roads are being the way they are,messing my terrain up and making thee road blocky.Whats going on? PS:whats and ideal frame rate? Quote Link to comment Share on other sites More sharing options...
macklebee Posted February 16, 2010 Share Posted February 16, 2010 1) From that screen shot you are in the sculpting terrain editor mode, not the object mode, which I suspect is why you have jagged peaks. 2) If you want rounded corners on your road, you have to do what Josh said and rotate the nodes (by the Y axis) until you get the curve that you want. 3) You said line 13 of your road_node lua script doesn't contain the roadoffset value? That means youre not using single state lua or you have edited the road script. What is the very first line of your road node script? EDIT--- actually it looks like if you do not correctly have your road laid out before you hit the 'Align terrain to roads' button, it will cause these jaggies. You need to layout your road on the terrain first. Rotate the road nodes by their Y axis until you get the look you are looking for... and also suggest you increase the offset inside the script to a higher value as suggested. Then when the road is completely laid out, then hit the 'Align terrain to roads' button. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
tcmodder Posted February 16, 2010 Author Share Posted February 16, 2010 1) From that screen shot you are in the sculpting terrain editor mode, not the object mode, which I suspect is why you have jagged peaks. 2) If you want rounded corners on your road, you have to do what Josh said and rotate the nodes (by the Y axis) until you get the curve that you want. 3) You said line 13 of your road_node lua script doesn't contain the roadoffset value? That means youre not using single state lua or you have edited the road script. What is the very first line of your road node script? EDIT--- actually it looks like if you do not correctly have your road laid out before you hit the 'Align terrain to roads' button, it will cause these jaggies. You need to layout your road on the terrain first. Rotate the road nodes by their Y axis until you get the look you are looking for... and also suggest you increase the offset inside the script to a higher value as suggested. Then when the road is completely laid out, then hit the 'Align terrain to roads' button. LOL i feel so dumb ha i do have that on line 13 i wasnt looking close enough.Oh im so dumb. Edit:darn didnt fix it.Well next thing rotate on y axis.Well woot woot it fixed it.Well the combination of changing the value and the y rotate fixed it.Thanks so much guys.Also you have to have .055 and rotate the y axis for the roads to aline.I took the code back to .005 and rotating the y axis done nothing.Thanks so much guys ily lol. PS:What the heck do you have an undo in this engine.LOL.If so what keys is it?It usually is ctrl z but well it does nothing.If you all dont have one that is a forsure needs to be in it... Quote Link to comment Share on other sites More sharing options...
carlb Posted February 16, 2010 Share Posted February 16, 2010 no undo at the moment i know a few people have requested so hope to have soon, as i could do with it make so many mistakes lol Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
Michael Betke Posted February 16, 2010 Share Posted February 16, 2010 So does that mean the angle between node to node has to be below a certain value? It won't automatically make a curved road no matter the angle? Yes. I think this is a issue. You have to change every node in its directions one by one. Very time consuming and combined with lacking undo its sometimes hard to do long roads. Maybe it'll get improved some day. Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.