chetto1983 / jsc3d

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

unable to get object textures #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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