开发者

Problems with some textures in XNA

开发者 https://www.devze.com 2023-01-05 13:13 出处:网络
I have made a model using Sketchup, and have tested rendering it using Blender and it looks great. However loading it in XNA has two开发者_如何学JAVA problems.

I have made a model using Sketchup, and have tested rendering it using Blender and it looks great. However loading it in XNA has two开发者_如何学JAVA problems.

1. One of the textures becomes see-thru not entierly transparent but items below on the inside of the model is visible (this is not the case in blender).

2. I have a rounded part on the model that is divided into smaller parts and the texture gets out of sync (the posisioning is all wrong).

I have tested exporting the model to 3ds and then use blender to save it as fbx (to eliminate any problems with Sketchup). I have also tried using AutoDesks FBX Converter, same problems =(

I'm using myModel.Draw(World, View, Projection); to render the model.

Any suggestions?

/Jimmy


1)Sounds like a backface culling issue try this

device.RenderState.CullMode = CullMode.None; (try the CW and CCW variants)

also make sure the depth buffer is enabled

2) This may be similar problem to an issue I had with blender when you copy the bones try the gModel.CopyBoneTransformsTo(transforms); as well as gModel.CopyAbsoluteBoneTransformsTo(transforms);

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号