Author Topic: Effect programming  (Read 3858 times)

Offline Loufe

  • Newbie
  • *
  • Posts: 1
    • View Profile
Effect programming
« on: May 09, 2021, 01:56:09 PM »
Hi all, I'm working on a project which I can't seem to get the existing effects to suit exactly how I'd like. I was wondering if there were any resources for helping development of effects. I don't see any references in the manual and I could only find the .xpm files in the source code.

Thanks

Lou

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Effect programming
« Reply #1 on: May 14, 2021, 08:43:47 AM »
It takes a lot of work to add a new effect.  You need to be able to follow the instructions to build the code yourself first.  Then you'd need to learn how existing effects work.  It takes using CodeBlocks to create the dialog windows for the effect and then you create files that contain your new fancy algorithm.  Then you need to use something like the Greenfish Icon creator tool to create an effect icon and then know how to "fix" the XPM file so it defines it as const and compiles properly.  Usually easier to just learn to use the tools already in the toolbox.

Offline allknowing2012

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Re: Effect programming
« Reply #2 on: May 14, 2021, 10:24:18 AM »
Another approach, depending on the prop, is to create an avi file of the desired look and simply use the movie effect.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Effect programming
« Reply #3 on: May 14, 2021, 04:24:30 PM »
The other option is to write a shader.   The shader stuff is super powerful and can do a ton of things. 
Daniel Kulp
Framingham, MA