Page 1 of 1

When I import an .obj file that has a texture, it appears white.  [Solved]

Posted: 30 Dec 2017, 19:04
by DUELS133
Hello B) , my problem is this:
When I import an .obj file that has a texture, it appears white. Before doing this topic I searched Google and the Cubik Studio forum and saw Sphax saying to check the .obj and .mtl files and according to his instructions, on other people's topics, my files are correct.
I do not know if it is necessary, but the operating system I use is OS X The Captain.

Re: When I import an .obj file that has a texture, it appears white.

Posted: 31 Dec 2017, 11:51
by CaptainGalax
DUELS133 wrote: 30 Dec 2017, 19:04 Hello B), my problem is this:
When I import a .obj file that has a texture, it appears white. Before doing this topic I searched Google and the Cubik Studio forum and saw Sphax saying to check the .obj and .mtl files and according to his instructions, on other people's topics, my files are correct.
I do not know if it is necessary, but the operating system I use is OS X The Captain.
Could you send your OBJ + MTL file? Maybe there's an error, the path could be wrong, or the OBJ isn't loading the mtl.

Re: When I import an .obj file that has a texture, it appears white.

Posted: 01 Jan 2018, 19:29
by DUELS133
CaptainGalax wrote: 31 Dec 2017, 11:51
DUELS133 wrote: 30 Dec 2017, 19:04 Hello B), my problem is this:
When I import a .obj file that has a texture, it appears white. Before doing this topic I searched Google and the Cubik Studio forum and saw Sphax saying to check the .obj and .mtl files and according to his instructions, on other people's topics, my files are correct.
I do not know if it is necessary, but the operating system I use is OS X The Captain.
Could you send your OBJ + MTL file? Maybe there's an error, the path could be wrong, or the OBJ isn't loading the mtl.
http://www.mediafire.com/file/q95j9toi1p34bpf/Earth.zip

Re: When I import an .obj file that has a texture, it appears white.

Posted: 05 Jan 2018, 13:23
by CaptainGalax
DUELS133 wrote: 01 Jan 2018, 19:29
CaptainGalax wrote: 31 Dec 2017, 11:51
DUELS133 wrote: 30 Dec 2017, 19:04 Hello B), my problem is this:
When I import a .obj file that has a texture, it appears white. Before doing this topic I searched Google and the Cubik Studio forum and saw Sphax saying to check the .obj and .mtl files and according to his instructions, on other people's topics, my files are correct.
I do not know if it is necessary, but the operating system I use is OS X The Captain.
Could you send your OBJ + MTL file? Maybe there's an error, the path could be wrong, or the OBJ isn't loading the mtl.
http://www.mediafire.com/file/q95j9toi1p34bpf/Earth.zip
Found it!

Code: Select all

	map_Ka C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_earth.jpg <--- (Wrong Path, Earth is also missspelled)
	map_Kd C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_earth.jpg <--- (Wrong Path, Earth is also missspelled)
	map_Ke C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_night_lights.jpg <--- (Wrong Path, Earth is also missspelled)
	map_bump C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_bump.jpg <--- (Wrong Path, Earth is also missspelled)
	bump C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_bump.jpg <--- (Wrong Path, Earth is also missspelled)

newmtl 02___Default
	Ns 10.0000
	Ni 1.5000
	d 1.0000
	Tr 0.0000
	Tf 1.0000 1.0000 1.0000 
	illum 2
	Ka 0.5882 0.5882 0.5882
	Kd 0.5882 0.5882 0.5882
	Ks 0.0000 0.0000 0.0000
	Ke 0.0000 0.0000 0.0000
	map_Ka C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_clouds.jpg <--- (Wrong Path, Earth is also missspelled)
	map_Kd C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_clouds.jpg <--- (Wrong Path, Earth is also missspelled) 
	map_d C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_clouds.jpg <--- (Wrong Path, Earth is also missspelled)

Re: When I import an .obj file that has a texture, it appears white.

Posted: 19 Jan 2018, 10:10
by Sphax
prefer editing MTL file with relative paths instead of absolute paths. So that will work better for anyone.
A lot of software do not export paths in MTL files correctly...

Re: When I import an .obj file that has a texture, it appears white.

Posted: 19 Jan 2018, 19:57
by DUELS133
CaptainGalax wrote: 05 Jan 2018, 13:23
DUELS133 wrote: 01 Jan 2018, 19:29
CaptainGalax wrote: 31 Dec 2017, 11:51

Could you send your OBJ + MTL file? Maybe there's an error, the path could be wrong, or the OBJ isn't loading the mtl.
http://www.mediafire.com/file/q95j9toi1p34bpf/Earth.zip
Found it!

Code: Select all

	map_Ka C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_earth.jpg <--- (Wrong Path, Earth is also missspelled)
	map_Kd C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_earth.jpg <--- (Wrong Path, Earth is also missspelled)
	map_Ke C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_night_lights.jpg <--- (Wrong Path, Earth is also missspelled)
	map_bump C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_bump.jpg <--- (Wrong Path, Earth is also missspelled)
	bump C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_bump.jpg <--- (Wrong Path, Earth is also missspelled)

newmtl 02___Default
	Ns 10.0000
	Ni 1.5000
	d 1.0000
	Tr 0.0000
	Tf 1.0000 1.0000 1.0000 
	illum 2
	Ka 0.5882 0.5882 0.5882
	Kd 0.5882 0.5882 0.5882
	Ks 0.0000 0.0000 0.0000
	Ke 0.0000 0.0000 0.0000
	map_Ka C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_clouds.jpg <--- (Wrong Path, Earth is also missspelled)
	map_Kd C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_clouds.jpg <--- (Wrong Path, Earth is also missspelled) 
	map_d C:\Documents and Settings\glenn\Desktop\erth\02\4096\4096_clouds.jpg <--- (Wrong Path, Earth is also missspelled)
Sphax wrote: 19 Jan 2018, 10:10 prefer editing MTL file with relative paths instead of absolute paths. So that will work better for anyone.
A lot of software do not export paths in MTL files correctly...
Thanks all :D