Removed

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
timl132
Kobold
Posts: 27
Joined: Sun Mar 25, 2018 5:57 pm

Removed

Post by timl132 »

Removed

Last edited by timl132 on Sun Jan 08, 2023 9:39 pm, edited 1 time in total.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1280
Contact:

Re: Is there an spline mesh deformation thing in Ogre 2?

Post by dark_sylinc »

Checkout SimpleSpline in OgreSimpleSpline.h (and RotationalSpline if needed).

This code hasn't been touched since 1.x and in a long time; so most articles in the Wiki should be useful.
timl132
Kobold
Posts: 27
Joined: Sun Mar 25, 2018 5:57 pm

Removed

Post by timl132 »

Removed

Last edited by timl132 on Sun Jan 08, 2023 9:39 pm, edited 1 time in total.
timl132
Kobold
Posts: 27
Joined: Sun Mar 25, 2018 5:57 pm

Removed

Post by timl132 »

Removed

Last edited by timl132 on Sun Jan 08, 2023 9:39 pm, edited 1 time in total.
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Re: Is there an spline mesh deformation thing in Ogre 2?

Post by xrgo »

I haven't used it but I guess the Extrusion sample might be the one you need:
https://github.com/OGRECave/ogre-proced ... rusion.cpp

btw, no idea if this is already ported to 2.1
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Re: Is there an spline mesh deformation thing in Ogre 2?

Post by xrgo »

aparently al2950 have done some porting work: viewtopic.php?t=83727#p518997
timl132
Kobold
Posts: 27
Joined: Sun Mar 25, 2018 5:57 pm

Removed

Post by timl132 »

Removed

Last edited by timl132 on Sun Jan 08, 2023 9:39 pm, edited 1 time in total.
xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Re: Is there an spline mesh deformation thing in Ogre 2?

Post by xrgo »

timl132 wrote: Mon Apr 02, 2018 6:53 pm But does it actually bend the mesh? Or does it just place them along the spline?
I need them to be bend.
I haven't used it, but by the name I asume it extrudes, in other words neither of both cases, you need a shape/profile and a path
http://www.cadalyst.com/files/cadalyst/ ... onfig2.jpg

look closely at the code and you might understand a bit more what it does
User avatar
TaaTT4
OGRE Contributor
OGRE Contributor
Posts: 267
Joined: Wed Apr 23, 2014 3:49 pm
Location: Bologna, Italy
x 75
Contact:

Re: Is there an spline mesh deformation thing in Ogre 2?

Post by TaaTT4 »

timl132 wrote: Mon Apr 02, 2018 5:19 pm
dark_sylinc wrote: Mon Apr 02, 2018 4:55 pm Checkout SimpleSpline in OgreSimpleSpline.h (and RotationalSpline if needed).

This code hasn't been touched since 1.x and in a long time; so most articles in the Wiki should be useful.
Thanks!
But what about spline mesh deformation for roads and such?
Is there something for that?
Our game Racecraft uses OGRE Procedural for tracks generation.
So, I would definitely say that you can use it for roads :wink:

Senior programmer at 505 Games; former senior engine programmer at Sandbox Games
Worked on: Racecraft EsportRacecraft Coin-Op, Victory: The Age of Racing

Post Reply