smile High priority how does a funiture texture gets appled to a piece of furniture?

This topic has been viewed 3762 times and has 3 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
jjohnsson
Posts: 17
Joined: Sun Jul 11, 2010 5:06 pm

how does a funiture texture gets appled to a piece of furniture?

Post by jjohnsson »

Once a texture is selected from the modify furniture dialog, and the user clicks ok, what happens?
Where should I look to see how the selected texture is applied?
User avatar
pencilart
Posts: 188
Joined: Tue Oct 02, 2007 4:37 pm

Re: how does a funiture texture gets appled to a piece of furniture?

Post by pencilart »

The texture should just be applied. It shows up in the lower right window pane (the 3D view). Have you tried it?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: how does a funiture texture gets appled to a piece of furniture?

Post by Puybaret »

jjohnsson, texture corrdinates are computed with TexCoordGeneration Java 3D class.
Look at setMaterialAndTexture method in HomePieceOfFurniture3D class. If you want to see how texture coordinates are computed with TexCoordGeneration class in OBJECT_LINEAR mode, see generateTextureCoordinates in OBJWriter class.
Emmanuel Puybaret, Sweet Home 3D creator
jjohnsson
Posts: 17
Joined: Sun Jul 11, 2010 5:06 pm

Re: how does a funiture texture gets appled to a piece of furniture?

Post by jjohnsson »

Great! Thanks Puybaret.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest