| Poster | : Mako | | Posts | : 3 | | Country | : USA | | City | : Austin |
| | | | Posted by Mako on 04/02/2008 at 21:55:22
| | I've seen several topics on this but no clear answer. I have the terrain working perfectly fine and now I would like to load a model. How do I go about doing this?
Do I need to add something in the series4effects.fx file? Because when I add the model in the content pipeline and try to load and draw it like I usually do, I cannot for the life of me see it, no matter how I fiddle around with the camera.
Once I can see it, I won't have a problem scaling it and adding heightmap collision detection or anything, I just can't see it, so I don't know if it is even loading correctly.
If someone could post just the few lines of code needed to load a simple model I would really appreciate it. Thanks. | |
|
|
| |
| |
| Poster | : Mako | | Posts | : 3 | | Country | : USA | | City | : Austin |
| | | | Posted by Mako on 04/02/2008 at 22:50:55
| | I'll try and be more specific. Do I just use the "colored" technique like in the series 2 example where he loads the model of the plane? And if so, how do I add all the other parameters it needs, because it won't accept just xWorld.
What coordinates can the camera see in it's default starting location, that way I know I'm not trying to load it outside of the camera's visibility range. Or how can I figure out what the camera can see?
I don't need answers to all of those, but anything will help. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 05/02/2008 at 07:05:22
| | Hy hm i think you are doing this with XNA.
In MDX you have to load the model from an .X file then you fave to use drawsubsets to actualy draw it.
I used Mesh.FromFile and Mesh.LoadHierarchyFromFile. I think there has to be something similar to this: Model
which has some functions that can use the loaded file from the ContentManager.
Good Luck | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 05/02/2008 at 17:58:35
| | | I saw someone had posted saying they had a dwarf running around on this landscape. If that person is still browsing these forums, I'd love to see how they added a model and the heightmap collision. It's a bit tough with the Z up thing. | |
|
|
| |
| |
| Poster | : Anonymous | | Posts | : | | Country | : | | City | : |
| | | | Posted by Anonymous on 20/06/2012 at 11:58:43
| | | I read your post and wished I'd wriettn it | |
|
|