divemasterbill / saitoobjloader Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/saitoobjloader
Automatically exported from code.google.com/p/saitoobjloader
What steps will reproduce the problem?
1. run the file atach
2. drag with the mouse (only turn right)
3.
What is the expected output? What do you see instead?
the object. obj has glass as art, the image "input.jpg" through the object, but
passing by, the picture is not visible. The purpose if it is transparent to
itself.
What version of the product are you using? On what operating system?
processing: 1.5.1
OS: linux ubuntu 11.01
java: OpenJDK 1.6.0_24
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 Aug 2012 at 12:30
Attachments:
What steps will reproduce the problem?
1. Load the sketch attached
What is the expected output? What do you see instead?
A 3D model without textures other than a triangle on the back of the head.
What version of the product are you using? On what operating system?
Processing 1.5.1 (used this version of because of compatibility with the
Nyartoolkit library)
OBJ loader library 023
MAC OS X
Please provide any additional information below.
Only one texture file is used, so it omits the possibility of errors caused by
multiple.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2013 at 5:06
I like to publish my code under the BSD/MIT, and I really want to experiment
with your loader. Would you guys mind relicensing it or dual licensing? I
understand if not.
Sorry for posting this to your issues tracker.
Thanks!
Original issue reported on code.google.com by [email protected]
on 23 Jun 2011 at 9:48
What steps will reproduce the problem?
1. Create an applet that loads a model with texture;
2. The model and texture files should be inside a directory inside data folder
3. Run the applet via browser
What is the expected output? What do you see instead?
Although running the applet on eclipse works fine, when exporting an applet to
run via browser, only the model is loaded, not the textures.
What version of the product are you using? On what operating system?
OBJLoader 0.21; Processing 1.2.1 on Linux;
Please provide any additional information below.
I get the following error:
Loading this = resources/models/esq/mao_2.obj
Loading this = ./resources/models/esq/mao_2.mtl
./resources/models/esq/mao_2.mtl does not exist or could not be read
Could not find this file ./resources/models/esq/mao_2.mtl
java.lang.NullPointerException
at saito.objloader.OBJModel.parseMTL(OBJModel.java:973)
at saito.objloader.OBJModel.parseOBJ(OBJModel.java:813)
at saito.objloader.OBJModel.load(OBJModel.java:577)
at saito.objloader.OBJModel.<init>(OBJModel.java:109)
at br.usp.libras.graph.AnimObj.<init>(AnimObj.java:52)
As you can see, the path used for loading the .obj is DIFFERENT from the used
to load the .mtl. The second one has a "./" in the beginning, which can be the
cause of the error.
These resources are inside the data folder. .obj loads perfectly, but .mtl not.
Original issue reported on code.google.com by mlikoga
on 27 Nov 2010 at 6:52
Attachments:
If you want to reference .mtl files relative to .obj files this seems to be
impossible making it really hard to manage the complexity of multiple objects.
Initially I have these in the Processing data directory. They reference each
other by name and will load correctly...
confused.obj
confused.mtl
confused_texture1.png
confused_texture2.png
However, if I try to separate out the Obj files into subdirectories (e.g. one
collection of .obj, .mtl and any .png textures for that object), then ObjModel
refuses to load the .mtl or .png files which are alongside the .obj file. That
is to say the paths are not interpreted relatively and I can't work out how to
force this.
The new filesystem looks as follows, and loading the .obj containing either the
reference 'confused.mtl' or './confused.mtl' means ObjModel can't load the
materials.
confused/confused.obj
confused/confused.mtl
confused/confused_texture1.png
confused/confused_texture2.png
Any workaround would be welcome as I think I'm going to get a load of obj files
with madly named textures and materials which will be impossible to manage
without giving them a directory each.
Original issue reported on code.google.com by [email protected]
on 5 Feb 2012 at 8:41
What steps will reproduce the problem?
1. create a blender model
2. UV assign some texture file
3. export it as .obj file and load it in processing
What is the expected output? What do you see instead?
It doesnot load the model itself
What version of the product are you using? On what operating system?
in is on windows version 23
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Feb 2013 at 11:26
What steps will reproduce the problem?
1. Load an obj file with texture coordinates
What is the expected output? What do you see instead?
Texture coordinates are equal to the vertex coordinates.
What version of the product are you using? On what operating system?
020
Please provide any additional information below.
Please replace the following 3 lines in OBJModel.java in line 177
PVector[] vs = vertices.toArray(new PVector[vertices.size()]);
PVector[] tVs = vertices.toArray(new PVector[textureVertices.size()]);
PVector[] nVs = vertices.toArray(new PVector[normalVertices.size()]);
with the lines
PVector[] vs = vertices.toArray(new PVector[vertices.size()]);
PVector[] tVs = textureVertices.toArray(new PVector[textureVertices.size()]);
PVector[] nVs = normalVertices.toArray(new PVector[normalVertices.size()]);
to fix the bug. Thanks for your work.
Original issue reported on code.google.com by [email protected]
on 17 Aug 2010 at 5:04
Hi first congrats for your work
What steps will reproduce the problem?
Export obj with blender put difusse color in Kd tag like it is spected, but
you use Ka for fill color when it is abient color
What is the expected output? What do you see instead?
use Kd information for fill color
What version of the product are you using? On what operating system?
svn last version
Please provide any additional information below.
ty a lot
Original issue reported on code.google.com by [email protected]
on 15 Dec 2008 at 3:56
What steps will reproduce the problem?
1. Produce a object with a png texture
2. Load up in processing
3. Watch as your model has random inverted normals
What is the expected output? What do you see instead?
I expect to see a nice model, but with a PNG texture, the model instead
produces artifacts, mostly which appear to be flipped normals.
What version of the product are you using? On what operating system?
OBJLoader 23b, Blender 2.61 (custom build, r43252) is the exporter, Windows 7
Please provide any additional information below.
If you use a JPG, it turns out alright. Could fix the bug or either post
something in the documents about the problem with using PNG's
Original issue reported on code.google.com by [email protected]
on 23 Jan 2012 at 9:35
What steps will reproduce the problem?
1. unzip objeto_textura.zip
2. run objeto_textura.pde
What is the expected output? What do you see instead?
* cilinder with no image (from directory BatataLata)
* cilinder with image (from directory BatataLata)
What version of the product are you using? On what operating system?
* 2.1
* linux mint 15
Please provide any additional information below.
Smooth level 2 is not available. Using 1 instead
draw mode:
Loading this = BatataLata.obj
Loading this = BatataLata.mtl
material: 'Color_A02'
material: 'Pringles'
texture diffuse 'BatataLata/Pringles.jpg'
material: 'Color_003'
found group
group 'Mesh1'
group 'Group2'
group 'Group1'
group 'Model'
found group
group 'Mesh2'
Obj Name: default
V Size: 1025
Vt Size: 3139
Vn Size: 581
G Size: 6
S Size: 37
thanks!!
Original issue reported on code.google.com by [email protected]
on 22 Jan 2014 at 12:56
Attachments:
What steps will reproduce the problem?
1. Run the sketch, and look at the 3 rectangles that are supposed to be all 3
red.
What is the expected output? What do you see instead?
fill is white for everything that i draw after the drawing the model.
Stroke still works.
What version of the product are you using? On what operating system?
processing 1.5.1 on windows and mac.
Please provide any additional information below.
Model is exported from softimage 2013.
If you disable Ks 1.000000 1.000000 1.000000 in the material file then the
problem is gone.
You can comment m_sea.draw(); to see that the problem is really related to
objloader.
Original issue reported on code.google.com by [email protected]
on 29 Oct 2012 at 10:57
Attachments:
What steps will reproduce the problem?
1. Load an OBJ which has faces with only two vertex indexes (loose edges
without faces).
2. Objloader will crash due to index out of bounds - see line 864 of
OBJModel.java
What is the expected output? What do you see instead?
Expected output: Most likely just ignore any 2-vertex faces. What we see: It
crashes.
What version of the product are you using? On what operating system?
Latest version, 023b, will happen on all OSes.
Please provide any additional information below.
The OBJ spec requires faces to have a minimum of 3 vertex indexes. However,
many programs will write OBJs with loose edges specifying only 2 vertex indexes
per face. Though it's not supported by the spec, it is somewhat common (and
arguably useful). Objloader doesn't necessarily need to load or display loose
edges but should at least handle these files without a crash. Line 855 is a
check to see if at least 3 verts have been specified, but for some reason this
code is commented out so the error is unhandled. Reinstating this commented
code should solve the issue.
Original issue reported on code.google.com by [email protected]
on 14 Jun 2013 at 5:14
Hi,
I'm testing your tool with facegen generated models. Unfortunately facegen
doesn't export normals in OBJ files.
Would it be possible to compute them by hand when loading the OBJ into P5?
Many thanks!
Josep M
Original issue reported on code.google.com by [email protected]
on 2 Aug 2009 at 8:12
see attached file...
the solution is inside the Face-Object:
the following methods need to be corrected:
public int[] getNormalIndices()
public int[] getTextureIndices()
into this (suggestion)
public int[] getNormalIndices() {
int[] v = new int[getNormalIndexCount()];
for (int i = 0; i < v.length; i++)
v[i] = getNormalIndex(i);
return v;
}
public int[] getTextureIndices() {
int[] v = new int[getTextureIndexCount()];
for (int i = 0; i < v.length; i++)
v[i] = getTextureIndex(i);
return v;
}
plus the following methods need to be added:
public int getTextureIndexCount() {
return uvIndices.size();
}
public int getNormalIndexCount() {
return normalIndices.size();
}
cheers
martin
Original issue reported on code.google.com by [email protected]
on 7 Feb 2010 at 10:20
Attachments:
What steps will reproduce the problem?
1. call model.load() within an object class
2. call model.draw()
What is the expected output? What do you see instead?
I expect that the object(s) would be displayed without materials and triggering zero erros. The console triggers a null pointer error on the material file, in spite of the initial materials on the model being disabled. After running for about a minute, noticeable lag occurs in the model navigation.
What version of the product are you using? On what operating system?
saitoobjloader revision 18 on mac OS 10.6.
Please provide any additional information below.
The attached document uses the peasycam library, which is not included but
easily removed/replaced.
The first line from the error below, copied from the console, is in white
(triggered by saitoobjloader) and the remainder are red (processing-triggered):
Could not find this file (null).mtl
java.lang.NullPointerException
at saito.objloader.OBJModel.parseMTL(OBJModel.java:978)
at saito.objloader.OBJModel.parseOBJ(OBJModel.java:801)
at saito.objloader.OBJModel.load(OBJModel.java:686)
at classWithOBJimport$IndexedObject.renderObj(classWithOBJimport.java:93)
at classWithOBJimport.draw(classWithOBJimport.java:47)
at processing.core.PApplet.handleDraw(PApplet.java:1426)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:637)
(null).mtl does not exist or could not be read
Original issue reported on code.google.com by [email protected]
on 7 Jul 2010 at 9:06
Attachments:
What steps will reproduce the problem?
1. Included the libraries ObjLoader and Artoolkit for Processing, which allows
3D model to pop out via webcam
2. Runs
3. Show the hiro picture to the webcam and texture-less model comes out
What is the expected output? What do you see instead?
When you show the hiro picture
(http://www.neo-tech-lab.co.uk/arsensor/Article.files/HiroPattern.png) to the
webcam, I expected the 3D model to be textured. Everything works fine except it
has no texture on it. The model is entirely white.
What version of the product are you using? On what operating system?
Processing 2.2.1
NyAR4psg/2.0.0;NyARToolkit/4.1.1
Win 8.1
Please provide any additional information below.
Error:
...
texture diffuse
'C:Users/homar_000/Documents/Processing/sketch_3D_model_via_camera/data/BL_WHA
LEtexture.jpg'
The file
"C:Users/homar_000/Documents/Processing/sketch_3D_model_via_camera/data/BL_WHALE
texture.jpg" is missing or inaccessible, make sure the URL is valid or that the
file has been added to your sketch and is readable.
I have attached the rar folder here.
Original issue reported on code.google.com by [email protected]
on 18 Jan 2015 at 8:42
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.