Jump to content
  • Advertisement
Sign in to follow this  
hspirdal

Weird model behavior

This topic is 3475 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've recently been learning 3D programming and wanted to make a third-person camera (NWN2 style) with some test models as well as trying out animations with the XNAnimation library. It's all well and good, but one of my models (house) behaves very strange, and I can't really see why it does so. When drawn, it becomes very small compared to its original size (I haven't scaled it down) and its textures are drawn weird as well. If I draw the model in another project, it is drawn correct. I've debugged it for several hours, checking differences, making sure things don't interfere and disabled XNAnimation, but it's still no good. The problematic model: Model viewed correctly in another project: Could any of you take a look at it? Source Code Sample code for third-person camera on MSDN I'm really baffled as to why this happens. Model credits: DarkElf model by Clawdo (turbosquid.com) House model by Sven Dännart (the3dstudio.com) Marine model from XNAnimation Sample Kit

Share this post


Link to post
Share on other sites
Advertisement
About the model texture being drawn weird - I didn't save the state when calling Spritebatch.Begin() while drawing 2D text (I only enabled depth buffer after End). The only models which was affected by this in my testing, was models done by Sven Dännart, however.

While it isn't a big issue, I still have to scale his models pretty much (like 12 times its original size) while they appear roughly the same size without scaling in other projects I've tested them in. I guess this has a lot to do with the camera setting and such, I'm still trying to grasp the concept and get a more solid understanding.

If any of you have something to add, whether it would be hints, tips, explanations, whatever, I'd appreciate it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!