wrong textured

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

wrong textured

Post by arnir »

hello i have level mesh from stalker (3ds) and i textured it but meshes are only coloured (not textured)...
the same coloured meshes are also in milkshape 3d
why?

screenshot
Image

thanks
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

May be you did not export your 3ds right, it probably does not include texture.

You may also look at this post for some useful info: http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
Last edited by arras on Mon Feb 25, 2008 3:11 pm, edited 1 time in total.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

have you checked your uv map?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Are the textures actually loaded by irrlicht? What does the console output say when you load the model?
Image Image Image
arnir
Competition winner
Posts: 154
Joined: Sat Jan 20, 2007 4:36 pm
Location: Czech Republic

Post by arnir »

JP wrote:Are the textures actually loaded by irrlicht? What does the console output say when you load the model?
load is all right (some textures are not loaded but meshes on the screenshot are textured)

uv map? sorry but what is it?

error is evidently in mesh... but i am only coder
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Each vertex have its coordinate in texture space. Since texture have 2 dimensions there are two coordinates for each vertex and they are called U and V ...they are equivalents of X and Y. Set of such coordinates for every vetrex of your model is called UV map.

UV coordinates are written as floats. UV(0,0) is in upper left corner of texture (that is origin of texture) and UV(1,1) is bottom right corner of texture.

UV map is used to display texture on you model.
Post Reply