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
0
votes
0 answers

objloader so slow with huge animation how can i accelerate it

My steps are: I am making a model its rig animated 1000-1200 frame in blender and I will export these .obj files, therefore, I have to load 1000-1200 .obj files. I am using objloader in c++ and I am sending gpu with opengl VBO way I didn't use…
Emre Kaya
  • 131
  • 5
0
votes
0 answers

SceneKit: imported OBJ model missing polygons

This OBJ model does not import successfully into SceneKit. (Model can be downloaded from the link.) As you can see from the screenshot, there are a few polygons missing from the backpack (on the right hand side) when viewed from Xcode. However, the…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
0
votes
1 answer

Convert blend or obj file in float array for drawing in OpenGL

Is it possible to convert .blend or .obj file to a float array for later use for rendering in the OpenGL? For example, Vertices: float[] vertices = { -1, -1, 0, // some vertices }; Texture coordinates: float[] texCoords = { 0, 0, //…
congard
  • 945
  • 2
  • 10
  • 28
0
votes
1 answer

How to change wavefront(.obj) file based on changes made by OpenGL's camera view?

I use OpenGL's mouse display to rotate the 3D model, after that I want to make the updates to my wavefront(.obj) file so that the next time it will directly show the view that I want. Is there any idea about how to update the .obj file?
shanegu
  • 3
  • 5
0
votes
0 answers

Three.Js object file is loadded but material files are not loading

I created 1 small object file in the blender tool and then exported it to wavefront (.obj) format. My code: var mtlLoader = new THREE.MTLLoader(); mtlLoader.setPath( 'objs/' ); mtlLoader.load( 'final_blue_cup.mtl', function( materials ) { …
Darshit Hedpara
  • 660
  • 6
  • 17
0
votes
1 answer

Understanding OBJ loading via ASSIMP

I am using ASSIMP 4.0.1 by compiling my own binaries. I keep getting the normals loaded incorrectly. I have reduced my cube.obj down to just a single triangle ... and I would like to confirm that it is doing it wrong and that I'm not insane. Finally…
ChaoSXDemon
  • 860
  • 10
  • 29
0
votes
1 answer

How to convert osgjs format to obj or similar formats?

This question deals with how to convert .osg to .obj but I am using the WebGL version. The osgconv cant handle the .osgjs extention. I cannot find any tools with regular search. Typing osgconv model.osgjs model.obj doesnt work.
Souradeep Nanda
  • 3,116
  • 2
  • 30
  • 44
0
votes
1 answer

Drawing VBOs in OpenGL not working

I'm writing a simple class that parses an OBJ and renders the obj after that. I've already written a method for drawing vertex arrays from RAM and I wanted to optimize it a bit (I read that using VBOs gets you x4 times the framerate!). Sadly I'm…
BrunoSG
  • 21
  • 1
  • 7
0
votes
1 answer

Parse OBJ file to get vertex normals?

I want to be able to load OBJ files, including the vertex normal. But I quickly encountered a problem where Blender gives me 1 normal per face, and I don't understand how I can link that to my vertices. Here's the obj file: # Blender v2.78 (sub 0)…
florent teppe
  • 529
  • 5
  • 13
0
votes
1 answer

Importing/Adding/Combine to a .blend file from a .blend file

I have 2 .blend files. I want to combine the information of both files. Is there a way to import .blend files. Into another .blend file. Why would I do that? I am having trouble if I import the model to another type of file. When I did it in fbx the…
blenderdunce
  • 1
  • 1
  • 2
0
votes
0 answers

Convert wavefront obj mesh to custom mesh representation

Code that I'm trying to understand represents meshes using this structure: struct vertex { float v[3]; // vertex coords float t[3]; // texture coords float n[3]; // normals }; typedef unsigned face[3]; struct mesh { vector
Pavel P
  • 15,789
  • 11
  • 79
  • 128
0
votes
1 answer

How to create .obj and .mtl exporter in maya

I have a task in school to create an custom .obj and .mtl exporter in maya but the documentation is really hard to understand and use. Found a blogpost that looked about like this, the code works but i would like to know more about what it actually…
Hamaro
  • 49
  • 9
0
votes
1 answer

How to correctly format NURBS curves for wavefront .OBJ file format?

I am trying to write a wavefront .OBJ file that contains 3D NURBS curves (not surfaces). I found the following link that describes how to correctly format curves and surfaces within .OBJ files: http://www.martinreddy.net/gfx/3d/OBJ.spec There is no…
chloelle
  • 332
  • 3
  • 12
0
votes
1 answer

tu tv texture coordinates larger than 1.0 ? __ (OBJ format)

I want to understand how OBJ format dealing with texture coordinates. example: vt 1.000000 1.005200 vt 0.467300 1.709900 vt 0.923800 1.994400 vt 0.500000 1.002600 vt 0.371400 1.000000 vt 0.438100 2.000000 vt 0.000000 1.000000 vt 0.467300 1.709900 vt…
Mr Mark
  • 43
  • 7
0
votes
1 answer

How to set camera coordinates to object in three.js? Using example "webgl obj + mtl loader"

I have a 3D model in .obj format. However the coordinates for this 3D model are not (0,0,0). This a 3D render of drone imagery so the coordinates are actual georeferenced coordinates. I'm following the example in Three.js on how to load an obj with…