Advertisement Jump to content
Sign in to follow this  

load mesh's question

This topic is 4883 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

i have a question that i can't understand, in my porject,i write this: Mesh tempMesh = Mesh.FromFile(file, MeshFlags.Managed, Engine.Device3D, out mtrl); and when program run to here, a error occour, here,the Engine.Device3D is a static various, Why?

Share this post

Link to post
Share on other sites
Hi there sssa,
How are you doing buddy?

The Problem

The Solution
If you could ellaborate on what the error is we might be able to help. From what I can see is that you might have a non-static device member in your class and a static property which might give you problems or your might have not initialized your engine class but you are trying to use the Device3D property/member which hasn't been initialized (this would normally give you an nullreference exception)

I hope this helps a bit. With a little more code you might be able to help you. If you are pasting code please use the
[ source lang="cpp" ]
[ /source ]

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!