Jump to content


Photo

Curves 1.5


  • Please log in to reply
33 replies to this topic

#21 Topaze22

Topaze22

    GMC Member

  • GMC Member
  • 58 posts

Posted 31 December 2010 - 09:10 AM

So beautifull !
Thanks for this amazing/original work, we love it so much, incredible performance
Thanks again !
  • 0

#22 freko

freko

    The Professional

  • GMC Member
  • 504 posts
  • Version:GM8

Posted 03 January 2011 - 01:27 PM

Just curious to know.. can it be used to make objects move along the spline and with relative rotations?
  • 0

#23 dadio

dadio

    I miss my cupcake

  • GMC Member
  • 1847 posts
  • Version:GM:Studio

Posted 03 January 2011 - 02:28 PM

Solid gold.
Pretty damn awe inspiring codework... FPS is through the roof.

Any GM plans beyond this?
  • 0

#24 LSnK

LSnK

    NaN

  • GMC Member
  • 1188 posts

Posted 03 January 2011 - 08:15 PM

Can I ask how you're handling the rounded edges and antialiasing?

I've been toying with doing similar stuff in pixel shaders, never really figured out a good way to have smooth transitions between segments.

Oops, only just noticed your post. But the extension doesn't do any of that? If you're looking at the "how to use" images I'm afraid I drew them in a paint program, haha.

Just curious to know.. can it be used to make objects move along the spline and with relative rotations?

The extension is only for drawing. GM's path functions have spline support in the form of the 'smooth' option. You can determine the direction with point_direction(xprevious,yprevious,x,y).
  • 0

#25 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 06 January 2011 - 08:57 PM

I actually looked at this a long time ago, but now decided to praise you. :D
Really nice work. I was amazed about the example as it was so unexpectedly beautiful and fast considering GM is drawing it. Getting points on the curve is actually quite useful feature, but it possibly could be pain in the ass to find the point on a ds curve.
I was actually inspired by this to make these functions. But I would want to know how did you make the continues curve with the d3d_bezier_begin function? Does it actually draw a Bezier or some spline with Hermite (or other) interpolation? You already have a spline_begin function so I guess it really draws a Bezier, but then what order curve is it? I actually haven't tested the bezier_begin function so I should probably do that.
Anyway, really nice work. :)
  • 0

#26 LSnK

LSnK

    NaN

  • GMC Member
  • 1188 posts

Posted 18 January 2011 - 04:56 PM

But I would want to know how did you make the continues curve with the d3d_bezier_begin function? Does it actually draw a Bezier or some spline with Hermite (or other) interpolation? You already have a spline_begin function so I guess it really draws a Bezier, but then what order curve is it? I actually haven't tested the bezier_begin function so I should probably do that.
Anyway, really nice work. :)

Nothing that nice I'm afraid! Those functions exist only because of GM's limit of ten arguments. They only draw single quadratic/cubic beziers, selecting which to use based on the number of points given. They ignore anything higher.

And thanks.
  • 0

#27 jack1993jack

jack1993jack

    GMC Member

  • New Member
  • 231 posts

Posted 22 January 2011 - 10:51 PM

Very nice, does this involve anti-aliasing in any way?
  • 0

#28 twiwlek

twiwlek

    GMC Member

  • GMC Member
  • 7 posts

Posted 10 July 2011 - 12:25 PM

Hello,
First I want to say great job. Its very usefull.

But also it seems to be small problem in GM8.1 under Windows 7 (under XP seems to work fine).
I start app run then exit and I got message that application crashed.

Details
Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	ATT_test.exe
  Application Version:	2.1.0.0
  Application Timestamp:	4e15ae6c
  Fault Module Name:	curves.dll_unloaded
  Fault Module Version:	0.0.0.0
  Fault Module Timestamp:	4cfaecfc
  Exception Code:	c0000005
  Exception Offset:	6fce994e
  OS Version:	6.1.7600.2.0.0.256.4
  Locale ID:	1045
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

Everything is saving before app crash so this is not critical.

Edited by twiwlek, 10 July 2011 - 12:26 PM.

  • 0

#29 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 11 July 2011 - 02:43 PM

Hello,
First I want to say great job. Its very usefull.

But also it seems to be small problem in GM8.1 under Windows 7 (under XP seems to work fine).
I start app run then exit and I got message that application crashed.

Details

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	ATT_test.exe
  Application Version:	2.1.0.0
  Application Timestamp:	4e15ae6c
  Fault Module Name:	curves.dll_unloaded
  Fault Module Version:	0.0.0.0
  Fault Module Timestamp:	4cfaecfc
  Exception Code:	c0000005
  Exception Offset:	6fce994e
  OS Version:	6.1.7600.2.0.0.256.4
  Locale ID:	1045
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789

Everything is saving before app crash so this is not critical.

This uses GMApi for calling GM's built in drawing functions. GMApi is not supported in 8.1 so it crashes.
  • 0

#30 jobro

jobro

    GMC Member

  • New Member
  • 1247 posts
  • Version:GM8

Posted 14 July 2011 - 03:49 PM

Judging from the screenshots this looks like it can be used for a lot of fun stuff! Great work. I doubt I'll have the time to play with it more seriously, but it rocks no less!
  • 0

#31 Master Xilo

Master Xilo

    GMC Member

  • GMC Member
  • 379 posts
  • Version:GM8

Posted 21 July 2011 - 03:12 PM

The demo is beautiful. Very well done!

It would be useful if you added a little help file to the extension. Or at least a link to this topic (by including an .url file (created by right clicking - create new link...) instead of a help file) (yes this works, I just tested it, you just have to manually start typing the name of the link file when including it as its not shown even with "All Files" selected).

Edited by Master Xilo, 21 July 2011 - 08:48 PM.

  • 0

#32 brod

brod

    Brian RODriguez

  • GMC Member
  • 2021 posts
  • Version:GM8

Posted 15 March 2012 - 02:00 AM

May I suggest a draw_pie function with the same parameters as draw_arc? I made one myself but I draw a lot of them quite often so I was hoping there was a similar way to make it faster as you've done with all of these.
  • 0

#33 grugin

grugin

    GMC Member

  • GMC Member
  • 118 posts

Posted 16 March 2012 - 10:05 AM

a new GMApi is available to gamemaker 8.1. There is a chance to see your great extension ported over gm8.1 ??? Thanks in advance.
  • 0

#34 Monstr Gaming

Monstr Gaming

    GMC Member

  • GMC Member
  • 288 posts
  • Version:GM:Studio

Posted 21 April 2012 - 11:24 AM

This isn't working for me. :confused:
I tried redownloading example but it still does not work.

It technically works but will not create any curves/splines/whatever like in the screenshots
any suggestions?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users