Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOLY DAM!
#51
Quote:The 3d tut would be a series in QBCM. ;*)

1. Projection
2. Rotation
3. Camera
4. Polyfills
5. Culling
6. Optimizations
7. ????
Interesting... Btw, can't reveal 7 yet, something... special? Big Grin I'm going to read it when you have it. Btw, you're late, as L_O_J implied? Wink
Reply
#52
Quote:Wow! Thats pretty old. I guess then you should update. It does compile on allegro 4.1.11 but it doesnt run at all.
What do you mean "Old"? 4.03 is the last realased STABLE build of allegro, the 4.0.x are still in development, 4.1. branch is for WIPS and to test new features and bugs, 4.1.x dlls are not neccesarily comptible, and is why it is reccommended to ship software with 4.0.x dll's, unless the new branch has some bug fix you desperately need, and in that case, its reccommended to static link.
and if 4.1.11 is already old, so one could argue(although i doubt very much anything has changed) that the warning have been fixed :p Anywas my point is 4.03 is by no means old, or a need to upgrade. I develop on 4.0 and becuase 4.0.x dlls are compatible i can just replace the dll's and get instant bug fixes.

basically, 4.0.x forward compitable, 4.1.x not neccesirly forward comptible.
b]Hard Rock[/b]
[The Stars Dev Company] [Metal Qb flopped] [The Terror]
Stop Double Posts!
Whats better? HTML or Variables?
Reply
#53
Quote:WELL its about time you finally made your promise ( and it take about 6 month ???? ) anyway good for you ( why everything is always good for you rel :???: :roll: :o :lol: :bounce:

LOL . I'm always late. ;*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#54
well, after 3 days, i finally got the guy's code to compile on my computer and made recent engine updates >D

heres a shot and download of the c++ engine

http://syn9.rpgdx.net/download/cgodemo2.zip

[Image: cgoshot1.jpg]
Reply
#55
Awesome, syn. How do you design the map geometry? Are you using any kind of map editor or are you using 3D Studio?

BTW, I can't run the demo. The allegromessage reads "Error setting Graphics mode!! Unsupported color depth" or something like that. I am running at 1024x768, 32 bits, on my NVide GeForce 4. What's the problem? I've tried switching to 16 bits, but it doesn't work either. What's your screen mode initialization routine?
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#56
weird, fling should answer that last question... im not sure

about the map, its a map editor and 3d tile editor i made in qb
Reply
#57
Now that the source code is available, I think you should give away this proggie as well. Maybe people would like to use your engine to code games.

About the C port, have you thought of porting it to openGl? There is some kinda useful gadget, AllegroGL, that let's you interface both libraries, so you can use OpenGL for 3D and Allegro for the rest. Really neat, and portable as well.

Porting it to OpenGL would allow 3D acceleration to be used, letting your engine to be playable in lower spec computers, which would be a neato thing.

EDIT:

I've downloaded the source code distro that Fling provided before (hadn't noticed it until now) and I see the source code for the screen initialization is this:

Code:
if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, 320, 200, 0, 0) != 0)
{
   set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
   allegro_message("Error setting graphics mode!\n%s\n", allegro_error);
   return(true);
}

This is what's causing problems. For the program to work in windowed mode, you should try all the colour depths available, 'cause you don't know if the user has his/her desktop in 8, 15, 16, 24 or 32 bits. The best way is doing something like this (taken from one proggie by me):

Code:
set_color_depth(32);
if(set_gfx_mode(GFX_AUTODETECT_WINDOWED,640,400,0,0)!=0)
{
   set_color_depth(24);
   if(set_gfx_mode(GFX_AUTODETECT_WINDOWED,640,400,0,0)!=0)
   {
      set_color_depth(16);
      if(set_gfx_mode(GFX_AUTODETECT_WINDOWED,640,400,0,0)!=0)
      {
         set_color_depth(15);
         if(set_gfx_mode(GFX_AUTODETECT_WINDOWED,640,400,0,0)!=0)
         {
            set_color_depth(8);
            if(set_gfx_mode(GFX_AUTODETECT_WINDOWED,640,400,0,0)!=0)
            {
               allegro_message("Can't init graphics window!");
               exit(-1);
            }
         }
      }
   }
}

Basicly, this code tries all the colour depths one by one. If none worked, it exits.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#58
Quote:heres a shot and download of the c++ engine

You used the "c" word.

Tongue
Reply
#59
Well, I downloaded the code and found nothing but nice C code. No OOP here, so no C++.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)