Hmmmm...not good. WIll have a look at it when I can run the whole project again..:)...but for now it looks at least not that bad..:) Proud of you..:)
- ØØ -
Printable View
Hmmmm...not good. WIll have a look at it when I can run the whole project again..:)...but for now it looks at least not that bad..:) Proud of you..:)
- ØØ -
I merged the extra thread you made wossy, now they're all mixed up :)
Yeah my code is at that "lets hard-code this bit for the time being and make it dynamic later on when it works" stage :DQuote:
Originally Posted by NoteMe
I did sort out all the namespaces before I sent it to Note so we should be fairly well structuresd in general. We currently have 3 projects in DoomSharp:
1: The Game
2: The Map Editor
3: The math stuff which is referenced by both Projects 1 and 2 because they both use some of the same classes.
I'm currently working on the editor and once I managed to match up the interface to the map class we'll be ready to start loading different maps at runtime by selecting them in a file dialog.
I'll be storing all the textures within the map files themselves, this will increase the file size of course but it will make things 10 times simpler and more stable, it'll decrease runtime file dependancy too. I'm predicting complex maps to be around 2 megabytes on disc.
I'll park my sig here for a few days or weeks..:)
[ Useless_threads: Den_Nordiske_Tråden | The_Spelling_thread | The_Quote_Thread ]
[ My Tutorials: Moving _bject_with_KeyPress | Simple_Game_Loop | PictureBox_Snake_Game | BitBlt_Snake_Game | Loading_Objects_@_Runtime ]
[ My Sample code: Acrobat _eader_v.6_Splash_screen_[C++] | Western_Game_1.0_[C++_&_OpenGL_&_Glut_&_Aux] | Defender_[VB_&_DDraw_7] | Snake_[VB_&_DDraw _]
| Space_shooter_game_[VB_&_DDraw_7] | vBulletin_Fx_Extension ]Did anyone help you.
Please rate their post. :thumb:
Or wait a sec...just going to dump this one here..:)
http://noteme.com/doomsharp/sig/doomsharp.jpg
HEY!! That's the answer!!!, it looks way better when we render at 100x75 pixels resolution :D
:lol:
DoomSharp, the worlds smallest FPS.
Quote:
Originally Posted by wossname
And the solution...buy a bigger screen...:)...or use DX... :rolleyes:...hehe....I loved your comment about DX and JR in CC...:D
hehhehe :D
I'm going to retrofit my desktop with Hercules 2 bit graphic adaptor. Feel the 4 color power!!
well you could try rendering at half or 1.5 of the size of the screen and then use GDI+ to display it larger, depending how much time that takes, be a bit fuzzy though :D
I hope you were joking about the small screen thing :D
It would look rubbish and it would be even slower to expand the image at runtime.Quote:
Originally Posted by Phill64
You don't like the idea?? :lol: Damn.Quote:
Originally Posted by Phill64
Mental notes - wøssy...
Class DoomSharpMap:
- Contains a 25x25 MapCube array (unused elements will remain null to save space in file (wouldn't be much anyway);
- Contains all texture bitmaps, could be a mixture of image sizes and color depths.
- Provides a single method for extracting all wallparts from all the cubes in one go (returns an array of wallparts in no particular order) this will be called one time only probably by the 3d engine at startup. The textures will be extracted in a similar way and passed to TexEng.
Map Editor program:
- All map data will remain within the DoomSharpMap object at all times.
- Previews of each cube will be available in the editor in 3D.
Ideas:
- drag & drop to replicate similar cubes (make corridors faster to design, use .Clone() to copy them, may need to implement ICloneable)
- rotate a cube by 90 degrees? (around the Y axis only, could be done simply by rotating the values in the last 4 elements of texture index array :D :D :D)
- autosave feature? (to a separate temp file)Code:THINKING:
To rotate a cube north-->west (90 degrees anti-clock (shift + left click)) do this:
int temp = tex[2];
tex[2] = tex[3];
tex[3] = tex[4];
tex[4] = tex[5];
tex[5] = temp;
To rotate the other way clockwise (shift + right click):
int temp = tex[5];
tex[5] = tex[4];
tex[4] = tex[3];
tex[3] = tex[2];
tex[2] = temp;
not sure if u guys know this (i didnt read through all 7 pages of posts) but if it helps for any reference, they did release original doom source code. You can download it here, it may help with some of the logic if you get stuck...
http://www.3ddownloads.com/showfile.php3?file_id=7430
I'll take a look tonight. Doubt I'll understand these hallowed scriptures though. Rumour has it that the Doom Source was originally carved on 2 stone tablets on Mt Sinai.
Yeah, Both Doom 1 and 2 code is released. And Quake 1, 2 and 3 too. But it is hell to try to find anything in there....not commented at all, and they are hacking eveything they can hack..:D
- ØØ -
yeah i have to imagine lots of games get hacks here and there just to "make stuff work" I found a website that a guy had posted a lot of the comments from the original half-life source code that was released to the MOD community. The comments were funny as hell and even displayed the primitive AI in the game (although to credit it, it is like 7-8 years old now)
comments were like
//this is the ugliest hack I have ever seen, how does this even work?
or
//enemy grunts, looks left, fires once, ducks, fires 2 more times
I saw a bit of code from some clone of Blood and one of the coder's had put
//If image load failed then don't animate NPC use static image only.
Meaning that the enemies would just slide towards you like ducks in a shooting gallery :lol: That must have looked hilarious.
And:
//if shotgun pattern is too slow to calculate then just kill the enemy anyway
...so if my machine is really slow then I only need one shotgun shell per monster :D
Why is there a TIE fighter flying around in your maze?
I like it though. :)
i think that's the gun sight/cursor
Hehe, yeah it does look like that :DQuote:
Originally Posted by zaza
OK, sneak preview of the map editor...
The blue line shows the dragdrop from the listview into the small black pictureboxes, this assigns that particular texture to that side of the current cube. The letters on the pictureboxes show you which wallpart on the cube we are talking about (C=ceiling, f=floor, NESW = north, east, south, west).
The 3d preview isn't up yet, maybe tomorrow. Also nothing else currently works, not even the dragdrop but I need to research that. I think kleinma has done some dragdrop on VBF somewhere, if anyone has a link I'd be much obliged.
Hmm, its a bit annoying that our map editor looks better than the game itself :D :lol:
aren't you going to need a 3d map editor? that looks a little more like a 2d tile based editor..., not that I am an expert on map making, but I have used the CS:S/HL2 hammer program, and while the top down view looks sort of like that, they also have a side view, and a 3d view, how else would you specify object heights or build stairs, etc...
Whoa there. This is not Quake 5 :D
All our maps will be on flat ground and all the cubes will be the same shape and size (currently 2 metres on a side but can be scaled easily). Truth be told this will be more like Castle Wolfenstein than Doom, map-wise. Orthogonal rooms and corridors. The 3d area will let you look at a single cube in perspective in order to get the decor to [camp]coordinate[/camp] (make sure the curtains match the wallpaper so to speak).
Kleinma, do you know how to drag and drop from a listview to a picturebox? (I need to drag the listview's SelectedIndex value as an integer into the picturebox so I can load the corresponding image.
I need some sleep. BB tomorrow.
Well, Doom wasn't really 3D anyway. It was just a 2D map in which the various areas had their heights offset to include stairs and such things.
Maybe you could make a game based on making maps? :) I remember I had one game for my BBCmicro which involved doing just that. Hours of fun...
sure ill work up an example for u in a little bit...
lol i understand its not supposed to be super advanced or anything.. but in that case you will have no objects... even Wolfenstein had tables and beds and things that were built into the map... not saying you need to have it.. just sort of the thing you would need to think about before coding the engine..
Quote:
Originally Posted by wossname
Don't flatter your self now...;)
Quote:
Originally Posted by kleinma
Just wait untill you see our billboards...;)
http://www.vbforums.com/
PS: I have (didn't mean too) optimized the camera class 2 and a half inch..:)...
- ØØ -
here is an example for u woss
Uhh, yes it was. It had overhangs, freefloating gantries and windows.Quote:
Originally Posted by zaza
Did doom have cowboys in it? I can't remember any. :D
Hehehe..no..but it is the only 3D game I have ever made with billboards...:D..Quote:
Originally Posted by wossname
[Edit]BTW your post was the 11.111post in this section...:eek:
Hmm, which version your old one or my new one? Does this mean you finally have C# 2005?Quote:
Originally Posted by NoteMe
I need to know where you're at.
I'll update you with my latest version as soon as I finish the editor.
PS. We won't have any problems inserting special objects into the maps, anything that can be made out of wallparts can be used. This will be a job for MUCH later though.
No..:) And I can't use that at work anyway...and I spend most of my time at work...Quote:
Originally Posted by wossname
I am here..:)...and no it was the old version...:eek:...belive me, I can fix it...the code is 1/3 of the length too...;)Quote:
Originally Posted by wossname
You better...not that it helps though...:rolleyes:Quote:
Originally Posted by wossname
- ØØ -
Install it at home, I'm doing it all at home now, they have actually started giving me work to do at the office, can you imagine? :rolleyes: :lol:
We can't keep working on 2 different frameworks here.
You never know we might get it finished in time for the product release of VS 2005!
Bill might notice us :D ;)
£$$£$£$£$£$££$£$££
I am barely at home though. Usualy 2 or less hours each day. And I do eat and do other stuff during those two hours..:)Quote:
Originally Posted by wossname
Quote:
Originally Posted by wossname
Yeah, move to mono..:D
Quote:
Originally Posted by wossname
When is the release date?
- ØØ -
December I think. The book goes to press in Nov so it's after then. I'm too lazy to go to MS.com to find out.
Well stop it! You're just not committed to the project, food and sleep are for the weak. I haven't eaten solid food since we started, I've had my stomach replaced with a beer filter to capture all the nutrients.Quote:
Originally Posted by NoteMe
here the hell do you go the rest of the time? Pulling 90 hour weeks at CERN??
Quote:
Originally Posted by wossname
Usualy 11-16 hours days 6-7 days a week..:) much better here then in my appartment..:)
Quote:
Originally Posted by wossname
OK, well depends on how much stuff you want into it. But just the basic drawing should be done way before Dec..:)....before the MVP awards...:eek:..hehe..just kidding..:)
- ØØ -
W0o0t, I have done teh code to draw each cube on the editor map layout.
Orange tracks mean thats where the player can walk through, black lines indicate wallparts. The 2 red circles show that the central cube nas neither a floor or ceiling assigned to it (the upper circle meaning the ceiling of course).
I'll probably shade the floor with either a shrunken version of the chosen texture or just a plain grey color because the texture might make it hard to look at.
(*Transparent texture maybe?*)
If 2 adjacent cubes have a wall between then then we ned to tell both cubes that the wall is there, so it can be seen from both sides, the east side of the central cube on this image shows a double wall because the player is allowed to be on either side of that wall if he wants. (If we only had one wall then it would be invisible from one side due to anticlockwise culling).