Jump to content

Adding river with Runtime Spline


Go to solution Solved by Clyde,

Recommended Posts

Posted

ive create a spline on my game, with nodes that added at runtime.
and i want to make a river from it.
add the river extension on it but the river doesnt show up
can someone help

 

spacer.png

Posted

im working on Unity 2021.3.14f, with Gena Pro 3.4.0

------------------------------------------------------------------------------------------
spacer.png

--------------------------------------------------------------------------------------------

my code

-------------------------------------------------------------------------------------------

spacer.png

  • Solution
Posted

In your code, you are creating 2 nodes within the for loop, and connecting those 2 with a curve.  Why?  All nodes should connect serially. Perhaps you meant for prevNode to be the node added last time through the loop?  It looks like nodes will be created on top of each other, but not connected, like 1->(2=3)->(4=5)->6 where node 2 and 3 are in the same position and node 4 and 5 are in the same position, but are not connected.  internally it would look like 1->2, 3->4, 5->6, in other words 3 unconnected separate curves.

Posted

i see gonna look througth it 
thanks for the answer

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...