Flight Sim + Terrain I'm working on
Page 1 of 2 Goto page 1, 2  Next
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Wed, 8th Apr 2009 19:15    Post subject: Flight Sim + Terrain I'm working on


Please be gentle, this is still very early work. Razz More info on the vid's description. Criticism and advices are welcome. Very Happy

This , but I have since moved to XNA. It is much easier to work with when managing content (and I can bring this eventually to the 360).


My IMDb Ratings | Fix NFOHump Cookies | Hide Users / Threads | Embedded Content (Videos/GIFs/Twitter/Reddit) | The Derps Collection


Last edited by LeoNatan on Wed, 8th Apr 2009 20:47; edited 1 time in total
Back to top
FireMaster




Posts: 13586
Location: I do not belong
PostPosted: Wed, 8th Apr 2009 19:42    Post subject:
that radar o'meter thing inside the cockpit looks like a pokemon ball

also, excellent work few more touches to it and you've got HAWX 2
Back to top
Submiqent




Posts: 1213

PostPosted: Wed, 8th Apr 2009 20:04    Post subject:
can you show me some of the code you did for the flight physics? i was doing a top down 2d racing game and i got really hung up and eventually bogged down in the driving physics (attempting newtonian more or less) and i was wondering how complex your approach was.

looks fantastic btw, i'm surprised you did a cockpit view, looks great.
Back to top
Mortibus




Posts: 18053
Location: .NL
PostPosted: Wed, 8th Apr 2009 20:31    Post subject:
impressive leo, good feel in cockpit view

keep it up, wanna see it in final Wink
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Wed, 8th Apr 2009 20:41    Post subject:
Thanks guys!

Submiqent wrote:
can you show me some of the code you did for the flight physics? i was doing a top down 2d racing game and i got really hung up and eventually bogged down in the driving physics (attempting newtonian more or less) and i was wondering how complex your approach was.

Uhm, well for now what I have on the XNA version is "quaternion physics." Razz On the OpenGL version, I had somewhat more complex flight dynamics, with some gravity and acceleration, but it was nothing special. Not sure where I'd go with this one, as this is just a third of my final project. I guess I will only take it as far as the flight dynamics looking alright. Smile
Back to top
Spiderman
Banned



Posts: 5877

PostPosted: Wed, 8th Apr 2009 20:54    Post subject:
add radar animation, a simple gif blimp
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Wed, 8th Apr 2009 20:59    Post subject:
I'm not sure how to do that just yet. I have to put some placeholder texture on the model, and then replace it with another texture (the radar output) at runtime. This is on a low priority for now. Smile
Back to top
b0se
Banned



Posts: 5901
Location: Rapture
PostPosted: Wed, 8th Apr 2009 21:29    Post subject:
i like it man keep up the good work


[spoiler][quote="SteamDRM"]i've bought mohw :derp: / FPS of the year! [/quote]
[quote="SteamDRM"][quote="b0se"]BLACK OPS GOTY[/quote]
No.[/quote][/spoiler]
Back to top
sabin1981
Mostly Cursed



Posts: 87805

PostPosted: Wed, 8th Apr 2009 21:34    Post subject:
+1

Nicely done, Leo! Keep it up mate, can't wait to see the finished article Smile
Back to top
SycoShaman
VIP Master Jedi



Posts: 24468
Location: Toronto, Canada
PostPosted: Wed, 8th Apr 2009 22:29    Post subject:
@Leo

Excellent!

Is the plane a stealth bomber? Looks like it. But still, you could add the lines and fine detail for the finished product.

But the terrain is really well done dude.

Wish I had your skills man.

Hey Leo, how long did it take you to learn this stuff? Cuz I know your young. Like what? A year or 2 or 3?


Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Wed, 8th Apr 2009 22:40    Post subject:
Well this version actually took me 3 days to do, but mostly because it was somewhat similar to the OpenGL stuff I learned during the summer. If I have to guess how long it took me to learn all the OpenGL stuff, I'd guess 3-4 months. A lot of that time went toward learning shaders. Shaders in OGL are written in GLSL and in DirectX/XNA, they are written in HLSL, but both languages are fairly similar (somewhat like C), and the ideas behind the shaders (like multitexturing, fog, reflection, refraction, etc) is basically the same in OGL and DX/XNA.
Back to top
SycoShaman
VIP Master Jedi



Posts: 24468
Location: Toronto, Canada
PostPosted: Wed, 8th Apr 2009 22:43    Post subject:
iNatan wrote:
Well this version actually took me 3 days to do, but mostly because it was somewhat similar to the OpenGL stuff I learned during the summer. If I have to guess how long it took me to learn all the OpenGL stuff, I'd guess 3-4 months. A lot of that time went toward learning shaders. Shaders in OGL are written in GLSL and in DirectX/XNA, they are written in HLSL, but both languages are fairly similar (somewhat like C), and the ideas behind the shaders (like multitexturing, fog, reflection, refraction, etc) is basically the same in OGL and DX/XNA.


For someone like me, no experience, how long do you think it would take to make a good looking animation scene (whatever it may be)?


Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Wed, 8th Apr 2009 22:52    Post subject:
Oh, animation has nothing to do with programming, really, unless you do the animations on the fly, but they'd look awkward like that. Modelling and animation are in a completely different field, just like drawing textures. So, if you want to do models and/or animation, and you have the talent for such stuff, it isn't all that hard. It's is a matter of learning to use the available tools (like 3ds Max, Maya, ZBrush, etc). This could take anywhere from a day (learning the most basic stuff required for modeling for example) to months (dwelling in the most advanced features of each software).

Programming (what I am doing) is more advanced, and takes longer to start seeing visual results (like a window, a form, a game, a working application, etc). Also, before starting 3D games (and to some extent 2D as well), some mathematical knowledge is recommended (especially linear algebra).

But XNA really simplifies the process, so a few months of learning the programming language (like C++, C# and/or VB.NET), 4-5 weeks on the math, at least the basics, and 2-3 months of studying XNA (from a book, website, trial and error), and you could start seeing results. Smile
Back to top
deelix
PDIP Member



Posts: 32062
Location: Norway
PostPosted: Thu, 9th Apr 2009 00:32    Post subject:
Great work man. Are you gonna make it open source in the future?^^
Back to top
cnZ
Banned



Posts: 3091

PostPosted: Thu, 9th Apr 2009 00:35    Post subject:
i wouldnt

id eat all the cash i could get plus some more cash


yes
Back to top
[sYn]
[Moderator] Elitist



Posts: 8374

PostPosted: Thu, 9th Apr 2009 03:29    Post subject:
I really want to get into XNA but with the total lack of 3D skills I havent made the jump yet.. Do you work as part of a team or just do everything yourself? Maybe I need to find myself an artist Razz!
Back to top
Frant
King's Bounty



Posts: 24753
Location: Your Mom
PostPosted: Thu, 9th Apr 2009 03:35    Post subject: Re: Flight Sim + Terrain I'm working on
iNatan wrote:
http://www.youtube.com/watch?v=51kJyfA2gfo&fmt=22

Please be gentle, this is still very early work. Razz More info on the vid's description. Criticism and advices are welcome. Very Happy

This , but I have since moved to XNA. It is much easier to work with when managing content (and I can bring this eventually to the 360).


You've built the engine etc. from scratch, in C# with XNA? I'm very impressed.


Quote:
Also, before starting 3D games (and to some extent 2D as well), some mathematical knowledge is recommended (especially linear algebra).


I'd say it's not only recommended, it's a must. My math skills are extremely crude when it comes to higher level stuff needed for 3D calculations and have always been something that has held me back as far as beginning to code 3D stuff, and I've never found the right time to learn some of the most important skills needed (learning math on your own in your home sucks, esp. when you can play games instead Razz ).


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Thu, 9th Apr 2009 03:49    Post subject:
[sYn] wrote:
I really want to get into XNA but with the total lack of 3D skills I havent made the jump yet.. Do you work as part of a team or just do everything yourself? Maybe I need to find myself an artist Razz!

Haha, well, like a true pirate, the textures are from a tutorial, and the model is from De Espona model pack. Laughing I am not a modeler, nor I can draw or photograph quality textures. Smile My magic is unfortunately limited to coding.

But if you need any help, you can PM me. Smile
Frant wrote:
I'd say it's not only recommended, it's a must. My math skills are extremely crude when it comes to higher level stuff needed for 3D calculations and have always been something that has held me back as far as beginning to code 3D stuff, and I've never found the right time to learn some of the most important skills needed (learning math on your own in your home sucks, esp. when you can play games instead Razz ).

Well, it definitely used to be a must back when I did my first 3D engine in DOS, in my last year of high school. But with XNA, it is perfectly possible to only learn what does what, without understanding exactly what happens behind the scenes.
Back to top
sabin1981
Mostly Cursed



Posts: 87805

PostPosted: Thu, 9th Apr 2009 11:58    Post subject:
deelix wrote:
Great work man. Are you gonna make it open source in the future?^^

cnZ wrote:
i wouldnt

id eat all the cash i could get plus some more cash


Heheh, yeah... don't make it open source! Leave it commercial and then we can steal it Laughing
Back to top
Mutantius
VIP Member



Posts: 18594
Location: In Elektro looking for beans
PostPosted: Thu, 9th Apr 2009 12:58    Post subject:
Very nice work Nathan! Solid programming.. and must be a plus to have that on your CV. Thumbs up!


"Why don't you zip it, Zipfero?" - fraich3
Back to top
Spiderman
Banned



Posts: 5877

PostPosted: Thu, 9th Apr 2009 13:31    Post subject:
little help Wink



dude why is your game 300ms points




Razz
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Mon, 13th Apr 2009 04:30    Post subject:
Well done leo! Just discovered your thread! Please update as often as possible Smile

Oh and btw. which tools, libs & enviroments do you need to start?


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Mon, 13th Apr 2009 04:44    Post subject:
Starting some development with XNA is really easy, you need either Visual C# 2008 Express (free), or any of the complete Visual Studio 2008 versions, and XNA Game Studio 3.0 (free).

Then, to cook content (textures, models, sounds, effects, etc) for XNA, you just add the content to the Content folder in VS' workspace. In debug mode it doesn't compress the cooked content, but it is faster. In release it compresses the content, but is slower. Smile
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Mon, 13th Apr 2009 05:17    Post subject:
So you did no modeling at all? How to implement selfmade models into xna/C# ? Does it accept models from cinema4d?


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Mon, 13th Apr 2009 05:34    Post subject:
It only knows to read "X" and "FBX" files (default XNA content providers). I have not found any other content providers, but I used Panda DirectX Exporter for 3ds Max 2009 to export the models to the DirectX "X" format (I didn't manage to get these particular models with the default 3dx Max "FBX" exporter. I suspect its the models' fault, but I managed with the "X" format, so it's all good. If your software has an exporter for either "X" or "FBX", you'll be fine. Otherwise, you might need to use a middleman (MilkShape, 3ds Max, LightWavem, etc), or find a custom content provider for XNA, that will accept a particular format. Smile
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Mon, 13th Apr 2009 17:08    Post subject:
Hey Leo, how are you rendering your terrain? I'm modeling it atm with cinema4d and it works quite good. And I was just thinking about adding a skybox which won't move. But do I have to make it so, that it follows the camera (which sounds stupid Sad ) or is there a skybox module inside xna?

And did you use 2 different models for your airplane? (inside and outside view?)

Ah so much questions.. well I'll just try :]


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
AKofC




Posts: 4359

PostPosted: Mon, 13th Apr 2009 19:33    Post subject:
I should get in on this as well.

Maybe write my first game.

But gotta start small before I work my way up.

Maybe a text adventure. You're right, it's too easy, gotta have a challenge.

AN ADULT TEXT ADVENTURE GAME!


Man now I'm all inspired and shit. Wonder how long it'll last before I get lazy. Sad


Gustave the Steel
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Mon, 13th Apr 2009 19:36    Post subject:
My terrain is read from a heightmap and is fed into a vertex buffer. It is then drawn when needed. You could model it, and then it would do the same thing basically, with the loading of the model going into a vertex buffer. Multitexturing of the terrain (based on height) is done in code and shaders, so you'd save some time and performance if you do the texturing in Cinema 4d. Skyboxes are usually made to indeed move with the camera, because otherwise you could reach the end of the sky. Laughing There is no module for it per se, you have to implement if yourself lol.

I used the same model for the inside and outside views, but different scales (in order to fix some near clip plane problems). The particular model I used was modeled internally as well, so it was good. For the commercial 767 I will be using a second model.
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Mon, 13th Apr 2009 21:15    Post subject:
nice thx Smile

ok so far I have my terrain but I can't texture within C4D. And I don't even know how I could do the terrain thing better. Do you have any good tutorials except the ones on xna? They have a tut to generate a terrain from a height map, but I wanted to go the other way... on the other hand: If you use a heightmap to generate the terrain, how do you texture it? I saw that you had different textures, how did you bring your engine to select different texturetiles for different heights ?


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73618
Location: Israel
PostPosted: Mon, 13th Apr 2009 21:35    Post subject:
Well, I assume you could texture the model the same way I texture my terrain from height map. The idea is to have a smooth transition from height level to height level. The easiest way to achieve that is using linear functions that take height data and give something like this:

You then use these functions as weights for each texture.

You should use more levels, of course. Smile
Back to top
Page 1 of 2 All times are GMT + 1 Hour
NFOHump.com Forum Index - The Useless Void Goto page 1, 2  Next
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group