wavefront

Do Wavefront .obj files support animation?

How does one export a 3D Studio animated model to OBJ format (if possible)? What will be the resulting file like? How would I read that? ...

Mapping Wavefront .obj's vt to OpenGL texture coordinates

Hi, an artist friend has sent me an .obj file exported by 3DS Max 2009 which contains three texture coordinates as parameters to the vt command. And that's correct according to .obj specification. However, I'm not sure how to map U-V-W coordinates that are provided for a regular 2D .jpg texture. This is relatively important for me, sin...

DirectX 10 Mesh buffer not aligned problem? How to calculate wavefront obj index?

Hi all, I wrote a program to render a wavefront obj model in DirectX 10 I loaded the vertexes data as following desc D3D10_INPUT_ELEMENT_DESC defaultLayout[] = { {"POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0}, {"NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, D3D10_APPEND_ALIGNED...

parsec-3.1.0 with custom token datatype

parsec-3.1.0 ( http://hackage.haskell.org/package/parsec-3.1.0 ) works with any token type. However there are combinators like Text.Parsec.Char.satisfy that are only defined for Char datatype. There doesn't seem to be any more general counterpart available. Should I define my own versions or did I miss something? Perhaps there are dif...

PhysX SDK - error LNK2019: unresolved external symbol when compiling "wavefront.cpp"

Hi all, I'm using the PhysX SDK and I'm trying to load an .obj file with the WavefrontObj object which is defined by the files "wavefront.h/.cpp", localized in the samples directory. When I'm compiling my project, I got this error: 1>Linking... 1>wavefront.obj : error LNK2019: unresolved external symbol "char * __cdecl FindMed...

Are there open source implementations of Wavefront OBJ loaders for the iPhone?

I would like to display 3-D models of building interiors in my iPhone application, but they are in Wavefront OBJ format. Is there an open source implementation of a Wavefront OBJ loader that I could use within my application? ...

WaveFront OBJ converted from LightWave taking forever to render on iPhone

I'm working on a project where I need to render a 3D human body on an iOS device. The 3D object was built in Adobe LightWave and is 7.4MB. I opened it in Blender and exported it as OBJ/MTL pair which are 5.5MB and 4KB, respectively. Using Jeff LaMarche's Wavefront Loader (linked below) as a starting point to figure out OpenGL ES and get ...

Wavefront OBJ: Converting from Objective-C string to C struct apparently incorrect

I'm writing a Wavefront object loader for work because I don't feel comfortable using code I don't understand in professional projects. After the obvious first step, sorting out which parts are which, I'm attempting to load and log vertices. First and foremost, I wrote a C struct to hold the values. struct Vertice { float x; flo...

Storing a struct in an NSArray

Hello! Back with my daily silly question. Today I'm trying to put a struct in an NSArray. Alright, that's easy, wrap it in a NSData. If you know me, you know you're about to see code. In this example, I'm loading a vertex line from a Wavefront OBJ into a struct and sticking it in an array. NSArray *verticeLineParts = [currentLin...