Page 2 of 2 FirstFirst 12
Results 26 to 42 of 42

Thread: 3D Game v.2

  1. #26
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Thats where I got lost :P

  2. #27
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    it wouldnt be the same as just making the image thinner and then rotating to the correct rotation? Probably not, but that could always work until you can figure out something a bit more mathmatical.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #28
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    That just gave me a crazy idea.
    I could make bitmaps 3D.
    They already have an x and a y, just throw in a z.
    SCAR Code:
    //an array of pixels, their location, and the color of the pixel
    T3DBmpPixel = record
      x, y, z, color: integer;
    end;

    //the array of pixels that go to a bitmap and the rotation of the bitmap
    T3DBmp = record
      Pixels: array of T3DBmpPixel;
      xRot, yRot, zRot: integer;
    end;

    The z attribute will be set to the z of the "wall" that it will be put on.
    When the Bmp is drawn the pixels will be rotated by their x, y, and z rot.'s that are set by the "wall" too, and the pixels will match up perfect with the drawn object (if the Bitmap and the object were the same size)
    The only down side is that would be amazingly slow.
    I might make a plugin and see how that goes.

    The bitmap will actually still only have 2 dimensions though, because it started out with only 2.
    It is like a piece of paper in the 3D world.
    But it will be able to be drawn at different angles and distances from the viewer.

  4. #29
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    o.o wow.

    your so smart.

    D:

    make an SAT ^^

  5. #30
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Hah
    I just made a script for this and it's working.
    I'll post here when it is finished.
    The only problem is if you change the pixels in a bitmap (especially making the bitmap bigger) there will be dead space between the pixels where you see the background.
    I have a way to solve this but it will take a long time to script it.

  6. #31
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think, you should help me with scripting some

    <3

  7. #32
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    actually now that i think of it, im surprized that that does indeed work with your script. You are using a perspective view. I only expected something as simple as that to work with an orthographic projection. Then it would at least keep the same shape. With yours wont it hang off the edges, since the engles and whatnot arent always the same, or are you doing it differently?
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  8. #33
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Are you talking about my box drawers or the 3D Bitmap thing?
    And really I'm not sure what you mean at all.
    What edges?

    I think, you should help me with scripting some
    I will make an SAT for this type of thing soon.

  9. #34
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default



    your pretty much amazing ^^

  10. #35
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by almost View Post
    Are you talking about my box drawers or the 3D Bitmap thing?
    And really I'm not sure what you mean at all.
    What edges?


    I will make an SAT for this type of thing soon.
    the 3d bitmap. Since you're drawing the box using perspective projection, it wont keep the accurate angles (at x rotation, its not going to be a parallelogram like an orthographic projection would) so it wouldnt draw the bitmap on right.....I do hope im making sense.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  11. #36
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm not so sure I'm getting it still.
    It rotates each individual pixel in the bitmap around the central point of the bitmap.
    It keeps it's shape as it rotates, just really deforms the bitmap because of all the pixels separating from each other and nothing is set to fill in the empty spaces as of right now.

    It looks like the box drawer I posted but if you made it draw one side to the box instead of all 6. (and it is a picture)

  12. #37
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    It keeps it's shape as it rotates
    Thats my point. Your box wont have that shape because of the way its drawn afaik. But if you dont get it, then i might be wrong and there could be no problem .
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  13. #38
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by almost View Post
    That just gave me a crazy idea.
    I could make bitmaps 3D.
    They already have an x and a y, just throw in a z.
    ScarScript:By Drunkenoldma
    //an array of pixels, their location, and the color of the pixel T3DBmpPixel = record x, y, z, color: integer; end; //the array of pixels that go to a bitmap and the rotation of the bitmap T3DBmp = record Pixels: array of T3DBmpPixel; xRot, yRot, zRot: integer; end;

    The z attribute will be set to the z of the "wall" that it will be put on.
    When the Bmp is drawn the pixels will be rotated by their x, y, and z rot.'s that are set by the "wall" too, and the pixels will match up perfect with the drawn object (if the Bitmap and the object were the same size)
    The only down side is that would be amazingly slow.
    I might make a plugin and see how that goes.

    The bitmap will actually still only have 2 dimensions though, because it started out with only 2.
    It is like a piece of paper in the 3D world.
    But it will be able to be drawn at different angles and distances from the viewer.
    That is exactly what i ment... >.<

  14. #39
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Pure genious. This is absolutely brilliant!!! A 3D engine made from a simple script engine.... wow. Just demostrates how flexible and powerful SCAR really is. Definetly worthy of further modification and experimentation!!! This is some good stuff!

    Oh and also: This could have practical applications, such as better solvers for randoms (i.e. you get the RS object file, draw it in memory, then compare it with the image in RS). Would take a lot of resources though.. hmm..

    It's been a while... but I'm BACK!!!

  15. #40
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default


    I just started on a 3D model editor

  16. #41
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Zytex did you ever see my 3D model editor from a long time ago?
    It was very basic and sucked really, but you might get ideas from it.

  17. #42
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Hey, I remember that one! Thanks
    *searches*

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fun Game =]
    By Sir_Oober in forum News and General
    Replies: 18
    Last Post: 02-03-2009, 06:15 AM
  2. my first Java game (shooter game)
    By Lorax in forum Java Help and Tutorials
    Replies: 19
    Last Post: 08-18-2008, 10:48 PM
  3. The Word Game Game
    By Putnam in forum The Bashing Club / BBQ Pit
    Replies: 5
    Last Post: 04-02-2008, 03:07 AM
  4. fun new game.
    By warship45 in forum Gaming
    Replies: 1
    Last Post: 05-23-2007, 02:35 PM

Posting Permissions

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