Page 11 of 31 FirstFirst ... 89101112131421 ... LastLast
Results 401 to 440 of 1219

Thread: General DoomSharp() Discussion

  1. #401
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: DoomSharp

    Quote Originally Posted by kleinma
    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
    Haha. This is Botmans Old website, where he puts the comments from the Half-Life 1 SDK. I thought it had been taken down, but anyway, its still here. That used to be a very good site for Half-Life programming (not hacks, but bot AI, MOD making, etc).

    Others:
    Code:
    //No platform specific code in vgui\lib-src\vgui dir. Code in vgui\lib-src\vgui should 
    //only include from vgui\include or standard C includes. ie, if I see windows.h included
    //anywhere but vgui\lib-src\win32 I will hunt you down and kill you. Don't give me any crap
    //that mfc is platform inspecific.
    utils\vgui\include\vgui.h (line 24-27)
    
    // why does this work?
    dlls\controller.cpp (line 556)
    
    // this is the most hacked, evil, bastardized thing I've ever seen. kjb
    dlls\doors.cpp (line 744)
    
    // CheckRangeAttack1  - drop a cap in their ass
    dlls\hassassin.cpp (line 653)
    
    // UNDONE: blah, this is bad, we should use a stack but I'm too lazy to code one.
    dlls\monsters.cpp (line 1178)
    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #402

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Note this is devastating. What are we going to do?

    I wish you hadn't found that.
    I don't live here any more.

  3. #403

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    I've added a post to that thread anyway, I've asked if that code would be compatible with drawing quads. For saying its a fast algorithm I can see MANY places where simple optimisations could be made. If I could be arsed I could probably increase that guy's frame rate by abour 10 %.

    Anyway. Lets persevere as we have been doing. This is Wossy's and Notes project and I'm damned if anyone is going to come a long and make me quit it when we've come this far. If its any consolation (to me mostly) that guy comes from cambridge, so he's probably some kind of almighty math entity embodied on earth in human form.

    I'm determined not to be put off by this.
    I don't live here any more.

  4. #404

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Further thoughts: (lets call that other thing you showed me "X")

    1. X seems to only be capable of rendering a single object against a stationary background. The renderable data is always known, there is no BSP involved.

    2. We havent used any unsafe code yet, and X uses loads.

    3. Our current texture storage is very inefficient.

    4. Mr X seems to be a walking brain and we are just two alcoholics.

    Don't worry about it, it's all good baby!
    I don't live here any more.

  5. #405
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: DoomSharp

    [QUOTE=wossname]
    4. Mr X seems to be a walking brain and we are just two alcoholics.
    [QUOTE]

    aren't we all?

    hey, what is this X? i assume a program which draws an object(mesh) incredibly fast?

  6. #406

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Our first map is done!!

    Check out this little beauty!!!!

    Took about 20 minutes to draw up, thanks to the new user friendly features
    Attached Images Attached Images  
    Attached Files Attached Files
    I don't live here any more.

  7. #407

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    [QUOTE=Phill64][QUOTE=wossname]
    4. Mr X seems to be a walking brain and we are just two alcoholics.

    aren't we all?

    hey, what is this X? i assume a program which draws an object(mesh) incredibly fast?
    Would that it were so simple.

  8. #408
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by wossname
    Note this is devastating. What are we going to do?

    I wish you hadn't found that.

    We? I am going to keep on doing the things I am doing...it is YOU that have to redo stuff...:D:D:


    - ØØ -

  9. #409
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by wossname
    Anyway. Lets persevere as we have been doing. This is Wossy's and Notes project and I'm damned if anyone is going to come a long and make me quit it when we've come this far. If its any consolation (to me mostly) that guy comes from cambridge, so he's probably some kind of almighty math entity embodied on earth in human form.

    I'm determined not to be put off by this.

    Now THATs the attitude....we might even learn something from this. And that isn't BAD you know.....maybe even something for you to write about in your book....'


    - ØØ -

  10. #410
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by wossname
    Further thoughts: (lets call that other thing you showed me "X")

    !
    Done...


    Quote Originally Posted by wossname
    1. X seems to only be capable of rendering a single object against a stationary background. The renderable data is always known, there is no BSP involved.

    !
    Correct...no culling, no transformation, and a static camera ALWAYS 90 deg on the surface.


    Quote Originally Posted by wossname
    2. We havent used any unsafe code yet, and X uses loads.

    !
    Yeah, his whole rendering is unsafe. It is the rest that is managed. And that part is pretty much like ours, the vector class and so on.


    Quote Originally Posted by wossname
    3. Our current texture storage is very inefficient.
    !
    He is getting us a bit here, but it is much easier for him since he doesn't have perspective at all. It would be much easier without perspecitve.

    Quote Originally Posted by wossname
    4. Mr X seems to be a walking brain and we are just two alcoholics.
    !
    How did you know that I have just been drinking?


    Quote Originally Posted by wossname
    Don't worry about it, it's all good baby!
    I love you too..


    - ØØ -

  11. #411
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    [QUOTE=Phill64][QUOTE=wossname]
    4. Mr X seems to be a walking brain and we are just two alcoholics.

    aren't we all?

    hey, what is this X? i assume a program which draws an object(mesh) incredibly fast?


    It draws something....kind of fake 3D stuff....hard to define..


    - ØØ -

  12. #412
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by wossname
    Our first map is done!!

    Check out this little beauty!!!!

    Took about 20 minutes to draw up, thanks to the new user friendly features

    So at least it took less time then for me to walk home from work tonight...freeking buss left me in the middle of no where...grrrrrrr....

    Looks really good. So are you able to draw that stuff too? Or...'



    - ØØ -

  13. #413
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: DoomSharp

    Quote Originally Posted by NoteMe
    It draws something....kind of fake 3D stuff....hard to define..


    - ØØ -
    care to give me a link? is it Iso 3d ?

  14. #414
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    OK...due to my Hard drive crashing on me...I have lost about 5000 files with my code and assets from the last 12 years...The newest backup that is working is in Norway.

    The good thing is that this doesn't affect this project too much, except that more or less all my C# and Managed DX code is ruined....and with that the optimized camera class is also gone.....so I will be set back for a few days weeks years....sorry...


    - ØØ -

  15. #415

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Lets talk about something else

    Like this. I finally saved and loaded a map into the game!! Naturally it won't draw z-order properly because we don't have a BSP in place at the moment.

    This is a MAJOR step forward, rejoice!
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by wossname; Aug 27th, 2005 at 11:23 AM.
    I don't live here any more.

  16. #416
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Hehehe...Z-ordering is a ***** hehe......lovely....great...love you times two..

    - ØØ -

  17. #417
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: DoomSharp

    You guys really are doing something special here. Perhaps when you aproach the final stages, you would consider creating a multiplayer ability so VBF'ers can have a go at each other

    *bows*
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  18. #418
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    I think me and wØØsy have to start limit this project in one or an other direction...

    wØØsy, next time you are online and you see me..please contact me so we can find out how long we actualy want to go with this...


    - ØØ -

  19. #419
    Member RapchikProgrammer's Avatar
    Join Date
    Jul 2005
    Location
    Hyderabad, Pakistan
    Posts
    61

    Re: DoomSharp

    I saw the latest screen shot and its very good. I myself am doing research as i am trying to build a 3d engine myself. So i know how difficult it is to even create such results without directx/opengl. So very good going by you guys. And BTW when u stop doing this project please do upload the sourcecode that someone else continues it.
    Last edited by RapchikProgrammer; Aug 27th, 2005 at 05:48 PM.

  20. #420
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Off course we will. We have no secrets...except that we do write sloppy code on our way to the goal...


    - ØØ -

  21. #421

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Behold... The first working map rendered in 3d in DoomSharp. This is history right here.

    * Wo don't have BSP yet but I have simply drawn EVERYTHING on the map starting far away and coming closer, thus this is an accurate rendering from this angle!!!

    This is phill's small map and the camera is looking north from the south-west corner of the map.

    You can clearly see all the corridors leading off the main corridor.

    I believe the expression "wo0o0o0t!!11!1" is in order.

    (also note the framerate, even without any form of frustrum culling!!)
    Attached Images Attached Images  
    I don't live here any more.

  22. #422
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Here is my problem. I have this class:

    [Removed because of frustration]

    Now I will make one instance of this whole class (MyClass). Then in the static constructor, the static member object is set to null. Now how can I instansiate it now? Can MyClass have a member function? Does it have to be static? And so on...how do I do it...I keep getting errors, but I am not sure if it is because it is static, or if it is something else...


    - ØØ -
    Last edited by NoteMe; Sep 15th, 2005 at 06:39 AM.

  23. #423
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    wØØsy just gave me this screenshot...it made me nearly fall off my chair...it is sooo beautifull...still some render artifacts to iron out..but this is seriously starting too look like something..






    - ØØ -
    Last edited by NoteMe; Sep 15th, 2005 at 07:42 AM.

  24. #424
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    And just as a note for me...this is the same map, but south east corner, looking up:






    - ØØ -
    Last edited by NoteMe; Sep 15th, 2005 at 07:43 AM.

  25. #425
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: DoomSharp

    Quote Originally Posted by wossname
    I believe the expression "wo0o0o0t!!11!1" is in order.
    LOL!11!1!!!1!

    Added that to my sig.

    You guys continue to amaze me. That's some seriously good work. I'm going to go over my backups of old sites I used to visit. See if I can't brush up on my old knowledge and give you guys some suggestions.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  26. #426
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    Hi Guys,

    This all sounds very interesting... can I help? I'm no good with graphics, but I'm good with web and files and thinging outside the irregularly formed collection of parallelograms...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  27. #427
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    Quote Originally Posted by NoteMe
    Here is my problem. I have this class:

    Code:
    public class MyClass{
    		
    	public static MyOtherClass myObject;
    	private int m_pres;
    	private bool m_funny;
    
    	public MyClass(){
    		m_pres = 0;
    		m_funny = false;
    	}
    
    	public static MyClass(){
    		myObject = null;
    	}
    
    }
    Now I will make one instance of this whole class (MyClass). Then in the static constructor, the static member object is set to null. Now how can I instansiate it now? Can MyClass have a member function? Does it have to be static? And so on...how do I do it...I keep getting errors, but I am not sure if it is because it is static, or if it is something else...


    - ØØ -

    .... why?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  28. #428

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Chemical:

    Heheh, thanks dude. But all is not so rosy at D#HQ. (actually thats not true we are both bouncing around like excited 6 year olds on christmas eve )

    The camera doesn't like to look south for some reason it makes the drawing routines puke. I continue to make no progress with improving rendering speed although i'm pleased with the unculled framerate of 6 FPS for the above views. I need to design a decent unsafe quad blitter algorithm.

    I doubt if i'll be able to beat the built-in GDI+ isometric method we've been using thus far. I have a few things left to try though, such as converting each texture into an integer array. That will require a significant redesign of the rendering engine though.

    This is sooooo much fun though. Shame we're not getting paid for it.

    If anyone rich is reading this then me and Note are willing to sell out
    Last edited by wossname; Aug 28th, 2005 at 10:36 AM.
    I don't live here any more.

  29. #429

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Don't worry about it.

    You any good with 2D geometry?
    I don't live here any more.

  30. #430
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    I've a couple of 3D design books here (managed directx) and they've loads in them about performance etc...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  31. #431
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    Quote Originally Posted by wossname
    Don't worry about it.

    You any good with 2D geometry?
    I was good with Maths in school let's put it that way...
    Honours Physics, Chemistry, Maths and Applied Maths....
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  32. #432

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    Quote Originally Posted by plenderj
    I was good with Maths in school let's put it that way...
    Honours Physics, Chemistry, Maths and Applied Maths....
    We'll you'll just have to try your best *smartarse*

    I need to know the fastest way to calculate the area of a (random) quadrilateral. Such as any of these. All I know is the (x,y) coords of the 4 corners, they will be screen coordinates and I need to know a decent estimate of the number of pixels in each quad.

    I know one method of calculating an n-sided polygon's area but I was wondering if theree is a fast way especially for quads.

    Preferably no trig if possible.
    Attached Images Attached Images  
    I don't live here any more.

  33. #433
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    Have you considered caching, and how accurate does the answer have to be?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  34. #434
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by plenderj
    .... why?

    Long storry...I fixed it though.

    Reason for static:
    - Because the object is used all over the place, and I am avoiding an indirect level to gain speed. Ugly hack to gain speed.

    Reason for not installing it in the destructor:
    - Because when MyClass is initialized you don't have the propper info to fill the MyOtherClass with info. So it is impossible to call it's instructor.


    But it is all fixed now.. Added a private static function to take care of it...


    - ØØ -

  35. #435
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    woss: have you tried simply summing the areas of the component triangles? I read that all your quads are composed of triangles...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  36. #436

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: DoomSharp

    We can't cache because they change all the time. I'd be happy with 2% error above the actual area value, but the result must not be less than the real area because we'd get gaps in our images.

    Area as a number of pixels is what we want really.
    I don't live here any more.

  37. #437
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by plenderj
    I've a couple of 3D design books here (managed directx) and they've loads in them about performance etc...

    Tom Miller?

  38. #438
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    Nahh I meant cache the resultant area.
    e.g.: Cache[45,23,95,104] = 385;
    where 45,23,95,104 are the co-ords of corners...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  39. #439
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: DoomSharp

    Quote Originally Posted by NoteMe
    Tom Miller?
    Yep and Lynn T Harrison
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  40. #440
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: DoomSharp

    Quote Originally Posted by plenderj
    Yep and Lynn T Harrison

    I was thinking about buying that book...but he got into a fight with a LOT of the readers since he was unable to update the code in the book to the new framework...he was nearly killed in a thread on Apress's forum. The thread was something like 28 pages long, everyone bitching him.....so I bought something else in stead..

    - ØØ -

Page 11 of 31 FirstFirst ... 89101112131421 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width