IRTC anim topic: Impostor!

General discussion about JPatch

Postby sutabi » Mon Oct 17, 2005 2:43 am

My best guess is to make you own text with splines, then fade the alpha texture of them/
sutabi
 
Posts: 19
Joined: Sat Jul 09, 2005 8:08 am

Postby dcuny » Mon Oct 17, 2005 8:11 am

My recollection is that they were added in post production by a small Java tool Sascha wrote.
dcuny
 
Posts: 2902
Joined: Fri May 21, 2004 6:07 am

Postby sascha » Mon Oct 17, 2005 9:10 am

I've written a little tool for those tasks. It can be used to add various cut effects (well, actually two: cross-fade and iris), fade in/out and to add subtitles.
It hasn't got a GUI and is driven by a short configuration script. I'll search for my latest version and upload it.

If time allows, I'll add further effects (support for layers would be cool) and eventually integrate it into JPatch.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Postby squirrelhavoc » Mon Oct 24, 2005 6:23 pm

sascha wrote:I've written a little tool for those tasks. It can be used to add various cut effects (well, actually two: cross-fade and iris), fade in/out and to add subtitles.
It hasn't got a GUI and is driven by a short configuration script. I'll search for my latest version and upload it.

If time allows, I'll add further effects (support for layers would be cool) and eventually integrate it into JPatch.


Have you found the latest version? :)
Squirrel Havoc

We live as we think, very very slowly....
squirrelhavoc
 
Posts: 180
Joined: Tue Jun 28, 2005 11:17 pm
Location: Oklahoma, USA

Postby sascha » Mon Oct 24, 2005 8:13 pm

Yes :D

Here it is: http://www.jpatch.com/temp/impedit.jar

It is controlled by a beanshell script file, start with java -jar impedit.jar <config-file>

Here's the config-script I've used for "The Impostor": http://www.jpatch.com/temp/impostor1.bsh

It includes a few comments that describe its working. To start, document out everything and build your own config script - of course you'll have to use paths to directories and files on your system. I've never tried it on Windows though. Let me know if it works of if you need help.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Postby squirrelhavoc » Mon Oct 24, 2005 8:20 pm

THanks! Looking at the config file, Im a little confused. Are the "shot" and "edit" directives required for just subtitles, or are they only used for effects?
Squirrel Havoc

We live as we think, very very slowly....
squirrelhavoc
 
Posts: 180
Joined: Tue Jun 28, 2005 11:17 pm
Location: Oklahoma, USA

Postby sascha » Mon Oct 24, 2005 8:36 pm

Yes, you'll need at least one shot (in this case, your entire sequence) and one edit (a "copy" directive that simply copies all the frames of your sequence).
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Postby squirrelhavoc » Mon Oct 24, 2005 10:41 pm

I got an error, and I don't know if it's my config file or not, but here it is:

Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value
1347093252 in class file ColorFrame
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at bsh.classpath.ClassManagerImpl.plainClassForName(Unknown Source)
at bsh.classpath.ClassManagerImpl.classForName(Unknown Source)
at bsh.NameSpace.classForName(Unknown Source)
at bsh.NameSpace.getClassImpl(Unknown Source)
at bsh.NameSpace.getClass(Unknown Source)
at bsh.Name.consumeNextObjectField(Unknown Source)
at bsh.Name.toObject(Unknown Source)
at bsh.BSHAmbiguousName.toObject(Unknown Source)
at bsh.BSHAllocationExpression.objectAllocation(Unknown Source)
at bsh.BSHAllocationExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHReturnStatement.eval(Unknown Source)
at bsh.BSHBlock.evalBlock(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeImpl(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHAssignment.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at Main.main(Main.java:37)
Squirrel Havoc

We live as we think, very very slowly....
squirrelhavoc
 
Posts: 180
Joined: Tue Jun 28, 2005 11:17 pm
Location: Oklahoma, USA

Postby sascha » Tue Oct 25, 2005 7:08 am

Which Java version (and which JRE) are you using?
Looks like I've compiled it with 5.0 (1.5) and you're runnign 1.4.

Let me know if you can upgrade (use a JRE from Sun). If not, I can compile it with 1,4 or upload the source-code.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Postby squirrelhavoc » Tue Oct 25, 2005 10:45 am

Hmm, I have both installed, so I removed 1.4.2, and I'm still getting the same error

EDIT: Incase it matters, heres the version output

C:\>java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
Squirrel Havoc

We live as we think, very very slowly....
squirrelhavoc
 
Posts: 180
Joined: Tue Jun 28, 2005 11:17 pm
Location: Oklahoma, USA

Postby sascha » Tue Oct 25, 2005 12:35 pm

Ok, I see. Sorry for that. I'll check it in the evening.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Postby sascha » Wed Oct 26, 2005 8:36 am

I've recompiled it with -target 1.4 and jar'd it again. I've tested it on my machine (Linux, Sun JDK 1.5.0_04).

You can download it from here.
Here's a little test script - it generates 150 frames (with the background fading from black to white) and a subtitle insert. On Windows you might have to set the output directory to ".\" (for the current dir) or to some other path (don't forget the trailing "\").

For examples that include shots, transitions and different fonts, take a look at this file.

Here's the source (including Beanshell) - unzip it with a zip-program or with "jar -xf impedit_src.jar". In Subtitle.java you'll find the various constructors for subtitle effects (like used in the importor1.bsh script for the title). Subtitler.java contains the code that actually renders the subtitle.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Postby squirrelhavoc » Wed Oct 26, 2005 12:40 pm

Ah, now it works. One more question, how can I adjust the opacity of the background behind the text? It's a little too thin, and it's hard to read the text
Squirrel Havoc

We live as we think, very very slowly....
squirrelhavoc
 
Posts: 180
Joined: Tue Jun 28, 2005 11:17 pm
Location: Oklahoma, USA

Postby sascha » Wed Oct 26, 2005 8:49 pm

IIRC it uses the color of the outline (which can be set by some constructors of Subtitle - check Subtitle.java for reference). The opacity itself can't be set without modifying the source (Subtitler.java - you'd have to set colorBackground to a different value).

I wrote this application basically just for myself - so it itsn't quite user-friendly and certain effects would require modifications of the source and recompiling it. If I have more time, I'll maybe add a GUI and integrate it into JPatch some day.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Previous

Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron