Questions tagged [wavefront]

OBJ (or .OBJ) is a geometry definition file format first developed by Wavefront Technologies for its Advanced Visualizer animation package.

334 questions
5
votes
2 answers

Plotly Mesh3d plot from a Wavefront OBJ file

I am trying to plot a 3D scan of a leg using Plotly's Mesh3D. I have used scatter_3d with the XYZ points to show this concept using: fig = px.scatter_3d(df, x='x', y='y', z='z', opacity = 0.8) However, it does not look like a surface. Therefore, I…
BeardedDork
  • 162
  • 2
  • 13
5
votes
2 answers

How do I sort the texture positions based on the texture indices given in a Wavefront (.obj) file?

I'm currently trying to make a Wavefront (.obj) file loader for an OpenGL project. The method I'm currently using goes line-by-line and separates the vertex positions, texture positions and normal positions in vectors (std::vectors) and I'm storing…
user9114500
5
votes
1 answer

glDrawElements not rendering input from obj file

I'm writing an object loader in lisp using cl-opengl, and when trying to render the loaded vertices/elements using glDrawElements, I'm left with a blank screen. (require :cl-opengl) (require :sdl2) (defvar *vertices* nil) (defvar *elements*…
PavelF
  • 321
  • 1
  • 2
  • 11
5
votes
1 answer

Storing a struct in an NSArray

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…
wjl
  • 7,143
  • 1
  • 30
  • 49
5
votes
1 answer

Create Wavefront .obj files in C++ (mesh 3D)

I have a vector>, which contains my map (2D array created with my random generator): (source: cjoint.com) I want to display this map in 3D (with Irrlicht graphic 3D library). The big problem: my map is too big (1920x1080), so i can't…
usernameHed
  • 51
  • 1
  • 2
5
votes
1 answer

How do you convert Wavefront OBJ file to an SCNNode with Model I/O

I've imported a Wavefront OBJ file from a URL and now I'd like to insert it into my scene (SceneKit) on my iOS 9 app (in Swift). What I've done so far is: let asset = MDLAsset(URL: localFileUrl) print("count = \(asset.count)") // 1 Any help…
Jason Leach
  • 3,889
  • 7
  • 37
  • 54
5
votes
1 answer

Mapping Wavefront .obj texture vertex on OpenGL

An artist gave me all 3D models for me exporting to .obj and .mtl in order that I can render it using OpenGL. But I can't figure out why the texture vertex are greater than 1 and sometimes negative. Take a look at this example: (...) vn -0.000717425…
rodrigogq
  • 1,943
  • 1
  • 16
  • 25
5
votes
1 answer

parsing into several vector members

I want to recursively parse a string and store the results in one struct. I've written a parser that can handle one iteration. The input is formatted as follows: v 1.5 2.0 2.5 v 3.0 3.5 4.0 f 1 2 3 f 4 5 6 v 4.5 5.0 5.5 v 6.0 6.5 7.0 f 7 8 9 f…
Krienie
  • 611
  • 1
  • 6
  • 14
5
votes
2 answers

Understanding normals indices with Wavefront Obj

I've written a C++ Obj file loader that I can't get to work correctly. The problem is that while parsing a simple obj file like the following: # Blender v2.62 (sub 0) OBJ File: '' # www.blender.org mtllib cube.mtl o Cube v 1.000000 -1.000000…
linello
  • 8,451
  • 18
  • 63
  • 109
4
votes
2 answers

Mapping Wavefront .obj's vt to OpenGL texture coordinates

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…
Ivan Vučica
  • 9,529
  • 9
  • 60
  • 111
4
votes
2 answers

Loading 'indices' from Wavefront OBJ format

I'm developing an Android application with OpenGL ES 2.0. I want to load an export made with Blender 2.49b in Wavefront OBJ format. I have identified verxtex position, normal and texture. I want to use glDrawElements(GLenum mode, GLsizei count,…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
4
votes
3 answers

Convert Wavefront .obj to .off

How can I convert a Wavefront's .obj file to a .off file ?
Gabriel Devillers
  • 3,155
  • 2
  • 30
  • 53
4
votes
1 answer

Creating .obj files in Java

is there a Java library in existence for creating .obj files. There are many for loading .obj files for use with APIs like JOGL but I can't find anything to do with creating an .obj file.
Affian
  • 3,380
  • 5
  • 22
  • 26
4
votes
0 answers

OBJ loader loading files C++

i have been creating a OpenGL program, which will load in a OBJ file and sort them into there groups and then i can send them to the buffers, but i am having a problem with the loading. I have been debugging and it's going around in a loop. Why is…
thomas
  • 67
  • 5
4
votes
0 answers

Opengl - indexList for OBJ-file with textures for VBO (glDrawElements)

i've made an obj-loader for opengl. Therefore i read all faces (one by one) and write the ordered vertices, normals and uv-coords in (openGL-)buffers (GL_ARRAY_BUFFER). That means i dulicate all necessary vertices, normals and uv-coords depending on…
user2602528
  • 243
  • 1
  • 3
  • 8
1
2
3
22 23