Questions tagged [.obj]

A text-based file format that stores 3d geometry.

The .obj file format was developed originally by Wavefront Technologies for their flagship 3d graphics software The Advanced Visualizer.

It is a text-based format that is human readable and simple to parse. .obj can only store the position, UV coordinates, and normal of a vertex. Mesh hierarchies and animation of any kind are not supported. Free-form geometry like curves and surfaces are defined in the specification, but are not used that often, and as a result, not commonly implemented in parsers.

Links

385 questions
0
votes
1 answer

How to gzip a .OBJ file is it possible in the .htaccess file?

Hi I couldn't find much online on how to gzip a .obj file I did manage to compress it changing the files extension to .gz but this isn't desirable in my case. I want to gzip the .obj file as it's 13mb is this possible to do with the .htaccess file…
ui-unicorn.co.uk
  • 151
  • 1
  • 5
  • 17
0
votes
0 answers

Textures on obj

Im currently trying to put textures on my obj object, but it's not working, Im getting this errormessage: THREE.WebGLRenderer: image is not power of two (284x177). Resized to 256x128 This is the code: var textureLoader = new…
Boby
  • 77
  • 3
  • 10
0
votes
1 answer

Model I/O importing assets

I'm trying to use Model I/O as a quicker way to render imported 3d models for my iOS app. I have written a little bit of code importing and displaying a 3d model I have made with a .obj file format. For some reason, when I run my app only a black…
0
votes
1 answer

OBJ models loading in undesired texture/Color

I have an OBJ model that I downloaded from here Hamburger Google Poly. I am using AR.js and A-Frame for loading the model. Here is my code
Syed Saad
  • 705
  • 5
  • 15
0
votes
1 answer

convert .obj and .mtl file with multiple materials to json

I have a .obj, .mtl files with multiple materials for a specified material, I want to print the vertices and their corresponding uv coords. Is there a way to e.g. parse a .obj, and .mtl file and export them to json? When using…
Avner Moshkovitz
  • 1,138
  • 1
  • 18
  • 35
0
votes
2 answers

Load Big size .obj model in Scenekit. How to Autoresize model in scenekit?

I am loading one .obj model in Scenekit. When I trying to load small model like (Water bottle), it works very well. But when I am trying to load bigger models ( Like Sofa, Table), it loads perfectly, but going out of boundary from scene. Is there…
0
votes
0 answers

Can I convert obj file to h file C++?

I tried to modify an old application. This application was programmed in Borland C++, and the last programmer lost the header files (.h). I can not compile the program with new modifications. The folder of the application project contains the last…
0
votes
0 answers

Raycaster not recognizing objects properly - Three.js

I have a 3D project in the works where users will be able to add models into the scene and move them around using movement indicators that pop up after selecting an object. The issue is that the raycaster is not identifying the object, rather the…
0
votes
0 answers

How to render 3D object by a .obj file or URL in React Native

I am currently developing an iOS app with react native. Users can upload a .obj file to my app. The app will then upload the uploaded .obj file to firebase storage. Therefore, I have 2 ways to reference the file: The uploaded .obj file, and The URL…
ykn121
  • 835
  • 1
  • 9
  • 28
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

Converting .obj file data to NSImage

I'm trying to convert the data from a .obj file to a base64 string, so that I can display a thumbnail preview of the .obj file in an NSImageView. Below is my code for getting the asset from a local url, and converting it to a base64 string. I then…
narner
  • 2,908
  • 3
  • 26
  • 63
0
votes
0 answers

.mtl file not rendering properly

I have .obj file and .mtl file and I'm trying to render those file using THREE.JS But obj was loaded but colors and other textures from .mlt files are not loaded. So does anyone know what I'm doing wrong here? Is there a chance that my material…
user7978796
0
votes
1 answer

unresolved external symbol in class

I have been trying for hours to get rid of my errors but it won't go away, i have looked up other posts but nothing seems to work. I got my .H file with something like this: using namespace std; class common { public: …
Koranen
  • 26
  • 6
0
votes
0 answers

Image on Surface of a .obj File Unity

I'm new to Unity and I want to develop a small racing Game. I started to draw the basic parts of the track in an external 3D tool. I saved my designed parts as an .obj file and imported them into unity. An example looks like this. What the .obj…
Muperman
  • 344
  • 2
  • 14
0
votes
1 answer

Help with UV on my obj loader for android

I'm trying to make my first android game and to do this I made an OBJ loader which takes a resource id and uses the InputStream returned by Context.getResources().openRawResource(). I managed to read vertex information and face info and I can…
AlexRamallo
  • 637
  • 1
  • 5
  • 23