How to display textures in the open-3d-viewer

193 views
Skip to first unread message

Thais

unread,
Oct 29, 2012, 7:24:29 PM10/29/12
to open-3d-vie...@googlegroups.com
I have a model in blender, 

and I export as obj, and put the images folder in common, but the model appears without textures.

please someone help me, thanks!.


Oteng Kwaku

unread,
Oct 30, 2012, 6:30:34 AM10/30/12
to open-3d-vie...@googlegroups.com
i know your problem. i used to have the same problem when i first starting using the o3v. to solve it is very simply first. 
make your the 03v know your model and the path to the model by editing the model.js file. if the problem persist.
use firebug console to fine out which path the api is using to find the texture and edit your model texture in like manner  

thais Rodrigues

unread,
Oct 30, 2012, 6:59:59 AM10/30/12
to open-3d-vie...@googlegroups.com
Thank you for answer,

I did that, but unfortunately not o3v loads the textures, I'm thinking that the problem is on my model the blender, you have to tell me how should be the model in blender for appears in the o3v??  i want to test a model of one layer, and then do the other layers.

2012/10/30 Oteng Kwaku <oteng...@gmail.com>

spirit

unread,
Oct 30, 2012, 8:03:55 AM10/30/12
to open-3d-vie...@googlegroups.com
by the way have you compress your obj model to utf8 if not do that you can use webgl-tests.crbs.ucsd.edu. after that try it again. 
i have attached a test file decompress it and try it. if it does not work than we will have to start it again. so let me know that happen than 
we will know where the problem is. 

test.rar

thais Rodrigues

unread,
Oct 30, 2012, 12:14:33 PM10/30/12
to open-3d-vie...@googlegroups.com
I had already created utf8 files,
 my mistake was not putting in the path of the textures correctly model.js, i change the path, My model does not work. The error message is " Uncaught TypeError: Cannot read property 'childIds' of undefined "
 
Your test model work perfectly.

Thank you.


2012/10/30 spirit <oteng...@gmail.com>

Oteng Kwaku

unread,
Oct 30, 2012, 1:54:30 PM10/30/12
to open-3d-vie...@googlegroups.com
ok, it means you made an error during either the compression process or the exporting process or you were creating the part info and the grouping list. this is what we can do if you want you can send me the model and i will find out what the problem and also prepare it for your. then i will send you a detailed report. 
thanks you 
 

Thais Rodrigues

unread,
Oct 30, 2012, 2:34:11 PM10/30/12
to open-3d-vie...@googlegroups.com
attached my model, 

thank you.

2012/10/30 Oteng Kwaku <oteng...@gmail.com>
test.zip

Oteng Kwaku

unread,
Oct 30, 2012, 2:59:38 PM10/30/12
to open-3d-vie...@googlegroups.com
i have seen it and i am working on it so by tomorro morning you will have the report

Thais Rodrigues

unread,
Oct 30, 2012, 3:15:05 PM10/30/12
to open-3d-vie...@googlegroups.com
Ok, thank you

2012/10/30 Oteng Kwaku <oteng...@gmail.com>

Oteng Kwaku

unread,
Oct 30, 2012, 5:46:23 PM10/30/12
to open-3d-vie...@googlegroups.com
i think the problem is with the model itself when i opened it in blender it did not have texture. this implies the the obj and the mlt file has a disconnection. if you created the medol yourself than use this procedure  to export the model and resend it to me but if  not then use an other model. 
let me know asp so i don't wast my time with it. but all the same i will try and apply the textures and see what happens 
thanks you 

Thais Rodrigues

unread,
Oct 30, 2012, 7:23:17 PM10/30/12
to open-3d-vie...@googlegroups.com
I dont understand, my model shows the textures here, here is attached my model in blender format.Thank you!
2012/10/30 Oteng Kwaku <oteng...@gmail.com>
pc.blend

Oteng Kwaku

unread,
Nov 2, 2012, 8:43:52 AM11/2/12
to open-3d-vie...@googlegroups.com
hi forgive me for not getting to you early. i have attached the file to it read the read me file first let me know what happens.
by the way are you no linkin
New folder.rar

Thais Rodrigues

unread,
Nov 2, 2012, 2:20:17 PM11/2/12
to open-3d-vie...@googlegroups.com
thank you very much for your help, you helpe me a lot, I will continue studying the o3v and will also contribute to the documentation, to help others with doubt that the same mine. Could you send me the model of blender that you changed, so I can see the changes? 

Thank you

2012/11/2 Oteng Kwaku <oteng...@gmail.com>

Thais Rodrigues

unread,
Nov 7, 2012, 7:44:33 AM11/7/12
to open-3d-vie...@googlegroups.com

thank you very much for your help, you helpe me a lot, I will continue studying the o3v and will also contribute to the documentation, to help others with doubt that the same mine. Could you send me the model of blender that you changed, so I can see the changes? 

Thank you
2012/11/2 Thais Rodrigues <thaisrodr...@gmail.com>

spirit

unread,
Nov 7, 2012, 9:10:19 AM11/7/12
to open-3d-vie...@googlegroups.com
forgive for not sending the model up till now i promise to send it as soon as i get my net restored 

Thais Rodrigues

unread,
Nov 7, 2012, 9:21:28 AM11/7/12
to open-3d-vie...@googlegroups.com
Ok, not problem


Thank you.
2012/11/7 spirit <oteng...@gmail.com>
Reply all
Reply to author
Forward
0 new messages