Jump to content

  • Log In with Google      Sign In   
  • Create Account

Direct3D 11 question about loading .OBJ models


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 jdub   Members   -  Reputation: 420

Like
0Likes
Like

Posted 30 August 2012 - 10:41 PM

I'm trying to load a .obj file and render the model on the screen. I am seeing lines in the .obj that look like this:

f 44557/26434 44561/26438 44559/26436
f 44561/26438 44557/26434 44563/26440
f 44563/26440 44555/26432 44566/26443
f 44573/26451 44570/26447 44571/26448 44572/26450
f 44575/26454 44573/26451 44572/26450 44574/26453
f 44576/26455 44577/26456 44578/26457
f 44579/26458 44576/26455 44580/26459
f 44577/26456 44576/26455 44579/26458
f 44581/26460 44579/26458 44580/26459
f 44570/26447 44581/26460 44571/26448
f 44579/26458 44581/26460 44570/26447


What do the faces with four vertices represent?
J.W.

Sponsor:

#2 Steve_Segreto   Crossbones+   -  Reputation: 1557

Like
0Likes
Like

Posted 30 August 2012 - 11:01 PM

According to this http://en.wikipedia....front_.obj_file they are quadrilaterals instead of triangles.

Edited by Steve_Segreto, 30 August 2012 - 11:02 PM.


#3 Digitalfragment   Members   -  Reputation: 875

Like
2Likes
Like

Posted 30 August 2012 - 11:03 PM

faces are polygons in the obj format, there can be any number of points listed. Standard approach is to split them like a triangle fan when converting to triangles.

#4 GlenDC   Members   -  Reputation: 545

Like
1Likes
Like

Posted 31 August 2012 - 05:28 AM

A few days ago i received a url via the GameDev IRC channel. It's a kind of manual which explains everything you can find in an .obj file.
You can find the manual here.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS