Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (524)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Cubic Spline Interpolation - LWJGL on: 2011-04-23 13:58:28
Hi thanks,

Thanks for the comments. I've not had much time to look into this but I have made some tweaks based on some suggestions made at game dev.net

This is the current progress of it so far.

http://www.youtube.com/watch?v=83Z7b7Uue1U

With an updated formula it seems to work but the motion is more linear than cubic... Any thoughts?

http://pastebin.com/gtCTxK6n
2  Game Development / Newbie & Debugging Questions / Re: Cubic Spline Interpolation - LWJGL on: 2011-04-21 22:23:16
Hi there,

Thanks for all your reponses.

Due to simplicity mainly i'm trying to get the cubic spline algorithm that is mentioned here:

http://archive.gamedev.net/reference/articles/article914.asp


I've made some progress, but the control points of the curve don't get plotted correctly. I've made a video here.

http://www.youtube.com/watch?v=UuE3U2CV_Co



I've updated my sample if anyone wished to take a look (netbeans project)
http://www.fileswap.com/dl/Fjl3EMrz/CubicSplines.rar.html
3  Game Development / Newbie & Debugging Questions / Cubic Spline Interpolation - LWJGL on: 2011-04-21 15:03:51
Hi there,

I've been trying to get cubic spline interpolation into a sample project for some time, without any success.

I'm trying to simulate a network environment whereby the player controlls one sprite, another sprite follows using cubic spline interpolation.

I've based this sample on http://archive.gamedev.net/reference/articles/article914.asp, but I've not had much luck.

Has anyone had any experience of cubic spline interpolation or is even brave enough to take a look at this sample?

Interpolation project: http://pastebin.com/8yR5hGCH

Cubic Interpolator Class: http://pastebin.com/p1L9k4SJ

Netbeans sample project:
http://www.fileswap....plines.zip.html
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

toopeicgaming1999 (28 views)
2014-11-26 15:22:04

toopeicgaming1999 (25 views)
2014-11-26 15:20:36

toopeicgaming1999 (7 views)
2014-11-26 15:20:08

SHC (24 views)
2014-11-25 12:00:59

SHC (24 views)
2014-11-25 11:53:45

Norakomi (24 views)
2014-11-25 11:26:43

Gibbo3771 (22 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (74 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!