Terrain Objects

Creating new content for Trespasser!

Moderators: TresCom Support Team, TresCom Board Managers, TresCom Developers

Post Reply
User avatar
Chupacabra
Brachiosaurus
Brachiosaurus
Posts: 136
Joined: Sun Apr 16, 2006 5:44 am
Location: New York
Contact:

Terrain Objects

Post by Chupacabra »

I imported Terrain Objects from IJ into the TC-Dilo test level, and in game they're like this:

Image

Image

Image

Anyway to fix this?
Lex: I'm a hacker!
Tim: That's what I said: you're a nerd.
Lex: I am not a computer nerd. I prefer to be called a hacker!
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6137
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: Terrain Objects

Post by Rebel »

All terrain objects need to share the same palette. Easiest thing to do is to extract a terrain_obj from the level you're editing and paste your desired texture onto that (saving it to the name of the texture you previously imported). Then redo the import, choosing replace textures.
User avatar
Chupacabra
Brachiosaurus
Brachiosaurus
Posts: 136
Joined: Sun Apr 16, 2006 5:44 am
Location: New York
Contact:

Re: Terrain Objects

Post by Chupacabra »

So, let me get this straight first lol

1. Export the Terrain Object originally in the level
2. Open the .bmp of that object
3. Paste the .bmps of the new objects
4. Save under the same name
5. Import the edited Terrian Object?
Lex: I'm a hacker!
Tim: That's what I said: you're a nerd.
Lex: I am not a computer nerd. I prefer to be called a hacker!
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6137
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: Terrain Objects

Post by Rebel »

Yup. In TresEd, you can goto the toolbar and choose select 1st terrain texture. That'll ensure that it's the correct palette. Export that, open it up, paste a copy of your image over it and save. That'll be the texture you would use to import your terrain_obj with.

Note: Your texture's appearance (colors) may change slightly, though however the colors translate that's what it needs to be in order to render properly.
User avatar
Chupacabra
Brachiosaurus
Brachiosaurus
Posts: 136
Joined: Sun Apr 16, 2006 5:44 am
Location: New York
Contact:

Re: Terrain Objects

Post by Chupacabra »

Thanks, for the help, it worked perfectly, only problem now is the layering priority is off:

TresEd:

Image

In Game:

Image

The moss objects were imported last, and are physically above the mountains in "Draw Terrain Textures"
Lex: I'm a hacker!
Tim: That's what I said: you're a nerd.
Lex: I am not a computer nerd. I prefer to be called a hacker!
User avatar
Rebel
-=TresCom Developer=-
-=TresCom Developer=-
Posts: 6137
Joined: Sun Nov 10, 2002 10:26 pm
Location: That country nobody likes (you know the one)
Contact:

Re: Terrain Objects

Post by Rebel »

Layering is controlled by int Height = #, tscript entry for any particular terrain_obj. A '2' would draw above a '1', a '4' above a'3' and so on and so forth. I don't believe that any Height entry above '10' is value though -

It doesn't seem to matter if your terrain objects are at the height of the terrain they're painting or set at 1.5 height. Most times, I set them all at 1.5 so I can keep them out of the way of landscaping assets although that can become a bit bitchy if you're attempting to select a particular terrain_obj (difficult to select sometimes).
User avatar
Chupacabra
Brachiosaurus
Brachiosaurus
Posts: 136
Joined: Sun Apr 16, 2006 5:44 am
Location: New York
Contact:

Re: Terrain Objects

Post by Chupacabra »

Thanks again :) Sorry if my questions seem n00bish
Lex: I'm a hacker!
Tim: That's what I said: you're a nerd.
Lex: I am not a computer nerd. I prefer to be called a hacker!
User avatar
Draconisaurus
T-Rex Killer
T-Rex Killer
Posts: 14077
Joined: Mon Dec 06, 2004 5:21 pm
Antispam: No
Location: Isla Sorna
Contact:

Re: Terrain Objects

Post by Draconisaurus »

Another easy way that's been provided for in Tres CE is Wally. It was included for the sole purpose of palette management. Wally allows you to save and load palettes from different 8-bit bmps. On my Box http://www.box.net/shared/cpshg3a80o you'll find my Trespasser palettes compilation, including one for each retail terrain palette as well as for the TC Isle terrain.

For TC Dilo, the terrain palette probably doesn't support the IJ terrain colors anywhere near as well as its original palette, so you'll want to select all terrain objects in Dilo, export, and actually replace the textures by renaming ones from IJ and deleting the originals, so they all use your desired palette.
Post Reply