16 reputation
5
bio website
location
age
visits member for 1 year, 11 months
seen Aug 8 at 22:09

Feb
23
awarded  Popular Question
Jan
3
awarded  Scholar
Jan
3
awarded  Supporter
Jan
3
accepted DirectX 9 - model rendering from .obj files issues
Jan
3
comment DirectX 9 - model rendering from .obj files issues
I don't think that's completely portable? I'd like it so I can have other computers use this. Worst case I can make separate downloads, but I'd rather not have to. Thank's for the suggestion I'll look more into it.
Jan
3
revised DirectX 9 - model rendering from .obj files issues
added 10 characters in body
Jan
2
revised DirectX 9 - model rendering from .obj files issues
deleted 191 characters in body
Jan
2
answered DirectX 9 - model rendering from .obj files issues
Jan
1
revised DirectX 9 - model rendering from .obj files issues
added 226 characters in body
Jan
1
comment DirectX 9 - model rendering from .obj files issues
Well the sphere has no "vt"'s. Only "v" and "f". I'll edit the main post at the very bottom with all the files associated with this. One moment.
Jan
1
comment DirectX 9 - model rendering from .obj files issues
I think this has something to do with how I stored the vertex and indices, because I just tried a really simple sphere and it's showing a few extra triangles outside the sphere's shape. Which would mean it's using data that I didn't tell it to. So it must be that I'm not rendering it properly. I'll try to find some tutorials for rendering spheres and see if I can merge my data into that and find a possible reason. I'm pretty sure I stored everything correctly though, but that's the only other thing I could think of.Since it seems like it's rendering extra stuff.PIC: i49.tinypic.com/2qbayj8.jpg
Jan
1
comment DirectX 9 - model rendering from .obj files issues
Hmm, It seems valid I had it print out everything and front what I was willing to compare it looked okay. There's a few extra thing I noticed. At the very bottom of the .obj is the following which I ignored. f 5570 10142 I'm not sure what the 5570 means, but 10142 is the total vertexs. Then there's a few other things. usemtl BlackCloth -> So that must be the texture. Then right before the faces are read in this is there. usemtl man and s 1
Dec
31
revised DirectX 9 - model rendering from .obj files issues
added 969 characters in body
Dec
31
comment DirectX 9 - model rendering from .obj files issues
I'm thinking that stuff is working correctly, but it must be something else that I'm just not seeing. I'm a bit new to models in 3D, but when I tried rendering small objects they didn't seem to have any problems. I noticed I only got these issues when the "f" values had more than 1 type. E.g. if it was only "f 1 2 3 4" that works fine, but when it's "f 1/10 2/11 3/12 4/12" I'm parsing it correctly since I've tested it, but I haven't done anything with the texture or normals yet. I'm wondering if that's the cause? I also provided the first quads information at the end of the original post.
Dec
31
revised DirectX 9 - model rendering from .obj files issues
added 306 characters in body
Dec
31
awarded  Editor
Dec
31
revised DirectX 9 - model rendering from .obj files issues
added 24 characters in body
Dec
31
comment DirectX 9 - model rendering from .obj files issues
Actually I was editing the way I loaded them and forgot to add the -1 part again, but it still does the same thing as in the picture those were taken prior the the modifications. I've been trying different values for the 0,1,2,1,3,2, but it doesn't seem to get rid of those extra chunks. Thanks for the comment though. I'm wondering if it's just the way I'm rendering them through DirectX because it seems like it's pretty much loaded just fine, but there's like an extra bulk of triangles around it.
Dec
31
awarded  Student
Dec
31
asked DirectX 9 - model rendering from .obj files issues