.obj

Problems Using Wavefront .obj's texture coordinates in Android OpenGL ES

不想你离开。 提交于 2019-12-13 15:55:20
问题 I'm writing an android app using openGL ES. I followed some online tutorials and managed to load up a textured cube using hard-coded vertices/indices/texture coordinates As a next step I wrote a parser for wavefront .obj files. I made a mock file using the vertices etc from the tutorial, which loads fine. However, when I use a file made using a 3d modelling package, all the textures get messed up Below is how I'm currently getting the texture coordinates: First I load all the texture

.obj to .cpp converter?

ぐ巨炮叔叔 提交于 2019-12-13 02:37:29
问题 Is there any .obj to .cpp converter? Is it possible to do it? MICROSOFT VISUAL STUDIO auto-magically deleted my code files when pressed the F5 key. Please help me. I have the .obj files (VS forgot to delete them.ha ha ha). 回答1: Unfortunately it is impossible to decompile an .obj file back to source. More info here. 回答2: shut down your computer, boot from removable media, some sort of the UNIX, and run strings utility on your hard drive. It may be able to recover text off your source code. 回答3

Java - Loading .OBJ files

北慕城南 提交于 2019-12-12 09:42:26
问题 I want to be able to get information (like names of sub-components) from an .obj file. Is there a loader out there somewhere to do this? Java3D has an ObjectFile, but the list of methods I've seen makes me think it is not exactly what I want. Would I be better off just parsing the file myself? Thanks -Will 回答1: I wrote a java obj file format loader a few months ago that should easily do what you need. It's on git hub at; https://github.com/seanrowens/oObjLoader Note that the README says it's

.obj : fatal error LNK1107: invalid or corrupt file: cannot read at 0x6592

╄→гoц情女王★ 提交于 2019-12-12 08:48:35
问题 I am trying to load an .obj model into my c++ opengl 3 code but for some reason it gives me this error : 1>Linking... 1>.\bunny.obj : fatal error LNK1107: invalid or corrupt file: cannot read at 0x6592 I tried to search for similar errors, but there were about .dll's or .lib's. Can you please help me out with this issue. I have also tried with different obj models but it always gives me this error. 回答1: You are trying to load your object model with a C++ linker (probably you have just added

Three.js r71 is showing black screen when trying to load json object

时光总嘲笑我的痴心妄想 提交于 2019-12-12 07:05:15
问题 i will enumerate what i did until now: I have a file "pre.obj" converted to "pre.js" using convert_obj_three.py script "pre.obj" uses "pre.mtl" because it has material of image "specular.jpg" "pre.obj" ,"pre.mtl" and "specular.jpg" can be looked at here respectivily xsportfit.com/threejs/pre.obj xsportfit.com/threejs/pre.mtl xsportfit.com/threejs/specular.jpg I have tried to load "pre.js" file using three.js library of this way: var scene = new THREE.Scene(); var camera = new THREE

.obj-Loader - output not quite right

ε祈祈猫儿з 提交于 2019-12-12 03:59:27
问题 I'm working on a small 3D engine to learn more of OpenGL. I'm using Scala and lwjgl for the task. Loading "hand-made" (all vertices, texture coordinates and indices - arrays specified by hand) models works like a charm, so I wanted to move on to loading .obj files. Turns out, it's not that easy, or, well, I'm somehow misunderstanding something. Let's look into my parsing-method: private def parseObj(path: String): Model = { val objSource: List[String] = Source.fromFile(path).getLines.toList

Missing texture in .OBJ model on min3d framwork android

ⅰ亾dé卋堺 提交于 2019-12-11 17:07:28
问题 I am following this tuttorial: http://www.mat-d.com/site/tutorial-load-a-3d-obj-model-with-min3d-for-android/ this is my mtl file: newmtl Texture0 Ns 20 d 1 illum 2 map_Kd face_eyel_hi.jpg Kd 0.7 0.7 0.7 Ks 0 0 0 Ka 0 0 0 newmtl Texture1 Ns 20 d 1 illum 2 map_Kd face_eyer_hi.jpg Kd 0.7 0.7 0.7 Ks 0 0 0 Ka 0 0 0 newmtl Texture2 Ns 20 d 1 illum 2 map_Kd face_skin_hi.jpg Kd 0.7 0.7 0.7 Ks 0 0 0 Ka 0 0 0 newmtl Texture3 Ns 20 d 1 illum 2 map_Kd face_sock.jpg Kd 0.7 0.7 0.7 Ks 0 0 0 Ka 0 0 0 the

How to export .obj format file with texture in blender?

早过忘川 提交于 2019-12-11 15:27:26
问题 First of all i am new in blender. i have attached texture from tree object. this project exporting (.obj) and (.mtl) files only.but it does not exporting texture images.I need textures image also. please any give the solution. 回答1: about blender obj read this - Blender imports obj files with textures just fine with Blender Internal renderer as the active renderer. But importing obj files with texture while Cycles is the active renderer is currently not supported. With Cycles you have to

Rendering .obj files with OpenGL

扶醉桌前 提交于 2019-12-11 13:33:22
问题 I have been having problems rendering a model in opengl. I have made my own obj parser and a render function using glDrawElements but I can't see the problem. This is my parser function: void load_obj(char *nom) { FILE *file = fopen(nom, "r"); int iv = 0, in = 0, it = 0, ifa = 0; if(file != NULL) { while(1) { char lineHeader[128]; int res = fscanf(file, "%s", lineHeader); if(res == EOF) break; if(strcmp(lineHeader, "v") == 0) { float vertex[3] = {0,0,0}; fscanf(file, "%f %f %f\n", &vertex[0],

Display controlable 3D (obj) models on a website

人走茶凉 提交于 2019-12-11 12:24:16
问题 I am wanting to add a 3D OBJ Model on a website, but I have absolutely no clue how to - google searches gives me options for in-browser games, but not this. I basically just want a model that can be turned around with the mouse. Just like Microsoft's page for Surface. http://www.microsoftstore.com/store/mseea/da_DK/pdp/productID.300225600 回答1: You are looking for WebGL ... there is a lot of websites that offers to view 3D objects directly into browser, such as https://sketchfab.com/ or https: