#### Archived

This topic is now archived and is closed to further replies.

# .ASC File Format

This topic is 6726 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey, does anyone know the .asc file format for 3d models themselves and/or know a site where I can find out? I''ve been looking around without luck ------------------------------ fclose(fp) ------------------------------

##### Share on other sites
Hi,

What exactly do you need to now about the asc format?

The Rock

##### Share on other sites
Have you tried checking Wotsit''s File Format page? I think the url is http://www.wotsit.org/ but I could be wrong. I haven''t used it in a long time; matter of fact, I haven''t coded in a long time either

dea

##### Share on other sites

btw, the URL is the same without the "www"

##### Share on other sites
Hmm, it''s not on wotsit either, I dont understand why it''s o hard to find.

The only reason I''m looking for it is because I heard that the ASC file format is the simplest 3d file format there is. I started 3d programming about a week ago (literally, I started plotting points last week in 3d space

So I know the time is gonna come when I want to view a real object with what I''ve programmed and not define the vertices myself, so that''s why I want to understand the format.

Is there any easier file format for 3d files than ASC?

All I would really want in a 3d file is vertices and the polygons'' ambient color.
I may be way off though, what are the bare essentials you need in a 3d file?

------------------------------
fclose(fp)
------------------------------

##### Share on other sites
Im in the same situation as you... soo if you wanna go together into the world of 3D programming that''s fine by me

##### Share on other sites
this is the ''file format'' of an asc file as I know them:

  Named Object: model1Tri-mesh, Vertices: 438 Faces: 856Vertex list:Vertex 0: X:-0.577808 Y:-0.678195 Z:11.2768Vertex 1: X:-0.384295 Y:-0.770226 Z:11.3829Vertex 2: X:2.53756 Y:-0.618069 Z:0.51637Vertex 3: X:3.06358 Y:-0.263694 Z:-0.25044Vertex 4: X:2.53756 Y:0.0906813 Z:0.51637Vertex 5: X:1.88957 Y:-0.618069 Z:0.33578...Vertex 435: X:1.6118 Y:-0.263694 Z:0.19926Vertex 436: X:1.88957 Y:0.0906813 Z:0.33578Vertex 437: X:-0.415568 Y:-0.618069 Z:0.63322Face list:Face 0: A:0 B:7 C:114 AB:0 BC:0 CA:0Smoothing: 1Face 1: A:1 B:113 C:109 AB:0 BC:0 CA:0Smoothing: 1Face 2: A:5 B:10 C:118 AB:0 BC:0 CA:0Smoothing: 1...Face 854: A:6 B:117 C:110 AB:0 BC:0 CA:0Smoothing: 1Face 856: A:8 B:14 C:122 AB:0 BC:0 CA:0Smoothing: 1

You should watch out, though.
since I ''ve come across files where there are spaces
between the explanation of the number and the number itself

i.e.

Vertex 5: X: 1.88957 Y: -0.618069 Z: 0.33578
and
Vertex 5: X:1.88957 Y:-0.618069 Z:0.33578

I think that should be enough.
If you need more, be sure to ask.

The Rock

##### Share on other sites
Gladiator: I''d be happy to, couldn''t hurt to have someone going through the same thing as I am to have on my side. I''m sure we could help each other now. How much do you know exactly and when did u start 3d? Up till now, since last week, I got a rotating triangle going with flat-filling, and flat-shading (Lambert) going on it.

The Rock:
What exactly do you do with that face information?
And since the vertices are just lined up likethat, do you assumethey are all triangles and take every 3 and through them into the poly/triangle creator?

------------------------------
fclose(fp)
------------------------------

##### Share on other sites
It''s like this.

You''ve got an array of vertices.
Each veritice has an x, y and z coordinate.
Then you ''ve also got an array of faces.

A face is a triangle.
And has three numbers wich represent vertice 1, 2 and 3
They contain the index of the 3 vertices, the triangle

I hope I explained this well enough,

The Rock

1. 1
2. 2
Rutin
18
3. 3
khawk
15
4. 4
A4L
14
5. 5

• 10
• 13
• 26
• 10
• 11
• ### Forum Statistics

• Total Topics
633745
• Total Posts
3013667
×