XNA Creators Club Online
Page 1 of 1 (11 items)
Sort Posts: Previous Next

How do i get AURA effect?

Last post 4/2/2009 9:06 PM by Scyde. 10 replies.
  • 3/30/2009 8:16 PM

    How do i get AURA effect?

    I was looking around particles, sprites, pointsprites and so on.. but, i cant understand, how can i get dynamic aura effect near the object?
    I have some ideas about it:
    1) Sprite: make two 2D particles using sprites (in the back and front of the object), and every frame project its coordinates to world and parse it with my mesh in space. But, this technique, i guess, wont give us a good performance, because if we have more than one object, every render cycle we need to sort objects by their Z values, to get the one we need (with that mystic aura) surronded by back sprite and front sprite, right? Looks like that will kill FPS rate :(



    2) Point sprites: pointsprites location doesnt need to be projected each frame, as it already has world location. Also, there is no need in sorting objects! But we cant rotate them without shaders, and i can hardly imagine realisation of something like this:



    3) Mesh and texture: i didnt try it, but, if i get a textured sphere mesh with alpha blending enabled, i can get some effect, but i need to change my, the only one texture each render cycle.




    What do you think?
  • 3/30/2009 8:25 PM In reply to

    Re: How do i get AURA effect?

    Well, the top right is obviously blooming. They render the shape in all white, blur it, and draw it under the actual object. It seems the others are mixtures of particles, pointsprites and textured cylinders, but the key here is that they use additive blending
    Regards,
    Louis Ingenthron
    Fortis Venaliter
    Lead Developer of FV ProductionsFV Productions
  • 3/30/2009 8:31 PM In reply to

    Re: How do i get AURA effect?

    Thank you for answering:)
    But the top picture is rendered by me. (MDX 2.0) I used gussain shader from XNA sample.
    You mentioned additive blending. Is that so hard to do?
  • 3/30/2009 9:10 PM In reply to

    Re: How do i get AURA effect?

    Scyde:

    You mentioned additive blending.


    Check this out

  • 3/30/2009 10:40 PM In reply to

    Re: How do i get AURA effect?

    Thanks for the link, but i cant understand which way they use to render that effects, like point sprites or quads:)
  • 3/31/2009 1:16 AM In reply to

    Re: How do i get AURA effect?

    Well if you are interested in particle effects try out the Particle Effects 3D tutorial (available for download in the education section).

    Basically, changing the blending type from additive will change the way the sprites look and blend with other things on the screen.  The best way to understand this imho would be to download the tutorial and play around with the settings.
  • 4/1/2009 7:28 PM In reply to

    Re: How do i get AURA effect?

    How do i put my alpha glow texture between 2 objects, one of them has Z value = 0, second has Z=2,for example.
    Which way do i need to use? Set ZEnable = false? And sort objects by their Z coordinate (and draw glow sprite between)?
    How?

    Seems like thats it. Can you suggest me some algorithms for depth sorting?
  • 4/1/2009 9:06 PM In reply to

    Re: How do i get AURA effect?

    Ok, here is what i am talking about.
    Lets imagine for a moment, that i know how to sort my objects, but how can i deal with this situation?



    In both cases zenable = false, so, its all about sequence of rendering.
    If you will try to render the second case, you will see a bug anyway, because the texture will be over the big object, either in back of the scene.

    Ideas?
  • 4/2/2009 7:04 PM In reply to

    Re: How do i get AURA effect?

    Please take a look on this post :)
  • 4/2/2009 7:40 PM In reply to

    Re: How do i get AURA effect?

    Please don't bump your own thread.

    There is no easy way to do what you are asking. Depth sorting and transparency don't work so well together for situations like yours. Shawn Hargreaves has a nice post that you should check out on some of the options, and how none of them will solve your problem on their own.
  • 4/2/2009 9:06 PM In reply to

    Re: How do i get AURA effect?

    Thank you for the link.
    But i think i am close to do what i want. Only 1 problem left: on my laptop i see this sprite like this texture (its render target texture)



    What can it be?
    Thank you!
Page 1 of 1 (11 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG