This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
MateuszŁ  
#1 Posted : Thursday, September 15, 2022 4:57:18 AM(UTC)
MateuszŁ

Rank: Newbie

Groups: Guest
Joined: 2/7/2019(UTC)
Posts: 9

Thanks: 6 times
Can anyone tell me if the library can be used to obtain a warp effect?

UserPostedImage UserPostedImage UserPostedImage UserPostedImage

I am looking in the manual and I do not really see such transformations.
And if it is impossible, can anyone suggest how to achieve it?

thanks!


#mesh #transform #warp #grid
Eugene Kosmin  
#2 Posted : Thursday, September 15, 2022 10:59:26 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Guest
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello,

Please have a look at BezierTransform.

Here you can find a sample:
https://github.com/aurig....Bezier/BezierExample.cs
Best regards,
Eugene Kosmin
The Aurigma Development Team
thanks 1 user thanked Eugene Kosmin for this useful post.
MateuszŁ on 6/11/2023(UTC)
MateuszŁ  
#3 Posted : Friday, September 16, 2022 7:53:39 AM(UTC)
MateuszŁ

Rank: Newbie

Groups: Guest
Joined: 2/7/2019(UTC)
Posts: 9

Thanks: 6 times
Hi Eugene,

Thank you for pointing out BezierTransform, I suspected this class.

But the description in the manual and even the example are not clear to me. At the beginning, I thought that this function does a transformation only in one axis (and ControlPoints is one bezier curve on which the image bends - that's what the example suggested to me).
Of course it is different, I have already discovered why the points must be 16 and how they are arranged:

UserPostedImage

Is it possible to increase the number of control points, e.g. to the size of 25x25 = 625? It would be a ready-made solution...

It is not clear from the manual what it is for
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.