Even if you restrict your "metaballs" to 2D logic you're not going to
get it fast enough in Lingo. Depending upon how comfortable you are
with Math and C++, you could write an Xtra that treats a sprite as
a spring system, mapping the sprite image to a grid, with each grid
point being held away from each other by connection springs. Then
have each grid point "attract" any "foreign grid point" (points that
are not in their grid, i.e. another spring-grid-sprite.) This could
be restricted to 2D and you'd prabably be able to maintain somewhat
respectable frame rates with these blobby-jello sprites, but you'd
have to place the spring-gravity system in an Xtra for all the logic
that would have to be executed to maintain the effect.

It'd be fun, but it would take some work... then again that work
would open up a new level of possibilities in your skills.

Check out www.darwin3d.com for some C++ source code examples of
spring systems as well as the Game Developer magazine site.

-Blake 

-----Original Message-----
From: grimmwerks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 2:03 AM
To: Lingo
Subject: <lingo-l> imaging lingo/metaballs..




...another 5am post.


I've been delving into 3d graphics/animation of late, as well as fooling 
with imaging lingo....and one thing that's starting to kind of stew in my 
addled brain is writing some lingo that can simulate metaballs....ie 
having 2 sprites animate, say one from the left and one from the right. 
When they enter each others sphere of influence, actually have the space 
between them become the combination of the two, perhaps even having a 
mixture of colors....kind of like morphing graphics but not Michael 
Jackson, more Terminator 2.

Maybe I should post this question after I get some sleep, but I'm 
wondering how insane I am....

I'm thinking that I would, once the two sprites (whatever graphic they 
may be...again, I'm not thinking the easy bounding box way, but only the 
actual graphic, ie if the sprites are 2 faces, the cheeks would pull, 
then the temple, etc...) entered the sphere of influence, they would be 
switched with one graphic that would draw the combination. This new third 
graphic would now be a combination of 90% Lefty, then 10% combo, then 90% 
of righty, and so on.....

Should I just go sleep this off?

--------------------[    http://www.grimmWERKS.com   ]------------------
 [ graphic design -|- sound design -|- shockwave -|- lingo -|- cdrom  ]
             


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to