VJForums  

Go Back   VJForums > Technique > Developers Area

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 27th July 2006, 08:43 PM
victimofleisure's Avatar
victimofleisure victimofleisure is offline
senior human
 
Join Date: Jan 2006
Location: UNITED STATES
Posts: 248
Lightbulb MFC template for Freeframe source plugins (try it!)

After I wrote the Whorld source plugin, I got the idea that it would have been handy to have some kind of template project to start from, along the lines of "TODO: add your drawing code here". I looked at the FreeFrame SDK, but it wasn't quite what I had in mind. I wanted something optimized for writing source plugins, rather than effects. Specifically, I wanted the template to mirror the structure of a typical MFC graphics app, with a surrogate main frame and view, so that drawing code could be transplanted from an app to a plugin with minimal modifications. For example, in Whorld, the view uses the exact same source file in both the app and plugin; the differences are simple enough to be managed with #ifdefs.

So I finally got around to making the template project. It's called FFSrcPlug. It has a rudimentary demo view which draws a bouncing ball, and it exposes a single Freeframe parameter (the ball speed). The plugin DLL and the template project sources are in the same zip file, which is here:

http://whorld.org/temp/FFSrcPlug-1.0.0.zip

I've only tested FFSrcPlug.dll under TZT and Resolume. If you can test it in other hosts and post the results here, I would be grateful.

Speculation: could it be that part of the reason why Freeframe source plugins aren't so common is because there wasn't a clear example to start from? If that's so, maybe this template will spark an explosion of cool source plugins! You never know...

Chris Korda
http://whorld.org
Reply With Quote
  #2  
Old 27th July 2006, 10:08 PM
sleepytom's Avatar
sleepytom sleepytom is offline
<<<< Muppet!
 
Join Date: Apr 2002
Location: UNITED KINGDOM
Posts: 12,893
Default

wow thanks Chris

the sample plugin works in VJamm 3 and in VJOgold

Can i include this template in the offical sourceforge freeframe downloads?
__________________
Putting the cross into crossplatform

www.vjstore.org Free Clips!! AVHire.net Equipment Rental for VJs by VJs
Reply With Quote
  #3  
Old 27th July 2006, 11:11 PM
MoRpH's Avatar
MoRpH MoRpH is offline
Moderator
 
Join Date: Apr 2002
Location: AUSTRALIA
Posts: 3,685
Send a message via ICQ to MoRpH Send a message via AIM to MoRpH Send a message via MSN to MoRpH Send a message via Yahoo to MoRpH
Default

Awesome work Chris. Are you on Opentzt.com forums yet? Do you mind if I mirror you post over there so some other opentzt users can get inspired?
Reply With Quote
  #4  
Old 27th July 2006, 11:31 PM
hamageddon's Avatar
hamageddon hamageddon is offline
is inside the vjvault
 
Join Date: Apr 2002
Location: GERMANY
Posts: 1,506
Send a message via MSN to hamageddon Send a message via Yahoo to hamageddon
Default

chris hereby nominated for freeframe innovation award

and yeah i'm beating the dead horse again!
http://www.vjforums.com/showthread.p...t=screensavers
let's have more freeframe synthesizers, why can't we take it from here?
Reply With Quote
  #5  
Old 28th July 2006, 08:45 AM
DrEskaton's Avatar
DrEskaton DrEskaton is offline
Triple Hexagon, Osaka
 
Join Date: Mar 2003
Location: Osaka, Japan
Posts: 2,291
Default

this is great...

is anyone game to try and convert this into an xcode project for mac ppls?

karl?
__________________
--
PhotoSynthesis, Osaka, Japan. Monthly Eclectic Electronic Music / Visual Performance Night.
Reply With Quote
  #6  
Old 28th July 2006, 11:25 AM
karl's Avatar
karl karl is offline
Sex, Drugs and Videogames
 
Join Date: Nov 2003
Location: NORWAY
Posts: 937
Default

Quote:
Originally Posted by DrEskaton
this is great...

is anyone game to try and convert this into an xcode project for mac ppls?

karl?
Sure, lend me a mac :-)
__________________
FreeFrameFreakFiles: http://vjfx.com
Reply With Quote
  #7  
Old 28th July 2006, 12:39 PM
karl's Avatar
karl karl is offline
Sex, Drugs and Videogames
 
Join Date: Nov 2003
Location: NORWAY
Posts: 937
Default

I'll talk to Intrinsic if I can borrow his mac again, thenagain I think I got a XCode FF skeleton some where in the closet...

k
__________________
FreeFrameFreakFiles: http://vjfx.com
Reply With Quote
  #8  
Old 28th July 2006, 12:47 PM
karl's Avatar
karl karl is offline
Sex, Drugs and Videogames
 
Join Date: Nov 2003
Location: NORWAY
Posts: 937
Default

Sorry Doctor, the skeleton in my closet are GCC scripts, no XCode there

k
__________________
FreeFrameFreakFiles: http://vjfx.com
Reply With Quote
  #9  
Old 28th July 2006, 01:00 PM
karl's Avatar
karl karl is offline
Sex, Drugs and Videogames
 
Join Date: Nov 2003
Location: NORWAY
Posts: 937
Default

Compile freeframe:
Code:
gcc -DTARGET_OS_MAC -c -O3 FreeFrame.cpp -o FreeFrame.o -include MyEffect.h
Compile your effect:
Code:
g++ -DTARGET_OS_MAC -dynamiclib -O3 MyEffect.cpp FreeFrame.o -o MyEffect.o -include MyEffect.h
Make OSX dist:
Code:
mkdir MyEffect.frf
mv MyEffect.o MyEffect.frf/MyEffect
rm FreeFrame.o
The defs I needed to compile Intrinsics Win32.cpp and .h files on OSX:
Code:
#include <Carbon/Carbon.h>
#define         __stdcall
#define         APIENTRY
typedef         unsigned char           BOOL;
typedef         Handle                          HANDLE;
typedef         void*                           LPVOID;
#define         BYTE                    UInt8
#define         WORD                    UInt16
#define         DWORD                   UInt32
#define         LARGE_INTEGER   UInt64
copy the MyEffect.frf folder to your say isadora's plugin folder

You now got a OSX FreeFrame effect!

k
__________________
FreeFrameFreakFiles: http://vjfx.com
Reply With Quote
  #10  
Old 29th July 2006, 06:17 AM
victimofleisure's Avatar
victimofleisure victimofleisure is offline
senior human
 
Join Date: Jan 2006
Location: UNITED STATES
Posts: 248
Default

>>>Can i include this template in the offical sourceforge freeframe downloads?

Yes, please!

>>>mirror you post over there so some other opentzt users can get inspired?

Yes again! I'm on the TZT forums, but it didn't occur to me to post there.

>>>freeframe innovation award

YAY!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger