-
|
|
Crosswalk 4 FBX exporting issue: wrong normals
|
Preamble:
A have searched the forums for a potential answer without luck, so here I am with a very basic question. Believe me, I won't be bothering you for such a simple thing, but after countless hours trying and trying ... better to ask anyways.
The issue is:
I am doing a simple cube in Softimage Mod Tool 7.5 and then exporting it using the fbx format. When rendered in a XNA window, this simple cube looks pretty weird. I know what is happening: model normals have been “averaged” to provide a sensation of smoothness. This would be quite nice in a round model and is desirable in many cases, but not for this model (yeah, a simple cube for testing). I have tried any possible thing into Softimage to fix the normals and nothing seems to work.
If I export using directx format, model comes fine, with sharp edges. Inspecting both fbx and direct files, what I was thinking was confirmed: while directx assign values of 0, 1 or -1 to all normals, fbx assign numbers higher than -1 and lower than 1, creating the “smooth” effect in edges and faces.
I want to keep exporting in fbx. Any advice on how to fix this into Softimage? I really don’t want to write a custom importer just to fix bad normals if is avoidable through the software itself.
I am using Crosswalk 4. Same issue when using version 3.3. The fbx exporter works fine in Max and Maya, so I am guessing is something I am missing in Softimage.
Thanks in advance.
|
|
-
-
- (136)
-
premium membership
-
Posts
13
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
Oooh weird!
As far as I know, XSI doesn't have any smoothing groups or anything like that, hard creases like on a box should always look pretty hard. The only way to make edges smoother/harder is to pick the model, go into render->property->geo approximation then mess with the discontinuity angle in Polygon Mesh tab.
Picking the box Freezing all transforms after bringing it in might change its shading too. (Right click transform->freeze all transformations on the right) Or um, ctrl-a, then Freeze at the bottom right.
|
|
-
|
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
Hi If-Laser, I did Freeze all tranforms before exporting. Further exploring the exported file bring some light on this.
What I did was to ask a friend to export the same model from another application: 3ds max 2009. He used exporter that came with the max intall and has not updated to the new version. Anyways, exploring the files I noticed a chunk that explain the issue:
When exporting from Mod Tool 7.5, Crosswalk 4.0, the part that cares of polygons and their normals has this piece:
| MultiLayer: 0 |
| MultiTake: 1 |
| Shading: T |
| Culling: "CullingOff" |
| Vertices: -5,-5,-5,5,-5,-5,-5,5,-5,5,5,-5,-5,-5,5,5,-5,5,-5,5,5,5,5,5 |
| PolygonVertexIndex: 0,2,3,-2,0,1,5,-5,0,4,6,-3,1,3,7,-6,2,6,7,-4,4,5,7,-7 |
| GeometryVersion: 124 |
| LayerElementNormal: 0 { |
| Version: 101 |
| Name: "" |
| MappingInformationType: "ByVertice" |
| ReferenceInformationType: "Direct" |
| Normals: -0.577350269189626,-0.577350269189626,-0.577350269189626,0.577350269189626,-0.577350269189626,-0.577350269189626 |
| ,-0.577350269189626,0.577350269189626,-0.577350269189626,0.577350269189626,0.577350269189626,-0.577350269189626 |
| ,-0.577350269189626,-0.577350269189626,0.577350269189626,0.577350269189626,-0.577350269189626,0.577350269189626 |
| ,-0.577350269189626,0.577350269189626,0.577350269189626,0.577350269189626,0.577350269189626,0.577350269189626 |
| |
| } |
While the max counterpart for the exact same model has this one:
| MultiLayer: 0 |
| MultiTake: 1 |
| Shading: T |
| Culling: "CullingOff" |
| Vertices: -5,-5,-5,5,-5,-5,-5,5,-5,5,5,-5,-5,-5,5,5,-5,5,-5,5,5,5,5,5 |
| PolygonVertexIndex: 2,3,1,-1,1,5,4,-1,4,6,2,-1,3,7,5,-2,6,7,3,-3,5,7,6,-5 |
| Edges: 0,1,2,3,4,5,6,8,9,12,13,16 |
| GeometryVersion: 124 |
| LayerElementNormal: 0 { |
| Version: 101 |
| Name: "" |
| MappingInformationType: "ByPolygonVertex" |
| ReferenceInformationType: "Direct" |
| Normals: 0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,-1,0,0,-1,0,0,-1,0,0,-1,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0 |
| ,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1 |
| } |
You can notice a few key diferences: first off, MappingInformationType. Is taged as ByVertice on XSI while is ByPolygonVertex on max. The other obvius thing is the normals themselves. Values greater than -1 and lower than 1 in XSI, while exactly -1, 0 or 1 in max.
Is there any way to control this from XSI or I have to live with this workflow and correct the normals on the way?
|
|
-
-
- (10)
-
premium membership
-
Posts
7
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
I'm experiencing the same problem with Modtool normals - and it is mentioned here:
and here:
"Exporting via FBX however is not working correctly, smoothing information is never preserved on export. Interestingly the Crosswalk XSI exporter has the same problem, but it also has an “Export XSI Normals” option which fixes it. We have a few customers testing out the preview for XSI 2010 (full version not ModTool) who say smoothing is fixed, but we haven’t had the opportunity to test this out yet."
Does anyone have more information on this?
Thanks in advance
|
|
-
|
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
Hi Eclectus,
Thanks a lot for those links and for providing more info on this issue. I'll try Mod Tool 7.5 "Export XSI Normals" option at home later. I remember checking that (on or off) and nothing happened. I'll give it another try anyways, and hope tomorrow I'll come with some good news.
I really hope this works, as I definitely will not have XSI 2010 (nor 7.5) at hand ... just the fantastic (and free) Mod Tool at the moment. Of course I can download the trials but they last 30 days and is for sure I'll be doing some model longer.
|
|
-
|
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
Just for the record: the values asigned by Mod Tool 7.5 (or better said, the Crosswalk 4.0 fbx exporter) at every normal is sqrt(3)/3, of course signed as needed.
Hmmm, Why is that?. Another question here.
|
|
-
|
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
Hi all,
I had another look at fbx exporter and no “Export XSI Normals” there (Crosswalk 4.0, Mod Tool 7.5).
I’ll see what can I do to fix this by my own … I’m guessing a custom importer may worth, the only thing is how to get the polygon smoothing information out of XSI and into the fbx file, as some polygons may have hard edges while others not in the same mesh.
I really love and appreciate mod Tools developers who bring us such a wonderful tool. Really a top notch 3D application. I’m wondering how they miss this issue. I would really love to focus on coding and modeling but hey, a new challenge is always welcome!
If I come with something useful for the community on this, I’ll get back and share whatsoever I found/do
|
|
-
-
- (10)
-
premium membership
-
Posts
7
|
Re: Crosswalk 4 FBX exporting issue: wrong normals
|
Hi Cosmos - thanks for your replies.
I know exactly how you feel - for me this is frustrating, because I don't really want to write an .fbx exporter, and I feel that a lot of XNA developers could potentially be impacted by this. I've held off looking at it in the hope that an updated version of the Crosswalk exporter will address this, but I've not heard any information about this. Does anyone have more information on this?
Thanks in advance
|
|
|