amitdash / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

How to know an obj file is supporting textures? #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. We loaded the attached obj file
2. We tried to set texture in selected meshes, but failed
3. But can set texture in other obj files

What is the expected output? What do you see instead?

 - We are need to set texture in selected mesh in all obj files.

What version of the product are you using? On what operating system?

 - We are using the latest version and OS is Windows/Linux

Please provide any additional information below.

 - Is there any way to check if the obj file / mesh supports texture?
 - If one obj file / mesh not support texture, how can we converted it to texture supporting one?

Please help us to resolve this problem

Original issue reported on code.google.com by jayaku...@gamillc.com on 21 Jun 2013 at 7:20

Attachments:

GoogleCodeExporter commented 9 years ago
Version - jsc3d-full-0.9.8

Original comment by jayaku...@gamillc.com on 21 Jun 2013 at 7:58

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. 

I examined the obj and mtl files from the attachment and it seems that your 
models do not contain textures. I guess what you mean is the object's 
material/color. 

This issue is relevant to a defect of jsc3d's obj loader when parsing some 
ugly-formed obj/mtl files. It has already been fixed in the latest edition in 
the svn repository but not yet made a new release. You can get it directly from 
the repository:

the source file: http://jsc3d.googlecode.com/svn/trunk/jsc3d/jsc3d.js or
the compreesed one: http://jsc3d.googlecode.com/svn/trunk/jsc3d/bin/jsc3d.min.js

Both render correct result.

Original comment by Humu2...@gmail.com on 3 Jul 2013 at 11:01

Attachments: