Planetside Software Forums

General => Terragen Animation => Topic started by: neuspadrin on March 07, 2009, 10:00:37 AM

Title: Terranim2Chan
Post by: neuspadrin on March 07, 2009, 10:00:37 AM
Terranim2Chan allows you to use Terranim to animate your camera movements on a terrain, and then convert the .tgs file into a chan file for Terragen 2.

Version 1.2 now uploaded.

Now gives ability to offset the x and z start positions of the terrain in Terragen 2.

** seems some people are having issues getting it to run properly, and it can sometimes have issues when run far from 0,0

Quick video example animation: http://www.youtube.com/watch?v=8N9Q7TtHViU

Quote from: readme.txt
Terranim2Chan
-----------------------------
Created by: Spencer Brooks
Terragen Forums: neuspadrin
Date: 05/03/2009
Version: 1.2

-----------------------------
About:
-----------------------------
Terranim2Chan will take the output Terragen script from Terranim (.tgs),
and convert it into a .txt file that is readable as a chan file in
Terragen 2 for camera movement through frames.

-----------------------------
How To Use:
-----------------------------
Double click the Terranim2Chan file to run the jar file.  It should come
up with a small window.
- First browse to find the tgs file you wish to convert.
- Input the offset values of where the terrain is located in Terragen2,
  by default when loaded in it usually is at 0,0 (x, z).
- Then double check the ter size and meters size for the conversion.
  By default TG2 generated terrain is 1000 ter size, and 10000 meters.
- Now browse to find where to save the file to.  You can save to an
  existing txt file, or type in a name for a new one.  If you do not
  set the file type to .txt, the program will automatically add it for you.
- Click convert.  The process should only take a second or two, but may be
  longer depending on the length of the animation.
- Once finished, it should pop up telling you it successfully completed, and
  inform you how many frames were processed from the tgs file.

-----------------------------
Tips to make it work:
-----------------------------
- Keep terrains positioned by lower left corner, not centered.
- Keep things square, ter size and meters.  Not 100% sure if it will work
 otherwise.
- Displacement outside the ter (shaders for example) will not be shown when
 creating the animation in Terranim, and thus, might cause it hard to animate
 later as the terrain will be different heights/positions, etc.  Try to keep
 shader displacements as small as possible.
- Compensate for vegetation.  If you are doing close fly by's make sure you keep
 in mind where the vegetation will be too.

-----------------------------
Requirements:
-----------------------------
Java Runtime Environment to run the jar file.

-----------------------------
Where can I get...
-----------------------------
Terranim:
http://www.ashundar.com/index.php?topic=3840.msg29642#msg29642
It also comes inside the original Terragen .9 download now it seems.

Java:
http://www.java.com/

-----------------------------
Questions? Bugs?
-----------------------------
Just PM me on the official Terragen forums, user neuspadrin.

-----------------------------
Change Log:
-----------------------------
1.2 - Added ability to offset the terrain location.
1.1 - Fixed 1am in the morning math errors.
1.0 - Release!
Title: Re: Terranim2Chan
Post by: rcallicotte on March 18, 2009, 01:28:37 PM
Thanks.  This is on my list of things to try.
Title: Re: Terranim2Chan
Post by: gbr on March 24, 2009, 12:51:37 PM
Hi,

using Terranim2Chan produces only a empty name.txt file with 0kb.

I tried to change all the options in the programmwindow, but the reult is always the same.

Does somebody know what I´m doing wrong? ???

Title: Re: Terranim2Chan
Post by: neuspadrin on March 24, 2009, 01:44:55 PM
can you upload the .tgs somewhere (like mediafire.com), so i can take a glance to see it.
Title: Re: Terranim2Chan
Post by: gbr on March 25, 2009, 01:13:14 PM
@ neuspadrin

http://www.mediafire.com/?sharekey=5201b289e8ad5ba31bee9a6e9edd9c7637374e20ea6b13f15621d66e282a0ee8

this is a simple terranim file.

Please try it out and perhaps you find what I am doing wrong.

Thank you!! ;D
Title: Re: Terranim2Chan
Post by: neuspadrin on March 25, 2009, 01:34:28 PM
Ran fine for me, processed 2557 frames, and output them to the correct area.

Did you follow the steps fully?

First browse to the .tgs, click it and hit open.

Then for the save to, hit browse, go to where you want to save it, and type a name at the bottom for filename, and hit save.

Then hit convert. You should be able to open it up just fine afterwards, in nameofsavedfile.txt, and it should display a message with the number of frames processed. 

Heres the output i got by running it with default settings for size/offset.

Title: Re: Terranim2Chan
Post by: gbr on March 26, 2009, 02:16:14 AM
Thank you neuspadrin!

I do it exactly like you, but.... nothing happens.
Maybe I need a special .dll in my system?
I use WIN XP.
Title: Re: Terranim2Chan
Post by: neuspadrin on March 26, 2009, 07:11:04 AM
That's what it was coded and tested on.  Maybe something to do with file permissions?
Title: Re: Terranim2Chan
Post by: gbr on March 27, 2009, 11:45:11 AM
What do you mean wit h file permissions?

I am always as an admin locked on.
Title: Re: Terranim2Chan
Post by: neuspadrin on March 27, 2009, 12:02:52 PM
What version of java are you running?

http://www.javatester.org/version.html
Title: Re: Terranim2Chan
Post by: gbr on March 28, 2009, 07:42:49 AM
Hi neuspadrin,

after opening the java-page it told me that my java-version is: 1.6.0_11.

That should be a newer version, isnt it?
Title: Re: Terranim2Chan
Post by: neuspadrin on March 28, 2009, 10:08:26 AM
Nope, that's the version I'm running. Hmmm...

I just tried it on another xp machine with only jre, and it ran just fine.  Also tested on 2 Vista machines just fine....

Which leads me back to thinking could be some kind of file permissions thing where your jre isn't being allowed to write files fully and such. 
Title: Re: Terranim2Chan
Post by: gbr on March 30, 2009, 11:53:06 AM
Hi,

I tried it also on three different computers. With and without firewall and virusfilters......
Maybe it has been a problem by downloading.
I store the file in the mediafire folder where the .tgs-file is.

If you want, you can test this file.

Thank You.

gbr



Title: Re: Terranim2Chan
Post by: neuspadrin on March 31, 2009, 08:19:08 AM
again, 2557 frames processed no problems....
Title: Re: Terranim2Chan
Post by: gbr on April 01, 2009, 01:16:59 AM
excuse me, neuspadrin,
i`m not used in english language.  :-\
The file i put in mediafire folder was your program Terranim2Chan, which i used to change the files.
I thought, that maybe this file is " defect ", and you can test it.
Title: Re: Terranim2Chan
Post by: neuspadrin on April 01, 2009, 07:30:05 AM
Thats the one i tested, i downloaded that one and ran it instead of my copy.
Title: Re: Terranim2Chan
Post by: Eza on June 13, 2009, 08:47:14 AM
Hi,

Same problem encountered, file created is empty.
I'm not sure this is a file permission problem : the fil wouldn't be created at all if it was the case ...

Title: Re: Terranim2Chan
Post by: neuspadrin on June 13, 2009, 09:41:07 AM
Maybe try putting the input and output in the same folder as the program?  Maybe that will make it happy?  I can't really fix a bug I haven't been able to replicate on my 3 widely different machine setups.

Hmmmm...
Title: Re: Terranim2Chan
Post by: MF_Erwan on December 04, 2010, 03:27:43 PM
Same thing, the created file is empty, wherever I put the files... :'(
http://www.megaupload.com/?d=2QNT9BJH
TER size: 4097
Size in meters:1779801
X offset: -889900.5
Z offset:-889900.5
I have Windows 7, 64 bits, Java version 6 update 22.

Erwan
Title: Re: Terranim2Chan
Post by: neuspadrin on December 04, 2010, 03:38:23 PM
Worked for me, heres the output I got, see if it looks good.

Also was running it this time on Windows 7 64bit, version 6, update 17 (seems like 22 should work too)
Title: Re: Terranim2Chan
Post by: MF_Erwan on December 04, 2010, 03:45:43 PM
Doesn't look good, I'm several hundreds of kilometers under the terrain!
(terrain centered, "Flatten surface first" unchecked (because of the huge scale of the terrain, almost 1800 kms)

Erwan
Title: Re: Terranim2Chan
Post by: neuspadrin on December 04, 2010, 03:50:52 PM
Ah, could be due to the flatten surface unchecked.  Also if I recall, the further it moves from 0,0, the less likely the calculations are to work.

Terranim was built around the idea of a flat plane, where as terragen 2 uses a sphere planet.  So, not sure if this will help much beyond more simple setups.

Sorry. I do also have a very quick intro tutorial of how to use terragen 2's animation module:
http://www.planetside.co.uk/wiki/index.php/Introduction_to_Animation_in_Terragen
Title: Re: Terranim2Chan
Post by: MF_Erwan on December 04, 2010, 03:55:52 PM
Just forget what I said. I thought I had to open the file via "Import animation file" in the "General" tab of the camera.
I used the "Import" tab and it seems to work better...

Erwan
Title: Re: Terranim2Chan
Post by: neuspadrin on December 04, 2010, 03:58:23 PM
Quote from: elegac on December 04, 2010, 03:55:52 PM
Just forget what I said. I thought I had to open the file via "Import animation file" in the "General" tab of the camera.
I used the "Import" tab and it seems to work better...

Erwan

Ok, hope it works well for you.
Title: Re: Terranim2Chan
Post by: MF_Erwan on December 04, 2010, 04:02:22 PM
I've launched the calculation with quality 0.25 and small size (70 images in 5 minutes!) to see if it will be ok. But since the terrain is huge, I have no choice but to uncheck "Flatten surface first"...

EDIT: Just had to relaunch, I forgot also to change the planet diameter, since we are supposed to be on Mars...