Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get object textures #27

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment
Open

unable to get object textures #27

GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

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

i wanted to load my object file and get it in the canvas with texture. i was 
successful at loading my obj from hard disk but without any textures.
What version of the product are you using? On what operating system?
windows xp with latest version of jsc3d 


Please provide any additional information below.
is there any code to include or with work with textures.

i worked upon this by changing simply color codes but i need textures.is there 
anything like an image file to be inserted to get textures
viewer.setParameter('BackgroundColor1', '#FF8C00');
    viewer.setParameter('BackgroundColor2', '#FFFFFF');
    viewer.setParameter('RenderMode', 'texturesmooth');
    viewer.setParameter('MipMapping', 'on');
plz kindly help me out soon

Original issue reported on code.google.com by dsmrosh...@gmail.com on 3 Jul 2013 at 6:31

@GoogleCodeExporter
Copy link
Author

Does your model contain texture mappings? Please check these:

1. Your obj model file should has an attaching mtl file;

2. At least one material in your mtl defines textures. mtl uses map_Kd command 
to specify texture images, such as 'map_Kd iphone.png';

3. The obj file, mtl files and the image files should be placed in the same 
directory;

4. URLs are case sensitive. So if your texture definition is 'map_Kd 
iphone.png' but the actual image file name is Iphone.png, this won't work 
correctly in network environment.


Original comment by Humu2...@gmail.com on 3 Jul 2013 at 1:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant