Author Topic: Terranim2Chan  (Read 13153 times)

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Terranim2Chan
« on: March 07, 2009, 02:00:37 PM »
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:


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!
« Last Edit: December 04, 2010, 07:52:40 PM by neuspadrin »

Offline rcallicotte

  • Member
  • *
  • Posts: 9542
Re: Terranim2Chan
« Reply #1 on: March 18, 2009, 05:28:37 PM »
Thanks.  This is on my list of things to try.
So this is Disney World.  Can we live here?

Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #2 on: March 24, 2009, 04: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 Im doing wrong? ???


Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Terranim2Chan
« Reply #3 on: March 24, 2009, 05:44:55 PM »
can you upload the .tgs somewhere (like mediafire.com), so i can take a glance to see it.

Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #4 on: March 25, 2009, 05: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

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Terranim2Chan
« Reply #5 on: March 25, 2009, 05: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.


Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #6 on: March 26, 2009, 06: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.

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Terranim2Chan
« Reply #7 on: March 26, 2009, 11:11:04 AM »
That's what it was coded and tested on.  Maybe something to do with file permissions?

Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #8 on: March 27, 2009, 03:45:11 PM »
What do you mean wit h file permissions?

I am always as an admin locked on.

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Terranim2Chan
« Reply #9 on: March 27, 2009, 04:02:52 PM »
What version of java are you running?

http://www.javatester.org/version.html

Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #10 on: March 28, 2009, 11: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?

Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Terranim2Chan
« Reply #11 on: March 28, 2009, 02:08:26 PM »
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. 
« Last Edit: March 28, 2009, 02:17:15 PM by neuspadrin »

Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #12 on: March 30, 2009, 03:53:06 PM »
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




Offline neuspadrin

  • Member
  • *
  • Posts: 1032
  • Terragen++
Re: Terranim2Chan
« Reply #13 on: March 31, 2009, 12:19:08 PM »
again, 2557 frames processed no problems....

Offline gbr

  • Member
  • *
  • Posts: 7
Re: Terranim2Chan
« Reply #14 on: April 01, 2009, 05: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.