Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 69

Thread: Code: Particle module or include file plus editor

  1. #11
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Particle module or include file plus editor

    Hi,

    just little notice - we did not posted anything in this topic for long, but we are discussing this topic via email.
    We are converging to final decision in parameters for the particle systems and particles as a such, based on information mentioned in articles you gave us as reference.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #12

    Re: Code: Particle module or include file plus editor

    Quote Originally Posted by Psch
    but we are discussing this topic via email.
    ??? :-\

  3. #13
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Particle module or include file plus editor

    Ok,

    I think those 4 heads mean "why is there no open discussion".
    I have no problem with it.

    So for now, I have current idea for types, abilities:
    TYPE Particle
    position AS tXYZ
    speed AS tXYZ

    rotation AS DOUBLE
    rotSpeed AS DOUBLE

    scale AS tXY
    scalegrow AS tXYZ

    texture AS LONG

    color AS RGB
    alpha AS BYTE
    END TYPE

    TYPE ParticleSystem
    blendSrc AS LONG
    blendDst AS LONG

    arrayPTR AS DWORD ' -- Pointer to array of particles
    END TYPE
    I think they are pretty self explanative.

    There is other thing to consider:
    What I am thinking of is making the particles "preanimated"
    in texture, which would contain all key frames from particle
    birth to its death, let me know which approach do you
    prefer, or if you are thinking of something different.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #14

    Re: Code: Particle module or include file plus editor

    Thanks for the info Petr. Preanimating texture? Mmmh, nice feature. Hopefully not to costly for the fps.

  5. #15

    Re: Code: Particle module or include file plus editor

    Hi,

    Yes I'm according with you create a particle "preanimated" it's the right way, simple and clean to put into script game.
    Ok i'm work with you on it, if you havo some ideas o code that i have to do or check for example i'm ready
    (you have more experience than me on Particle, i try to support you ;D) .

    Ciao,
    Simone
    LapTop Pc: 2GHz Intel Core 2 Duo T7200 • 2GB 533MHz DDR2 RAM • 160GB hard disk • 512MB ATi Mobility Radeon X1600 graphics • Win Vista SP1<br />Desktop Pc: 1.6GHz Intel Core 2&nbsp; • 2GB DDR2 RAM •&nbsp; 1024MB Nvidia GeForce 8800 GT • WinXp&nbsp; SP3

  6. #16

    Re: Code: Particle module or include file plus editor

    Question as I might not have understood: Preanimated.... did you mean a sequence of images that are used over the time?

  7. #17
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Particle module or include file plus editor

    Hi Mike,

    I was thinking of prerendering the particle animation to bitmap, and then just shift frames like in cartoon movie.
    The implementation would be simple - one particle = one 4 vertex model. To animate, we would just shift 1 coordinate by constant step after constant time.

    As I said we were discussing this in email so not decided which way to pick.
    Hybrid approach would be cool, but I think not necessary for the game.

    I need to do more tests.

    (you have more experience than me on Particle, i try to support you ;D) .
    Simone, I need an opponent I need you to stop me when I go in wrong direction - longer time in TBGL word does not mean I am more experienced, I still tend to do bad descisions from time to time.


    Petr
    Attached Images Attached Images
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  8. #18

    Re: Code: Particle module or include file plus editor

    Mmmh, I would need this to see in motion to judge that approach. I'm affraid that this won't look right. But like I said, I would need ot see this.

  9. #19

    Re: Code: Particle module or include file plus editor

    Hi,

    @Petr I'm trying to apply the new ideas of "preanimated" particle at the script of explosion study with entity, (for test new ideas) ;D.
    I think that some parts can be reused.
    I post in the next few days my result.

    Ciao,
    Simone
    LapTop Pc: 2GHz Intel Core 2 Duo T7200 • 2GB 533MHz DDR2 RAM • 160GB hard disk • 512MB ATi Mobility Radeon X1600 graphics • Win Vista SP1<br />Desktop Pc: 1.6GHz Intel Core 2&nbsp; • 2GB DDR2 RAM •&nbsp; 1024MB Nvidia GeForce 8800 GT • WinXp&nbsp; SP3

  10. #20
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Particle module or include file plus editor

    Thanks Simone,

    I am now writing documentation for commands Mike & Michael suggested ( developed now ), then I will join your work, very much appreciated.

    I was trying to put example for Mike here, but could not find any suitable "animated strip" for tests.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Page 2 of 7 FirstFirst 1234 ... LastLast

Similar Threads

  1. Code: Gui module or include file
    By Michael Hartlef in forum Code
    Replies: 35
    Last Post: 17-10-2008, 12:13

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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