Thread: Particles Full Source - Original & Depth Buffered

Page 9 of 14 FirstFirst ... 7891011 ... LastLast
Results 81 to 90 of 137
  1. #81  
    Banned

    Join Date
    Apr 2014
    Posts
    419
    Thanks given
    117
    Thanks received
    56
    Rep Power
    0
    Quote Originally Posted by 0403 View Post
    You haven't even tried to debug your problem. Help me help you.

    Can you verify that you created a emission point in the model constructors next to vertice a,b,c? (Model.java)
    Can you verify that the particle emitter is being attached to the vertice? (Model.java)
    Can you verify that the definition is being loaded for that emitter? (Model.java)
    Can you verify how many particles are on the screen at any given moment, not visually but though a print out. (Client.java) (Arraylist)



    Thanks, I'll add depth buffering and particles to it today.
    would love to see this done
    Reply With Quote  
     

  2. #82  
    Banned
    Join Date
    Aug 2016
    Posts
    82
    Thanks given
    34
    Thanks received
    45
    Rep Power
    0
    Quote Originally Posted by Gladius. View Post
    is there a possibility that you can share your particle def for the flamming skull?
    i cant get it better then this.
    Code:
      setStartVelocity(new Vector(0, 2, 0));
                    setEndVelocity(new Vector(0, 2, 0));
                    setGravity(new Vector(0, 3 / 2, 0));
                    setLifespan(15);
                    setStartColor(0xFF0800);
                    setSpawnRate(3);
                    setStartSize(2f);
                    setEndSize(0.5f);
                    setStartAlpha(0f);
                    setEndAlpha(0.065f);
                    updateSteps();
                    setColorStep(0x000900);
    Reply With Quote  
     

  3. #83  
    Registered Member

    Join Date
    Feb 2016
    Posts
    224
    Thanks given
    177
    Thanks received
    51
    Rep Power
    119
    Managed to add these today still kinda buggy they don't show through windows and i might be rendering the particles wrong private message me if you need help

    Reply With Quote  
     

  4. #84  
    🖤Runic Developer🖤
    Castiel's Avatar
    Join Date
    Apr 2013
    Posts
    1,752
    Thanks given
    564
    Thanks received
    288
    Rep Power
    609
    is this for 718 too then
    Attached image
    Attached image
    Reply With Quote  
     

  5. #85  
    Registered Member
    Join Date
    Dec 2009
    Age
    23
    Posts
    408
    Thanks given
    193
    Thanks received
    39
    Rep Power
    10
    I don't know, but could you give me your drawFilledCircle method? Maybe that's why my particles don't render at all.
    Reply With Quote  
     

  6. #86  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    Quote Originally Posted by Zakawer2 View Post
    I don't know, but could you give me your drawFilledCircle method? Maybe that's why my particles don't render at all.
    Quote Originally Posted by Zion View Post
    Code:
        public static void fillCircle(int x, int y, int radius, int color, int alpha) {
            int y1 = y - radius;
            if (y1 < 0) {
                y1 = 0;
            }
            int y2 = y + radius;
            if (y2 >= height) {
                y2 = height - 1;
            }
    		int a2 = 256 - alpha;
            int r1 = (color >> 16 & 0xff) * alpha;
            int g1 = (color >> 8 & 0xff) * alpha;
            int b1 = (color & 0xff) * alpha;
            for (int iy = y1; iy <= y2; iy++) {
                int dy = iy - y;
                int dist = (int) Math.sqrt(radius * radius - dy * dy);
                int x1 = x - dist;
                if (x1 < 0) {
                    x1 = 0;
                }
                int x2 = x + dist;
                if (x2 >= width) {
                    x2 = width - 1;
                }
                int pos = x1 + iy * width;
                for (int ix = x1; ix <= x2; ix++) {
                    int r2 = (pixels[pos] >> 16 & 0xff) * a2;
                    int g2 = (pixels[pos] >> 8 & 0xff) * a2;
                    int b2 = (pixels[pos] & 0xff) * a2;
                    pixels[pos++] = ((r1 + r2 >> 8) << 16) + ((g1 + g2 >> 8) << 8) + (b1 + b2 >> 8);
                }
            }
        }
    There you go, all credits to Zion. Was posted on page 5.

    On topic: kinda unfortunate how op disappeared for a month, would've liked to see that fresh 317 with this as I
    haven't got it working as it should be.
    Reply With Quote  
     

  7. #87  
    Registered Member

    Join Date
    Feb 2016
    Posts
    224
    Thanks given
    177
    Thanks received
    51
    Rep Power
    119
    I will add it to a client soon for you

    https://www.rune-server.ee/runescape...particles.html
    Reply With Quote  
     

  8. #88  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    That'd be so handy!
    Reply With Quote  
     

  9. #89  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by sluggy View Post
    I will add it to a client soon for you
    Are you still going to add it?
    Attached image
    Reply With Quote  
     

  10. #90  
    Registered Member

    Join Date
    Feb 2016
    Posts
    224
    Thanks given
    177
    Thanks received
    51
    Rep Power
    119
    Quote Originally Posted by RememberM3 View Post
    Are you still going to add it?
    I added it the other day https://www.rune-server.ee/runescape...particles.html
    Reply With Quote  
     

Page 9 of 14 FirstFirst ... 7891011 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 7
    Last Post: 12-02-2015, 03:39 AM
  2. Replies: 160
    Last Post: 12-16-2009, 07:55 AM
  3. [REQ]Dds-speced source(ORIGINAL ONE)[/REQ]
    By Rapidz in forum Requests
    Replies: 9
    Last Post: 11-04-2009, 11:58 PM
  4. 508 Hd Client Full Source
    By thefifthlord in forum Requests
    Replies: 3
    Last Post: 04-12-2009, 10:27 PM
  5. Auto Cache Downloading - Full Source
    By ZachHaley in forum Tutorials
    Replies: 14
    Last Post: 03-12-2009, 10:02 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
  •