Questions tagged [obj]
For questions related to processing OBJ mesh file format.
71 questions
0
votes
0
answers
36
views
Help utilising obj indices [duplicate]
I'm working on an obj parser its mostly complete but ive run into a problem.
I can access all the indices that are in the file but i cant figure out how to use all of them.
i can use the vertex ...
0
votes
2
answers
118
views
How determine whether a quad of a grid mesh is too steep to move onto, without using a NavMesh?
Godot 4.1
Assume we've got a simple, 100x100 cells grid-based generated mesh that will serve as the game's level:
This mesh is exported as either .obj or .glb and imported in Godot.
The player (...
0
votes
1
answer
73
views
Load vertexes from an obj file
I do have a problem with loading my vertexes.
When I debug my code. I find out the vertexes are loaded. But when i use render doc, I found out the vertexes are not loaded. Only the first line of my ...
0
votes
1
answer
103
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, ...
0
votes
1
answer
421
views
Convert Wavefront (OBJ) faces into triangles for drawing with OpenGLES
I wrote a simple Wavefront parser in C++ that loads v, vn, vt and ...
0
votes
1
answer
154
views
GameObjects loaded from OBJ files have inherent position offsets; any way to measure these in worldspace?
I have OBJ files that I'm loading into my scene at runtime. They all have positions offset from zero.
These positions appear to be inherent to the .obj file as they were set in the 3D modelling ...
1
vote
0
answers
54
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 ...
0
votes
1
answer
88
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 ...
0
votes
1
answer
336
views
Model is oriented correctly in the Unity asset browser but flips 180 degrees when added to the scene?
I have modeled two pinball flippers in Houdini. I exported them as OBJ files and imported them into Unity 2021.3. They look correct in the asset view:
They also look correct when I open them with the ...
0
votes
0
answers
284
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 ...
0
votes
1
answer
187
views
Converting mesh vertices to world coordinates for raycasting
My goal is to figure out if a point exists within a 3D polygon. To do this here is what I am doing:
Load obj mesh
...
0
votes
1
answer
126
views
Wrong uv parsed from obj
I have written an obj parsing function and the result of his parsing can be drawn correctly. But if the uv is not generated by default by the modelling software, he will have problems with the uv. I ...
1
vote
1
answer
497
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 ...
0
votes
0
answers
308
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 ...
0
votes
0
answers
145
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 ...