Author Topic: AC3D ver 5 (021) c file format changed?  (Read 614 times)

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
AC3D ver 5 (021) c file format changed?
« on: June 06, 2005, 04:21:26 PM »
Hi

Here againg I'm spending my AC3D trial  time and trying to figure out wtf is wrong with these darn simple objects :mad:

There is something odd with new AC3D ver 5021 file  format OR some default settings must change to gain new OB compatible ac-files.  OB crash everytime with new shapes when  "Convert AC3D file" function but old ones goes just like that.

When I'm checking files with Notepad, I find that the "loc" infoline is in now several time in hierarchy tree? My old shapes have it just ones.

Oh S! if this is some classic RTFM thing...

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
AC3D ver 5 (021) c file format changed?
« Reply #1 on: June 09, 2005, 01:09:58 AM »
Hello,

Looks like it was RTFM stuff so far.

I forget “zeroing” those additional polygons, which I was using for hierarchy tree building. I just need to set zero Loc position every time before grouping operation. The Hierarchy tree and object properties look correct. Ok, lets convert it in OE… The OE Crashing every time.

After few careful rebuilds I check the ac file with Notepad and find out the Loc info line missing totally. So far all exported original AH2 ac files contain Loc info.

If I modify my ac file with Notepad and add missing “loc 0.000000 0.000000 0.000000” info line, it converts nicely in OE. I Need to say, these new shapes still don’t appear in TE… Oh my.

Un-modified shape and modifiedshape

I use original AH2 FENCE texture for these both shapes.

Any help?

Offline BlauK

  • Platinum Member
  • ******
  • Posts: 5091
      • http://www.virtualpilots.fi/LLv34/
AC3D ver 5 (021) c file format changed?
« Reply #2 on: June 09, 2005, 02:35:57 AM »
IIRC, there is somekind of definition in the files on how many text lines each object or group includes. So if you just add a line in a text editor, it may screw up everything that comes after that added line.... I experimented with this several weeks ago, so I do not remember for sure. Text editor is a nice tool for checking the locs though, especially since they cannot be edited from sub groups (since sub groups cannot be selected separately) in the ac3d hierarchy tool.


  BlauKreuz - Lentolaivue 34      


Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
AC3D ver 5 (021) c file format changed?
« Reply #3 on: June 09, 2005, 03:35:42 AM »
Hi Blauk,

I find more info about AC3D file format from here
http://www.ac3d.org/ac3d/man/ac3dfileformat.html

Check "Data" definition

I need to fix both Data infos to match them to object properties character lenght. The second Data info seems to count in also "loc" as a three character.

I luv this AC3D>OE>TE>Crash Mambo number 5 so much

Offline NHawk

  • Silver Member
  • ****
  • Posts: 1787
AC3D ver 5 (021) c file format changed?
« Reply #4 on: June 09, 2005, 05:56:49 AM »
Quote
Originally posted by Xjazz
...If I modify my ac file with Notepad and add missing “loc 0.000000 0.000000 0.000000” info line, it converts nicely in OE. I Need to say, these new shapes still don’t appear in TE… Oh my....
Actually I'm beginning to wonder if this is a TE problem.

I've got a nice pine tree that just won't show up in the TE no matter what I do. I've tried an individual tree, and a tile with a  forest of them with no luck at all. The object shows as present and is editable in the TE, but if you change pitch or zoom in there's nothing there.

I've even double checked the BMPs used to be sure they are 256 color 8 bit. So, I'm at a loss here myself. But that doesn't say much since this is my first serious venture into AC3D and the OE.
Most of the people you meet in life are like slinkies. Pretty much useless, but still bring a smile to your face when you push them down the stairs.
-------------------------------
Sometimes I think I have alzheimers. But then I forget about it and it's not a problem anymore.

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
AC3D ver 5 (021) c file format changed?
« Reply #5 on: June 09, 2005, 06:42:41 AM »
Hi

I made some tests and this appear in TE:

"AC3Db
MATERIAL "AHM10" rgb 1 1 1  amb 0.87 0.87 0.87  emis 0 0 0  spec 0.75 0.75 0.75  shi 80.08  trans 0
OBJECT world
kids 1
OBJECT group
name "model"
data 12
MaxDist=3659
kids 1
OBJECT group
name "objects"
data 12
MaxDist=3659
kids 1
OBJECT group
name "vod0"
kids 1
OBJECT poly
name "rect"
data 40
MaxDist=3659
PolyID=20009
StencilAlpha=1
texture "FENCE.bmp"
crease 45.000000
numvert 4
0 0 -50
0 0 50
0 50 50
0 50 -50
numsurf 1
SURF 0x20
mat 0
refs 4
3 -0.0144867 1
2 0.988411 1
1 0.988411 0.511719
0 -0.0144867 0.511719
kids 0"

So, is that loc info really needed anyway?

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
AC3D ver 5 (021) c file format changed?
« Reply #6 on: June 12, 2005, 09:00:35 AM »
I would need some help from AC3D license owner.

Below is simple 2D fence object made with AC3D Ver. 5.0.21:

"AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1  amb 0.2 0.2 0.2  emis 0 0 0  spec 0 0 0  shi 10  trans 0
OBJECT world
kids 1
OBJECT poly
name "f3"
data 13
MaxDist=26000
texture "TERR0011.bmp"
crease 45.000000
numvert 4
-330 0 0
330 0 0
330 660 0
-330 660 0
numsurf 1
SURF 0x20
mat 0
refs 4
3 -0.00282898 1.00191
2 0.27604 1.00191
1 0.27604 0.488455
0 -0.00282898 0.488455
kids 0"

Please, could you build a object Property Tree for it and post it here?

TY