Author Topic: I made a berm  (Read 773 times)

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
I made a berm
« on: November 14, 2017, 08:20:12 PM »
[Note: HiTech thinks the TE already has berms in the shapes list.  I will defer to him when he finds the name of the file.  In the mean time, I did some digging.]

So I exported the revetment shape into AC3D, and opened it.  I was able to modify it into a berm.  (Coloring it is next.)  The whole process is actually quite easy, but probably insanely difficult for more complex objects.  But in the mean time, I accomplished what I wanted to do, which is make a berm object.

What file format do I need to save it in to get it into the terrain editor?  Is it the Direct X format (.x)?  If so, where do I save it to?
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline Easyscor

  • Plutonium Member
  • *******
  • Posts: 10888
Re: I made a berm
« Reply #1 on: November 15, 2017, 06:00:06 AM »
You save it in the ac3d native .ac format. It's actually a text file you can open in notepad.
File>Convert Ac3d File in the Object Editor.
It should show in the objects list the next time you open the OE.
Next, use the Edit Tree Button to start installing the properties. I would probably use the the same properties found in the original revetment shape.

One of the things you'll need to watch for is lifted edges not meeting the terrain.
Easy in-game again.
Since Tour 19 - 2001

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #2 on: November 15, 2017, 07:18:57 AM »
Thanks Easy.  That's helpful to know.  Do you know where the files stored in order for the OE and TE to see them?
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline hitech

  • Administrator
  • Administrator
  • *****
  • Posts: 12339
      • http://www.hitechcreations.com
Re: I made a berm
« Reply #3 on: November 15, 2017, 09:08:30 AM »
YOu can also use the revetment0 shape directly in the Terrain Editor. You simply need to show all shapes check box.
I'm all so adding it to the shape list in the TE editor so you will not need to check that box.

HiTech

« Last Edit: November 15, 2017, 09:25:38 AM by hitech »

Offline Easyscor

  • Plutonium Member
  • *******
  • Posts: 10888
Re: I made a berm
« Reply #4 on: November 15, 2017, 12:05:03 PM »
Thanks Easy.  That's helpful to know.  Do you know where the files stored in order for the OE and TE to see them?

Good point.
The .ac files can be stored anywhere.
You will need all the textures that go with them to be in the same folder.
Once they are converted successfully, you will find the corresponding [shape name].shp and [texture name].htx files here:
C:\Hitech Creations\Aces High III\userlib
Typically there will be at least 3 files, but more if there is more then one texture.

Copy these files into the texsrc folder in your terrain.
Currently, the texture skinning will look different depending on which application you're using. The TE (or the skinviewer) will show the closest match to how it will render in the game.
Easy in-game again.
Since Tour 19 - 2001

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #5 on: November 15, 2017, 11:20:44 PM »
Ok, it worked.. sort of.

I modified the revetment shape into a berm, checked it over, converted it, and dropped it into my terrain.  It even matches the color of the terrain, shadows are correct, it's solid, all sides are even with the ground.  I even put it on a hill, and it looks great. 

Unfortunately, the item seems to have been mis-scaled somewhere along the way, because it's 10 or 20 times the size it's supposed to be.  I checked the AC3D file, and in that software, it's the same scale as the original revetment.  In the object editor, however, it looks about the size of a cruiser main gun battery.

I'll experiment more this weekend, but if anyone has any thoughts, I'd be glad to hear them.

Also, modifying the revetment shape into a realistic berm in AC3D was very easy.
« Last Edit: November 15, 2017, 11:31:14 PM by 8thJinx »
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline Easyscor

  • Plutonium Member
  • *******
  • Posts: 10888
Re: I made a berm
« Reply #6 on: November 16, 2017, 05:27:53 AM »
If it's about the size of a cruiser main gun battery, then it sounds like no scaling took place. It's easy enough to drop it next to a revetment on a vBase and check.

I like that you've gained some experience with converting ac3d objects. :aok
Easy in-game again.
Since Tour 19 - 2001

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #7 on: November 16, 2017, 09:54:02 AM »
Ok, I fixed the scaling issue.  I will probably start fresh with a new revetment modification this weekend.  And overall it still needs a lot of work, but this is the idea:

Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #8 on: November 16, 2017, 09:57:52 AM »
Regarding the lifted edges, I assume to fix that the bottom set of vertex points should all be a little bit negative, correct?

Also, the other side of the berm above has the coloring of the inside of the revetment shape.  Is there a way to change the coloring of each facet in the wire frame model?  Do I do that in AC3D, or in the text file.  I'd rather keep the coloring of the side you see in the image as the color for the whole thing, because it automatically adapts to the terrain it's sitting in.
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline Easyscor

  • Plutonium Member
  • *******
  • Posts: 10888
Re: I made a berm
« Reply #9 on: November 16, 2017, 02:24:19 PM »
1 Regarding the lifted edges, I assume to fix that the bottom set of vertex points should all be a little bit negative, correct?

2 I'd rather keep the coloring of the side you see in the image as the color for the whole thing, because it automatically adapts to the terrain it's sitting in.

1 Yes
2 The _A.bmp handles that. Make it all black. The _N.bmp bump maps the object. Look to Greebo's skin tutorial in the skinning forum for more details.
Easy in-game again.
Since Tour 19 - 2001

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #10 on: November 16, 2017, 05:52:04 PM »
1 Yes
2 The _A.bmp handles that. Make it all black. The _N.bmp bump maps the object. Look to Greebo's skin tutorial in the skinning forum for more details.

I'm looking through Greebo's thread, but I can't identify where the bitmaps are stored.  Are they in the .ac file, as a property?
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #11 on: November 16, 2017, 06:00:33 PM »
I can change the color in AC3D to all black, but I'm not sure that's what you meant, Easy.
« Last Edit: November 16, 2017, 06:14:14 PM by 8thJinx »
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #12 on: November 16, 2017, 06:13:50 PM »
I found the bitmap files.  _A, _N, and _S.  And I guess a main bitmap. I'll try to modify these.
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline 8thJinx

  • Silver Member
  • ****
  • Posts: 990
Re: I made a berm
« Reply #13 on: November 16, 2017, 06:17:09 PM »
I can modify them.  Easy, you are saying the _A bitmap should be 100% black.  I will give that a whirl.

Also, AC3D is awesome in that it lets you merge vertices, remove facets, split a large facet into more facets.  Great tool.
Join Date: Nov 2012

B-24H Liberator SN 294837-T, "The Jinx", 848th BS, 490th BG, 8th AF, RAF Station Eye, delivered 1943.  Piloted by Lt. Thomas Keyes, named by by his crew, and adorned with bad luck symbols, the aircraft survived the entire war.

Offline Easyscor

  • Plutonium Member
  • *******
  • Posts: 10888
Re: I made a berm
« Reply #14 on: November 16, 2017, 08:07:32 PM »
In the _A file, Black is transparent in some objects but in this case, it picks up the ground. White picks up the Diffuse bitmap.

In the Skinner's forum, find Greebo's sticky thread. http://bbs.hitechcreations.com/smf/index.php/topic,388296.msg5160422.html#msg5160422
« Last Edit: November 16, 2017, 08:09:26 PM by Easyscor »
Easy in-game again.
Since Tour 19 - 2001