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).
That looks really good. Much better then I was first thinking about when I was thinking about the Map Editor..usualy I don't use much time on map editors. They rarely get used to much after the "release" anyway...but this is terriffic. Great job.
BTW I have 05 installed on this machine now...so I guess I can close down every running app on my Linux box afer hours at least a few days a week and then use this machine as a dev machine for D#...
- ØØ -
Thanks very much :)
And well done! I'll send you my latest stuff tonight, then you can edit my camera class with the optimisations you mentioned earlier and send the class back to me.
wossy did that drag drop work for you?
Not had chance to try it yet, I don't have the project with me at the moment, the above screeny was generated by some code I hacked together with fake classes.Quote:
Originally Posted by kleinma
For wossy's eyes only...
(nothing interesting just the code that draws the grid).
When are we getting the preview version?? ;)
There won't be one. Just a series of releases (and patches maybe) and of course lots of maps. :D
maps! i like maps!
map editors do so get used after the release, did i mention i like maps? i hope you load it with enough goodies for us to play with after you release a copy, perhaps the ability of custom enemies would be nice, since theyre only billboards :D
OK Phill, well volunteered, I want you to get MSPaint and do a rough sketch of a map layout that you want us to make. The only constraint is taht walls must run north/south or east/west. Doesn't have to be pretty or anything, just give it some sort of theme.
The maximum grid size is 25 by 25 (the screenshot above shows you a 3 by 3 grid just so you can get a good idea).
Get creative, rooms can be as big as you want, as long as everything fits inside the grid. You've got 24 hours. GO! :D
yeah ok, give me something different to do during slack time.
thought about doors yet?
Didnt take long, did up a quick one, should be alright for at least a first to start with, i marked a couple of things out where tings may go
Perfect!
We still need textures. We've got a few crappy ones but they dont follow any theme.
Quote:
Originally Posted by wossname
What?? When did my 500 lines worth of camera code YOUR class...**** on you..:D..I'll soon add a copyright to my Vector class to if you don't shut it..:)
BTW should I add the keyboard and mouse movement? Or do you want to do it? I think that is the only thing we need for the camera class to be 100 now...and that would be perfect when the map editor is Alpha...wouldn't it? So we could actualy walk around no matter if it takes 100sec to draw a frame or not...the BSP is going to take agaes to make anyway..:)...just saw that Humus (the guy that got a job in the 3D department at ATI half a year ago) gave up to find a bug in his BSP tree...I am sooooo not looking forward to this..:D
- ØØ -
Quote:
Originally Posted by Phill64
Nice...I patted your back for it...:)
- ØØ -
actually one mistake at the top left there, i forgot to 'bend' the wall, so ull have a paper thin wall there if you leave it how it is :D
Not sure if I see what you talking about...hmmm
BTW wØØsy...sith a map like that..."So much for your back face culling"..:D
I think he meant this
I thought I would see what wossy and noteme were "advertising" in their sigs and this looks top notch for using .net.
Where is JR? Hes always diss'n .net and promoting DX :D
Is the game going to be where you hunt down your boss? :lol: :thumb:
Yes, that's what iwas talking about kfc :D
robdog.. if they take my suggestion of custom enemies on maps.. then yes!!
What a good idea. Customize your enemies. You can make them people you hate or your boss etc. :thumb: When do I get my guns for this game? :lol:
OK OK this thread has moved fast in the last 3 hours :D
1. The issue that Smitty raises in post 296...is not an issue, its perfectly OK to have paper-thin walls, as long as the cubes on each side know they have textures there. This is OK and the design already takes care of it (a happy side-effect of culling).
2. Note, I didn't mean that Class camera is mine, I just meant my version of it, where I actually made it work :lol:
There is still a bug with the aspect ratio (it stretches sideways when it should not).
The copy I have, has been alterered slightly and it draws almost correctly. I'll send you my stuff shortly. I'd be obliged if you could modify my versions please because the engine works so far. Do what you like to it but note the differences in the math where I altered it. There are known bugs when the camera coords are (0,0,0) and several other integer numbers. I think there is a div-zero somewhere.
You'll need to change the default startup project before you use it though.
Any questions email me or MSN or whatever.
//########################
Rob, you're welcome to contribute if you have any ideas mate.
Phill, custom enemies are a possibility but i am only concerned with getting the map navigable at the moment. It will not be easy. its kicking my ass as it is. i am going to try Kleinma's dragdrop in a minute. after I email Note...
*busy busy busy*