Jump to content
  • Advertisement

Archived

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

ByteMe95

.ASC File Format

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
Hi,

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

The Rock

-BAD software-
http://members.spree.com/entertainment/bad_software/

Share this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


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


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

-BAD software-
http://members.spree.com/entertainment/bad_software

Share this post


Link to post
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 this post


Link to post
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
is made of.


I hope I explained this well enough,
If you still don''t understand, please ask

The Rock

-BAD software-
http://members.spree.com/entertainment/bad_software/

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!