It is currently Wed Jun 19, 2013 9:51 am



Reply to topic  [ 30 posts ] 
 Getting S3D Support for older DX Games?? 
Author Message
Golden Eyed Wiseman! (or woman!)
User avatar

Joined: Sat Jan 09, 2010 2:06 pm
Posts: 1899
Location: Perpignan, France
I don't think YouTube should be a valuable source for learning C++ programming, text tutorials are more appropriate. Thinking in C++ by Eckel should give you a good general overview of the language as Cyber said.

Since you seem to have a particular project in head, I think you should try to start from an existing codebase similar to what you want to do like GLDirect (which is C and not C++) and try to understand it and/or learn Direct3D programming (following http://www.codeproject.com/KB/directx/d3d10.aspx or http://www.drunkenhyena.com/cgi-bin/directx.pl for example). For C++ tutorials you can have a look here : http://www.cplusplus.com/doc/tutorial/ or here : http://www.cprogramming.com/tutorial.html

Btw, what were the DX6/7 games that you wanted to get to work in S3D ?


Thu Jun 30, 2011 9:57 am
Profile WWW
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 461
Location: 3rd Stone from the Sun
Well the Main Simulation I would like to get converted is Janes F-18, which is Dx7 made back in 1999..
I would also like to recode dx7 to dx9 to get a higher rez and Triplescreen mode running. It works now in triplescreen but only at 640x480 per screen so that is 1920x480 in triple screen rez :(.

Also there was a wideview pit made for the game and when in triplescreen and you select the FLIR in the middle MDI the View on the pit gets Zoomed in and ruins the triplescreen effect..

So I would like to run at a higher rez and that would need a ltr version of Dx plus the bonus of that is that S3D should work aas well so I would be killing 2 birds with one stone per say..

here area few screenshots of JF-18 in triplescreen mode..:

Image
By the_nephilim at 2011-06-24






Image
By the_nephilim at 2011-06-25






Image
By the_nephilim at 2011-06-25


Plus as a bonus well no OFFICAIL word but the Source code may have been aquired for this Simulation which as you know means the sky is the limit if true.. Hopefully they have gotten the Source code and someone with more knowledge then myself would want to do something similar with DX version..

_________________
Intel i5 3570K @ 4.1ghz / Asus P8 Z68-V Gen3 / Corsair XMS 8gb / eVGA 660 SC GTX / Rocketfish 7.1 SC / 3 - Sharp XR 10XL Projectors / 3 -45" Screen's w/Screen Goo / nVidia 3D Vision / HOTAS Cougar / Thrustmaster MFD's


Thu Jun 30, 2011 5:49 pm
Profile
Golden Eyed Wiseman! (or woman!)
User avatar

Joined: Sat Jan 09, 2010 2:06 pm
Posts: 1899
Location: Perpignan, France
By doing a little Google search it seems you can change the default resolutions by modifying the F18.exe file with an hexadecimal editor. You can have a look here for a start :
http://simhq.com/forum/ubbthreads.php/t ... en_Re.html


Thu Jun 30, 2011 7:19 pm
Profile WWW
Cross Eyed!
User avatar

Joined: Sat Aug 21, 2010 10:34 pm
Posts: 147
Fredz wrote:
By doing a little Google search it seems you can change the default resolutions by modifying the F18.exe file with an hexadecimal editor. You can have a look here for a start :
http://simhq.com/forum/ubbthreads.php/t ... en_Re.html


Problem is DX7 has a hard limitation of 2048 maximum pixel width. To get wider, the client would have to be rewritten in DX9.

_________________
S3D Multi-projector Gaming System:
Intel i7 930, EVGA E762 4-Way motherboard, NVIDIA GTX470 Tri-SLI, 3x Optoma GT720 projectors, 180-degree circular screen, NVIDIA 3D Vision Kit, NTHUSIM Plus 3.2, Windows 7 Pro 64


Thu Jun 30, 2011 7:21 pm
Profile
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 461
Location: 3rd Stone from the Sun
tyes TSH already modified the .exe and we have a bunch of new rez's. I need to get a 3072x768 rez and can only be done by recoding the old Dx7 code to Dx9 or higher..

thnx for the link tho ;)

http://tsh.war-fighters.net/

_________________
Intel i5 3570K @ 4.1ghz / Asus P8 Z68-V Gen3 / Corsair XMS 8gb / eVGA 660 SC GTX / Rocketfish 7.1 SC / 3 - Sharp XR 10XL Projectors / 3 -45" Screen's w/Screen Goo / nVidia 3D Vision / HOTAS Cougar / Thrustmaster MFD's


Thu Jun 30, 2011 7:32 pm
Profile
Golden Eyed Wiseman! (or woman!)
User avatar

Joined: Sat Jan 09, 2010 2:06 pm
Posts: 1899
Location: Perpignan, France
Did you try with DirectX Tweaker ? It seems this software is able to convert DX7 calls to DX9 calls.

You can find an extremely interesting discussion with the author of DirectX Tweaker trying to make Janes work correctly here (63 pages long though) :
http://simhq.com/forum/ubbthreads.php/t ... Post371517


Thu Jun 30, 2011 7:57 pm
Profile WWW
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 461
Location: 3rd Stone from the Sun
I tried messing with the DX Tweaker they have that incorporated into the TSH Patch.. it seemed to have no effect on enabling S3D..

will look at that thread thos thnx..

_________________
Intel i5 3570K @ 4.1ghz / Asus P8 Z68-V Gen3 / Corsair XMS 8gb / eVGA 660 SC GTX / Rocketfish 7.1 SC / 3 - Sharp XR 10XL Projectors / 3 -45" Screen's w/Screen Goo / nVidia 3D Vision / HOTAS Cougar / Thrustmaster MFD's


Thu Jun 30, 2011 8:37 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 10155
A C++ book I'm reading now seems to be pretty good, and doesn't assume you have prior programming knowledge. Its called "C++ Primer Plus (5th Edition)" By Stephen Prata.

_________________
Image


Sat Jul 02, 2011 11:43 am
Profile
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 461
Location: 3rd Stone from the Sun
I will look into that book as well but had already bought this one "Programming: Principles and Practice Using C++" should be here by the end of the week.

Cybereality are you also learning how to program??

_________________
Intel i5 3570K @ 4.1ghz / Asus P8 Z68-V Gen3 / Corsair XMS 8gb / eVGA 660 SC GTX / Rocketfish 7.1 SC / 3 - Sharp XR 10XL Projectors / 3 -45" Screen's w/Screen Goo / nVidia 3D Vision / HOTAS Cougar / Thrustmaster MFD's


Sun Jul 03, 2011 7:30 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 10155
The_Nephilim wrote:
Cybereality are you also learning how to program??

Not exactly. I've been programming for about 15 years, but I like to read programming books so I'm always on top of my game.

_________________
Image


Sun Jul 03, 2011 10:18 pm
Profile
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 461
Location: 3rd Stone from the Sun
ok cool did not know that.. So would it be ok for me to pick your brain ?? ;)

_________________
Intel i5 3570K @ 4.1ghz / Asus P8 Z68-V Gen3 / Corsair XMS 8gb / eVGA 660 SC GTX / Rocketfish 7.1 SC / 3 - Sharp XR 10XL Projectors / 3 -45" Screen's w/Screen Goo / nVidia 3D Vision / HOTAS Cougar / Thrustmaster MFD's


Sun Jul 03, 2011 11:35 pm
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 10155
The_Nephilim wrote:
So would it be ok for me to pick your brain ?? ;)

Sure, thats why I'm here.

_________________
Image


Mon Jul 04, 2011 7:48 am
Profile
Sharp Eyed Eagle!
User avatar

Joined: Sat Dec 22, 2007 3:38 am
Posts: 461
Location: 3rd Stone from the Sun
hey have you made any games or some sort of programs?? I would like to hear about them or get a chance to use them ;) and plus get too see the code if that would be ok..


I found the code for a few games like Quake 3 and EECH and another that is good stuff actually getting to see the code..

I also wrote and uploaded my first distributable program abit a basic program I thought it was cool. If you wanna check it out I can ul it to fileshack or something if you want..

Also I ordered the book and I am still waiting for it to get delivered so I can get back to learning programming.

So what do you think is the most difficult in writing a Game or Program?? the math if a 3d game or maybe something else??

_________________
Intel i5 3570K @ 4.1ghz / Asus P8 Z68-V Gen3 / Corsair XMS 8gb / eVGA 660 SC GTX / Rocketfish 7.1 SC / 3 - Sharp XR 10XL Projectors / 3 -45" Screen's w/Screen Goo / nVidia 3D Vision / HOTAS Cougar / Thrustmaster MFD's


Sun Jul 10, 2011 9:53 am
Profile
3D Angel Eyes (Moderator)
User avatar

Joined: Sat Apr 12, 2008 8:18 pm
Posts: 10155
Yes, I have made many games but they have been mostly 2D Flash games. Its client work, so I can't share the code or anything. Here is one of them, though:
http://games.adultswim.com/orphan-feast ... -game.html

Looking at the code for Quake3 is good so you can see how massive an application can get, but it will be hard to learn much from that if you don't already have a solid foundation. So you want to make sure you understand the language first. I suggesting reading a book or two, and then trying to make some simple applications. At first just do console (command-line) applications before you get into GUI stuff. A good starting point is a "guess the number" kind of game. In this the computer picks a random number (lets say between 1 and 500) and you have a certain amount of tries to guess it. If you are wrong, the computer will tell you if the number is too big or too small. You could also try building a simple calculator. Things like that to start with (some books may do this as part of the lessons). After you are comfortable with that, then you can try some visual games, like pong or tic-tac-toe.

The most difficult part of creating a game or application, for me at least, is the framework or architecture. Creating individual functions or algorithms usually isn't too hard because you can look up formulas and things like that on the internet. But the structure of the program, what glues everything together, is usually more difficult to write and can be unique for each project. I mean, you can probably get something working quickly, but if it is not designed correctly you end up spending most of your time trying to patch it together to add new features or fix bugs. But when you are starting out, this will probably not be the biggest concern as you will likely just want to see something work.

_________________
Image


Sun Jul 10, 2011 12:15 pm
Profile
Golden Eyed Wiseman! (or woman!)
User avatar

Joined: Sat Jan 09, 2010 2:06 pm
Posts: 1899
Location: Perpignan, France
I pretty much agree with Cybereality, the most difficult part is the architecture when trying to program games. You can learn a lot of things about this in the book "Programming Game AI by Example" by Mat Buckland. There are also a lot of resources about this on the Web, you'll need to learn higher level concepts like finite state machines and MVC architecture for example. Learning some design patterns along with C++ should be quite helpful too.


Wed Jul 13, 2011 12:19 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 30 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.