Create a terrain with Blender for XNA - c#

I have been poking around online about creating height maps for terrain and I really can't get the hang of it, my question is, if I create a terrain model in blender would I be able to use that in XNA, (VS2010) as my terrain?
Are there any drawbacks from doing so?

Xna support .FBX model so you can export your model from blender and use in Xna.
using-blender-models-in-xna
Blender-toXNA
but using a model that used for terrain is not good at all,as you know in each frame game engine render each object in your your camera view so if you have a large terrain it must rendered and it is not good.
so Using a model for the terrain is probably a bad idea unless the terrain is just one big square plane. You're probably going to have better luck building your terrain in code no matter what you intend the terrain to look like.you can split your terrain to small part like 512 unit.
Edited
An example of terrain in xna
A complete guide

Related

Creating rubiks cube model in c#

I'm looking to create a 3d model of a rubiks cube and im not worrying about animations, all I want is a cube that can be rotated around. I've already implemented a sorting algorithm so once I have a 3d cube my project will be complete however I've never really gone into to 3d graphics or graphics at all with c# and was wondering the best way to do this.

How do I make dynamic 2D collisions faster in unity?

Currently I'm working on a 2D game with destructible terrain in unity. It works great! Except for one thing.... collision generation... Since the terrain is destructible, I have to generate collisions on the go. I tried and it's awful performance. From 1000 fps from editing the terrain to 1 fps when I enable collisions generation. This is a huge issue and I know it's possible within unity because this guy :
https://forum.unity.com/threads/wip-nimbatus.221798/
created it with collisions as well. I tried contacting him but no response yet! Any of you guys have any ides on what I can do? Thanks!
I found a rather annoying but working solution to the issue. So basically what was wrong was I was setting points as vertices. The guy I messaged told me that at the time when he made his game, the 2D engine wasn't a thing in unity so he was forced to use regular 3D components. I didn't want to do this because it would possibly limit what I can do with 2D packages since I am not using the 2D engine. But in the end I decided that unless I could find a extremely fast edge finding algorithm that supported concave meshes WITH holes, I would need to just use the regular Unity3D MeshCollider component. I'm not sure why I was having an issue with the Polygon collider as I thought it would work the same as the MeshCollider but in 2D. I think the issue was I was setting the path of the Polygon Collider as each vertice. This is wrong because I think I would need to set the edge vertices only. (My mesh does not share vertices so I'm not sure how to find the edges) Of course I could re write it to share vertices but I think I will be find with the 3D components (For now at least)

TILED 2D Tilemap is jumpy/jerky in Unity

Using the application Tiled I made a 2D tilemap for a 2D Unity game I am making. The game is very simple, and the map consisted of only some regular tiles, and some with collision detectors. When I import the map into Unity to use for my game with Tiled2Unity, the game loads fine and everything works well, except every now and then the map skips like there is a rendering lag. The jump seems to be independent of the size of the tilemap, does anyone have any idea what the problem could be? I'm happy to answer any questions about the situation.
Here is a picture, you cannot see the problem because it's not a video but here is the situation at least:

Projecting a LibNoise sphere-mapped image on a model

I've used the .NET port of LibNoise to create a planetary map using its built-in sphere projection. However, now I want to wrap that texture around a sphere in XNA. I've got a sphere model, but I know very little about UV wrapping, etc. It's entirely possible, if not plausible, that the way I've put UV coordinates on my model absolutely will not work with the generated texture.
I've set up a small test project rather than fiddle around in my main game. It's your basic rotating model project. I'm using BasicEffect on the model and setting the Texture parameter as my map. However, all I see is the model with its default diffuse color and no texture.
For your convenience, the full code of the project:
Game1.cs
PlanetTerrainMap.cs
Required files:
sphere.fbx
EarthLookupTable.png
Also, I totally recognize that my map does not look like a map. I can handle that issue later. I just want to see all that crappy grain noise on the sphere so I can move forward.
Do I need to use a custom shader? Or do I need a different model?
Have you tried opening this in Blender? It's a great way to confirm if the UV coordinates specified in your model line up to the texture that your trying to use. If it's not going to render after it's imported in to Blender, it's highly likely you won't get it to Render in XNA without specifying the mapping yourself.

Texture onto 3D car mesh

I have a 3D car mesh object. How can I reflect a 3D text onto the 3D mesh surface?
I'm using Visual Studio 2008 C# Express. The 3D car mesh object is ready for use in C# project.
That is, I must use it in my C# project, not in Blender.
All the development processes that I need must be done in C# development environment.
You should use a 3D modeling tool like Blender, AC3D or similar. This will help you create the "model" and placing any textures on it. Then you will also need some kind of drawing engine so you also can load and draw the model in your app.
It's unclear specifically what you're talking about here.
Did you mean Text, or Texture?
Simply texturing the model - If you're using blender to create the model, texture it, and export it in .x or another format and render it using an appropriate library.
Reflecting Text - Look into projective decals.
Or a bit more advanced
Reflection of the environment - To simulate reflective surfaces you're going to need to program a shader. Look into HLSL, GLSL, CG, or you can do the shader in ASM. - Reflection Mapping
EDIT: Added link to reflection mapping.
If you need Direct 3D access at run-time, try using SlimDX.

Categories