Page 3 of 31 FirstFirst 12345613 ... LastLast
Results 81 to 120 of 1219

Thread: General DoomSharp() Discussion

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

    Re: DoomSharp

    Third forum...


    DEUTEX - http://www.teaser.fr/~amajorel/deutex/



  2. #82

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

    Re: DoomSharp

    all those links are dead.
    I don't live here any more.

  3. #83

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

    Re: DoomSharp

    Distance Darkening code finished

    The same 4 triangles as before but rendered as if they are different distances from the camera, the brightest one is right up near the camera, the next one is (0.3*scene depth) away, then (0.5*scene depth) away and the last very faint one is (0.8*scene depth) from the camera.

    Anything beyond that will be rendered with a grey polygon instead of the texture. Although I have not yet written that decision code yet.
    Attached Images Attached Images  
    I don't live here any more.

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

    Re: DoomSharp

    Quote Originally Posted by wossname
    all those links are dead.

    No way..what are you talking about...try this one...

    http://www.teaser.fr/~amajorel/deute....0.bin.dos.zip


    - ØØ -

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

    Re: DoomSharp

    Quote Originally Posted by wossname
    Distance Darkening code finished

    The same 4 triangles as before but rendered as if they are different distances from the camera, the brightest one is right up near the camera, the next one is (0.3*scene depth) away, then (0.5*scene depth) away and the last very faint one is (0.8*scene depth) from the camera.

    Anything beyond that will be rendered with a grey polygon instead of the texture. Although I have not yet written that decision code yet.

    ??? Isn't this just one wall part and one floor part? Made up of 4 triangles? Looks like shadow.....

  6. #86

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

    Re: DoomSharp

    I'm only using those same polygons because I can't be arsed to hardcode any more coordinates. Just imagine the darkest triangle is hundreds of metres away.

    Finished my LDPS algorithm (Long Distance Polygon Substitution). Instead of wasting time rendering far away textuers, just replace it with a polygon of similar brightness with regard to distance

    You should ignore the formation of the triangles because its not relevant at the moment, just that from left-to-right they are near-to-far. By altering a threshold we can radically speed up or slowdown the framerate depending on how much detail we want.

    Polygons draw a lot faster than textures...
    Attached Images Attached Images  
    I don't live here any more.

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

    Re: DoomSharp

    Ahha..so it is left to right..ok....goody....yeah, looks good...I havn't had the time to work to much on this today...I can't get my MySQL server to resopond and need to fix it...but I will stay an hour extra at work today since we have a football mach after hours...so I should get some time to start on the BSP tree..


    - ØØ -

  8. #88

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

    Re: DoomSharp

    I'm going to try to hardcode a short corridor in order to get this looking right.
    I don't live here any more.

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

    Re: DoomSharp

    Don't expect my function to calculate from World Space coordinates to Screen Space coordinates to be done any minute... I have at least no way to finnish that up before I go on my vacation in a week..


    - ØØ -

  10. #90

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

    Re: DoomSharp

    It should have a much higher priority than the BSP.
    I don't live here any more.

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

    Re: DoomSharp

    If you say so......done......booo.....**** on you....will start on it in a few..


    - ØØ -

  12. #92

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

    Re: DoomSharp

    You know it makes sense darling.

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

    Re: DoomSharp

    Need to find my math books then.....I can't remember this by hart at all.....I know I had it in my OpenGL book, but that one is left back in Norway.....W should have had Kedaman on the team, he live for stuff like this..


    - ØØ -

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

    Re: DoomSharp

    OK, I just found out that we need a Vector4 class too......grrrr...this is going to take for ever.....


    and I got this info out of the master..


    // THeory:
    // From world to screen: X=x/z+screenwidth/2 and Y=y/z+screenheight/2
    // But first from world to camera.
    // coordinates = camera matrix * world coordinate
    // Then 2D projection

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

    Re: DoomSharp

    An other thing. If you look at the picture I have attached. Lets say the quad in the middle is the screen. And I tell you to draw a quad where two of the vertices is P7 and P8 on this picture. What will happen then? Can you do that? Or do you have to change the screen coordinates? And if so, will that be a big problem, like getting the right perspective?
    Attached Images Attached Images  

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

    Re: DoomSharp

    Don't read this..I just have to post it here since I am in Windows now, and I need it in Linux tomorrow....
    --------------------------
    We need to transform from the world coordinates to the eye coordinates
    The eye coordinate system is specified by:
    View reference point (VRP)
    (VRPx, VRPy, VRPz)
    Direction of the axes: eye coordinate system
    U = (ux, uy, uz)
    V = (vx, vy, vz)
    N = (nx, ny, nz)
    ---------------------------------
    There are two steps in the transformation (in order)
    -Translation
    -Rotation
    ---------------------------------
    Translate World Origin to VRP


    ---------------------------------
    Rotate World X, Y, Z to the Eye coordinate system u, v, n, also known as the View Reference Coordinate system


    ---------------------------------
    - Center of camera (x, y, z) : 3 parameters
    - Direction of pointing (q,j) : 2 parameters
    - Camera tilt (w) : 1 parameter
    - Area of film (w, h) : 2 parameters
    - Focus (f) : 1 parameter
    ----------------------------------
    - Center of camera (x, y, z) : View Reference Point (VRP)
    - Direction of pointing (q,j) : View Plane Normal (VPN)
    - Camera tilt (w) : View Up (VUP)
    - Area of film (w, h) : Aspect Ratio (w/h), Field of view (fov)
    - Focus (f) : Will consider later
    ----------------------------------
    Eye:
    - View Reference Point (VRP)
    - View Plane Normal (VPN)
    - View Up (VUP)

    ----------------------------------
    Translate World Origin to VRP
    Rotate World X, Y, Z to the Eye coordinate system, also known as the View Reference Coordinate system, VRC = (VUP ´ VPN, VUP, VPN), respectively:

    -----------------------------------
    - (VRP) View Reference Point
    - (VPN) View Plane Normal
    - (VUP) View Up
    - (VRC)
    - (COP) Center of Projection
    - (DOP) Direction of Projection
    - (PRP)
    Attached Images Attached Images     
    Last edited by NoteMe; Aug 3rd, 2005 at 07:19 AM.

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

    Re: DoomSharp

    Code for what I need to do....

    http://colos1.fri.uni-lj.si/~sis/GRA...transform.html




    - ØØ -

  18. #98

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

    Re: DoomSharp

    Offscreen coords are fine.

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

    Re: DoomSharp

    Quote Originally Posted by wossname
    Offscreen coords are fine.

    Didn't you all ready say that..or have I been drinking too much...

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

    Re: DoomSharp

    Sorry, just need this one too..


    world to eye:
    T =
    Code:
    1 0 0 -POSx
    0 1 0 -POSy
    0 0 1 -POSz
    POS = Camera pos??????

    w = normalize(COI-POS)
    u = normalize(w (x) y); where y = 0,1,0
    v = u (x) w
    R=
    Code:
    ux uy uz 0
    vx vy vz 0
    wx wy wz 0
    0  0  0  1
    P' = R*T*P


    OpenGL = http://capital2.capital.edu/faculty/...S377/notes.pdf




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

  21. #101

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

    Re: DoomSharp

    This looks tough.

    I remember trying to transform world coordinates to screencoords once and failing miserably.
    I don't live here any more.

  22. #102

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

    Re: DoomSharp

    Shall I start to build the DrawObjects family?

    DrawObject (base)
    |-- Triangle (derived)
    |-- WallPart (derived

    I'll put the anticlockwise culling in my drawing routine too, I already have code for anti-clock checking.
    I don't live here any more.

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

    Re: DoomSharp

    Quote Originally Posted by wossname
    This looks tough.

    I remember trying to transform world coordinates to screencoords once and failing miserably.


    Yeah...I have a bit of a problem here too at the moment...I can't understand how to do the first step...the rest should be piece of cake, but been looking for hours to find out how to do the first step...


    - ØØ -

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

    Re: DoomSharp

    Quote Originally Posted by wossname
    Shall I start to build the DrawObjects family?

    DrawObject (base)
    |-- Triangle (derived)
    |-- WallPart (derived

    I'll put the anticlockwise culling in my drawing routine too, I already have code for anti-clock checking.

    The anti clock checking should be in the wallpart class. Here is my start of the wall part class (not far as you can see):

    [Removed because of frustration]
    - ØØ -
    Last edited by NoteMe; Sep 15th, 2005 at 06:32 AM.

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

    Re: DoomSharp

    Here is the Vector class I have been building on (we might need a Vector4 class too):

    [Removed because of frustration]
    Last edited by NoteMe; Sep 15th, 2005 at 06:33 AM.

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

    Re: DoomSharp

    continue from last post/class:

    [Removed because of frustration]
    Last edited by NoteMe; Sep 15th, 2005 at 06:33 AM.

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

    Re: DoomSharp

    I have also started to make a Camera class. But I am not sure how to build up the vectors in it yet..and if they should be 3 or 4 long...hmmm.....

    But we need some input though.....from keyboard and maybe mouse after a while....mouse can be a bit tricky since we only want to find out how much it has moved since last frame, not couse coordinates. And then for every frame you have to reset it to the middle of the screen, and maybe even hide the mouse pointer?


    - ØØ -

  28. #108

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

    Re: DoomSharp

    First things first, leave the input until later, no point having mouse movement until we can draw something.

    I'm putting the anticlock method as a member function of the TriangleClass, since a wallpart will be converted to 2 triangles. We need to be able to draw individual trianles too since both WallPart and Triangle both inherit from Primitive (my new name for DrawObject)
    I don't live here any more.

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

    Re: DoomSharp

    Are you allowed to use FTP at work? Do you use Fx? Can you add a plugin to it to use FTP?

    Maybe we should have a working directory online, so we can just download the newest versions there all the time, so we don't do changes on the same file, and we no longer know what the new file is?


    - ØØ -

  30. #110

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

    Re: DoomSharp

    Not allowed FTP and IE is compulsory. They don't even let us blink without orders signed in triplicate.

    It is going to be a problem later on though, we's stil have to agree not to work on the project at the same time with the same version. We should keep our 2 halves separate for as long as possible and then maybe you give me a copy of your half (and vice versa) and we can agree not to alter each-other's code, only work on our own stuff.

    I'll need your wallparts to store the corner points in this order...

    (its the most efficient sequence for GDI+ to process, as it means only point D needs to be transformed.)
    Attached Images Attached Images  
    Last edited by wossname; Aug 3rd, 2005 at 09:27 AM.

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

    Re: DoomSharp

    Sounds nice......well, guess we are just going to make sure that we don't work on the same files without us knowing so..


    I am workig on the Vector and Camera class now..just as you know..


    - ØØ -

  32. #112

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

    Re: DoomSharp

    Do you think we should be making the wallparts and triangles draw themselves? At the moment I'm drawing them from the 'outside' by passing them to a DrawPrimitives(Primitive[]) method within the engine class.

    Self-drawing would be the OOP thing to do but it would mean passing lots of information to each triangle and wallpart everytime and it would mean thy have to store more information internally so our memory usage would go up a lot.

    What do you think, fast and dirty or slow and OOPy? (I like dirty myself but only because the framerates would be better). It would be a big job to recode the 'primitives' to draw themselves. Probably better to keep our current approach (which is more like DX's anyway) but I would like your opinion.
    I don't live here any more.

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

    Re: DoomSharp

    I can't see how that will be so much slower. You are not passing the infor to the triangle and wallpart every frame. The triangle and wallpaper class HOLDS all the information it needs to draw it self with? What do you mean? It even calculates it's own coordinates from world space to screen coordinates. To get a hold on that you need to take it OUT of the object....I can't see what you mean here....


    - ØØ -

  34. #114

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

    Re: DoomSharp

    *thinks*

    We are going to have to rethink this a bit. We need to separate what we mean by triangles and wallparts.

    We'll need 2 versions for each, one in 3d and one in 2d screen coords.
    I don't live here any more.

  35. #115

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

    Re: DoomSharp

    The 3D primitives will stay put throughout the game but the 2D ones will have to be re-invented for each frame. Then I need to pass in at least 2 objects to each one.

    I think the 3D wallpart should be able to create a 2d version of itself and then we can append that new object to this frame's Primitive[] array which will be looped through and drawn.
    I don't live here any more.

  36. #116

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

    Re: DoomSharp

    *thinking again*
    I don't live here any more.

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

    Re: DoomSharp

    The way IIIII see it.


    We have wallparts. They are read in from a 2D array, then I will make a BSP tree out of them. All of them will every frame be translated into Screen coordinates. Then the BSP tree will deside what walls will stay, and what walls have to go. Then call the draw function on the remaining leaves in the BSP tree, because they all ready have the screen coordinates.


    - ØØ -

  38. #118

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

    Re: DoomSharp

    Currently getting 10.5fps @ 800x600 drawing 40 triangles at varying distances (equivalent to 20 wallparts). Changing resolution up or down doesnt sem to have a huge impact on fps figures. We could probably run this fullscreen without too much hassle.
    I don't live here any more.

  39. #119

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

    Re: DoomSharp

    12 fps now, found a neat setting that stops a bunch of unneeded processing.
    I don't live here any more.

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

    Re: DoomSharp

    wow..that is not fast...hmmm.....well, at least it is better then nothing...but I really hope I can make my calculations really fast..


    - ØØ -

Page 3 of 31 FirstFirst 12345613 ... 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