Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3506 times and has 3 replies Next Thread
jjohnsson
Newbie




Joined: Jul 11, 2010
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
smile how does a funiture texture gets appled to a piece of furniture?

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?
[Jul 15, 2010, 5:07:04 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
pencilart
Advanced Member
Member's Avatar


Joined: Oct 2, 2007
Post Count: 188
Status: Offline
Reply to this Post  Reply with Quote 
Re: how does a funiture texture gets appled to a piece of furniture?

The texture should just be applied. It shows up in the lower right window pane (the 3D view). Have you tried it?
[Jul 21, 2010, 5:41:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9427
Status: Offline
Reply to this Post  Reply with Quote 
Re: how does a funiture texture gets appled to a piece of furniture?

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
[Jul 22, 2010, 3:14:13 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jjohnsson
Newbie




Joined: Jul 11, 2010
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Re: how does a funiture texture gets appled to a piece of furniture?

Great! Thanks Puybaret.
[Jul 22, 2010, 4:30:49 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved