Skip to main content

Questions tagged [obj]

For questions related to processing OBJ mesh file format.

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
34 views

How do I rotate OBJ submeshes relative to themselves (or arbitrary point, as opposed to relative to the whole model)?

I'm creating my own flight simulator game from scratch, using Swift and Metal, for learning purposes, and I'm wondering how I can move certain parts of my aircraft model. My model is a free OBJ file ...
Tino's user avatar
  • 11
1 vote
0 answers
110 views

How is a normal map applied to a triangle mesh?

I'm working on writing my own parser/renderer for the obj file type, and right now I have it working so that I can draw the model correctly and use the ...
Calvin Godfrey's user avatar
1 vote
0 answers
70 views

Finding the Dimension of OBJ objects

I am having a Three OBJ file , Cone , Sphere and Cube. How can i find the dimension of these objects , so that i can use it in ...
scsdcds's user avatar
  • 11
1 vote
1 answer
2k views

Assimp - Error loading .obj files

I'm trying to load .obj files in my little game. I decided to use assimp as tool to import those models. But it seems that assimp does not import them correctly. I looked for a simple cube mesh ...
Rene Lass's user avatar
1 vote
0 answers
54 views

How i can sign and/or group a specific set of vertices in a 3D file container like OBJ ? - in Blender

I would like to export a 3D model with each part having a name or a label if you will. For example i would like to export a model of an human body and name each part in specifics vertex groups like: ...
user827992's user avatar
  • 1,971
1 vote
1 answer
383 views

How do I "voxelize" an OBJ mesh that was created in a voxel editor?

I've been trying to find the right workflow to solve my problem for over a month now. Any tip/insight would be greatly appreciated. Scenario: I create a voxel mesh in MagicaVoxel and then, instead of ...
Justin's user avatar
  • 11
1 vote
1 answer
1k views

How can I reorder the order in which the vertices are in an .obj file?

Blender saves the files with the structure of All the vertices All the normals All the UV The game to which I want to import the model, only accepts the following order in structure 1 vertex 1 ...
Evil prohack3.0's user avatar
1 vote
1 answer
2k views

Modern OpenGL c++ obj loader

So i made a obj loader in c++.I used blender to export my files. I tried to draw 2 squares(one perpendicular to the other) and when im looking at them from above some weird black triangles apear, ...
Robert Puscasu's user avatar
0 votes
1 answer
45 views

How can I convert .obj files into a 2D array of [x,y,z] coordinates and color values?

I have a cool 3D model I want to use, but for this program I'm working with, I need it in array form, with each point's coordinates and color value. I've already voxelized the model using this tool, ...
Dinuka Herath's user avatar
0 votes
1 answer
63 views

ObjFile not properly loading

i am losing my mind. I am trying to create an obj parser has a way to learn opengl but i have ran into a brick wall. with DMGregory help i got the textures to work i think but know the mesh just looks ...
cuttingboard's user avatar
0 votes
0 answers
205 views

How can I move an object on a non flat surface in vulkan?

I am writing a small "game" in vulkan, in which a car can move in an environment that is not flat, like a desert with valleys. I am able to translate my car and follow it with the camera on ...
Luca Venturini's user avatar
0 votes
0 answers
225 views

Obj file vertex coordinates to new coordinate space

I am trying to convert the vertex positions in my obj file to a new coordinate system. I understand I need to multiply each vertex with the transformation matrix, however I am trying to figure out the ...
joethemow's user avatar
  • 101
0 votes
0 answers
127 views

OBJ file loader texture coordinates ‘scrambled’

Edit I've rewritten the loader to duplicate data if only one element (v, vt, vn) is different. I get a much better result, but it is still incorrect. The seams on the mesh match what they should look ...
TheIceCubeDude's user avatar
0 votes
0 answers
85 views

OpenGL obj loader doesn't work

I made my own obj loader,i tried other's obj loader,but nothing works. Here's my obj loader: ...
ombra osura's user avatar
0 votes
0 answers
167 views

Best strategy to track object hierarchy using groups and obj files

I am making a 3D game in OpenGL from scratch. In this game I have a ship with stuff inside it. How can I attach the stuff to the ship in the CAD program and maintain that hierarchy in my own game? ...
Alex's user avatar
  • 155
0 votes
0 answers
229 views

Specify Vertex Quality in OBJ File

I've got a program that prints OBJ files in the format ...
stranger's user avatar
  • 101
0 votes
1 answer
197 views

How can I export a 3D model with keyframes to use in Blender?

I'm currently trying to export some 3D data and load it into Blender, but I've encountered some problems at the time of processing the meshes. They all have keyframes (nothing too complex, just ...
Ricardo's user avatar
  • 153
-2 votes
2 answers
4k views

Indices of a obj file format

If I have the obj file like below, what would be my indices. How do I find the indices? What would be the order of the indices also.(the triangles) ...
Terry's user avatar
  • 21