Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Smoothing:I am lost
  RSS 2.0 ATOM  

Smoothing:I am lost
Rate this thread
 
35595
 
Permlink of this thread   Subscribe to this thread
avatar
  • salvob
  • Posted: 14 October 2009 09:35 PM
  • Total Posts: 7
  • Joined: 15 October 2009 03:35 AM

hello, I am new of FBX…
I am doing an import from FBX..
I traced all vertex, polygons, materials, I see all layers for the texture/UV…
The smoothing is a problem for me..
In my structure I have for the smoothing normals per polygon-vertex, and hard edges when there is discontinuosity.
In FBX I see normals that are 1 per polygon..
someone can help to understand the structure of smoothing in FBX? Is it dipendent from the application that write the FBX..
Thanks a lot for the help
Salvo



Replies: 2
/userdata/avatar/c6y2tieph_fbx.png

Hi salvob,
the smoothing in FBX includes two types: by polygon and by edge.

“by Edge” represents the hard/soft edge in Maya. It’s 0/1 flag for each edge:) such as:

LayerElementSmoothing: 0 {
Version: 102
Name: “”
MappingInformationType: “ByEdge”
ReferenceInformationType: “Direct”
Smoothing: *12 {a: 0,0,0,0,1,0,0,0,0,0,0,0}
}

“by polygon” represents the smoothing groups in 3ds Max. It recorded an ID for each face. The ID could be used in 3ds Max and converted to corresponding smoothing group ID. Such as:
LayerElementSmoothing: 0 {
Version: 102
Name: “”
MappingInformationType: “ByPolygon”
ReferenceInformationType: “Direct”
Smoothing: *12 {
a: 2,2,4,4,8,8,16,16,32,32,64,64
}

Author: Zhihao.Li

Replied: 15 October 2009 12:43 AM  
/img/forum/dark/default_avatar.png

Thanks Zhihao for your reply,

i need to understand how to catch the smoothing from the nodes, tell me if i am wrong:

KFbxMesh* param_Mesh = (KFbxMesh*) something->GetMesh()

KFbxLayer* param_Layer = param_Mesh-> getLayer()

KFbxLayerElementSmoothing* pLayerSmooth = param_Layer->GetSmoothing()

pLayerSmooth->GetMappingMode()

pLayerSmooth->GetReferenceMode()

pLayerSmooth->GetDirectArray()

so i have the three parameters, but, is it right to say that they are not related with vectors, because in other API (LIGHTWORKS) you need the vectors and the angle limit to define the shadow smoothing.

Author: salvob

Replied: 16 October 2009 03:30 AM  
avatar
  • RedCobra
  • Posted: 15 October 2009 01:35 AM

***Since people wont be notified on Replies i am posting this so Salvob would be notified that someone replied***

^^



Application: 3Ds Max 2010
GPU: ATI HD6970
RAM: 8GB
OS: Windows 7 64-bit
DX: 11
My website: http://www.wix.com/redcobra/Mohammed-Al-Khatib-Portfoilio
Turbosquid Page: http://www.turbosquid.com/Search/Artists/redcobra?referral=redcobra

Replies: 0




   
  Settings Choose Theme color: