Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making long roadmesh runtime
#1
hi. i am able to create roadmesh at runtime with my player controller but this gets pretty heavy for pc because everytime i add a new segment, it updates whole road. 
how can i make new segments without updating the whole road? do i need to create new spline that continues from previous one? if so, how can i do that?

it seem that creating new generators at runtime is pretty heavy so i try to use one generator and add new spline to it. however i need to access generators InputSplinePath node to add spline there. 
i tried to access node with this code: InputSplinePath isp = generator.GetModule<InputSplinePath>(moduleID); isp.Spline = newSpline;
but isp is null. i dont know why. the node is there

tl;dr: how can i make long roads without updating the whole road everytime i add new segment to it

https://i.imgur.com/hyZ5KPu.png

this is how i get that moduleID. i create that generator when game starts. i dont know if this is correct way to get it.
Reply


Messages In This Thread
Making long roadmesh runtime - by migeg - 07-25-2020, 12:33 PM
RE: Making long roadmesh runtime - by migeg - 07-25-2020, 02:58 PM
RE: Making long roadmesh runtime - by _Aka_ - 07-26-2020, 12:53 PM
RE: Making long roadmesh runtime - by migeg - 07-27-2020, 12:31 AM
RE: Making long roadmesh runtime - by _Aka_ - 07-27-2020, 01:36 PM
RE: Making long roadmesh runtime - by migeg - 08-02-2020, 07:55 PM
RE: Making long roadmesh runtime - by _Aka_ - 08-02-2020, 08:42 PM
RE: Making long roadmesh runtime - by migeg - 08-03-2020, 01:11 PM
RE: Making long roadmesh runtime - by _Aka_ - 08-03-2020, 02:47 PM
RE: Making long roadmesh runtime - by migeg - 08-12-2020, 12:09 AM
RE: Making long roadmesh runtime - by _Aka_ - 08-12-2020, 12:42 AM
RE: Making long roadmesh runtime - by migeg - 08-12-2020, 11:55 AM
RE: Making long roadmesh runtime - by _Aka_ - 08-12-2020, 12:22 PM
RE: Making long roadmesh runtime - by migeg - 08-12-2020, 01:10 PM
RE: Making long roadmesh runtime - by _Aka_ - 08-12-2020, 11:58 PM
RE: Making long roadmesh runtime - by migeg - 08-13-2020, 01:20 PM
RE: Making long roadmesh runtime - by _Aka_ - 08-13-2020, 01:35 PM
RE: Making long roadmesh runtime - by migeg - 08-17-2020, 01:28 AM
RE: Making long roadmesh runtime - by _Aka_ - 08-17-2020, 02:55 PM
RE: Making long roadmesh runtime - by migeg - 08-17-2020, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
Wink Modifying Splines at Runtime artsung 1 7 01-30-2024, 09:40 AM
Last Post: _Aka_
  Is it possible to create a road texture at runtime? artsung 1 4 01-30-2024, 09:30 AM
Last Post: _Aka_

Forum Jump: