Advertisement Jump to content
  • Advertisement

jmutch

Member
  • Content Count

    693
  • Joined

  • Last visited

Community Reputation

397 Neutral

About jmutch

  • Rank
    Advanced Member
  1. jmutch

    Additive blending...

    Quote:When you say "Is there any way to blend particles with each other, but not with anything else", what do you mean??? You have to blend them with the background SOMEHOW, right? Well, that's what I'd like to find out... If there's a way to exclude blending the particles with the background, how I have no idea. Quote:ADD blending makes clours brighter. If you have a bright particle with bright edges and you render over a bright color you are going to get bright edges. Can you post your texture image for us to see? When I made fire particles I save them really dark, almost black with just a hint of their colour left, and then when I blend 4 of them near each other they get bright in the center and darker has they move outward (like a real fire)... My texture for the particles is a circle, white at the center and gradually shading towards black at the edges. Sorry for no pic, but late (for me [wink] and I think it's simple enough... The color is dependent on the vertex color, render states set up, device->SetTextureStageState (0, D3DTSS_COLORARG1, D3DTA_TEXTURE); device->SetTextureStageState (0, D3DTSS_COLORARG2, D3DTA_DIFFUSE); device->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); I'll try making the color on the texture a lot darker and see if that tones down the tinting a bit, right now it's bright green [rolleyes] (already tried towning down the vertex color but haven't thought 'bout changing the texture) g'night for now.. going to bed. I'll check the replies in the morning.
  2. Is there any way to render a particle system (with additive blending) such that particles blend with each other, but not anything else? i.e., say I render a particle system against a black background with additive blending (src = D3DBLEND_ONE, dest = D3DBLEND_ONE). This achieves the effect I want to have, but whenever I render the particle system agains't a non-black background, it adds in the background colors, as would be expected. Is there any way to blend particles with each other, but not with anything else, say the background? So far the only way I can think of/found is to render the particles twice, the first pass with the renderstates set to (D3DBLEND_INVSRCALPHA,D3DBLEND_ZERO) then the second time set to (ONE,ONE). However, when trying this, the resulting image has black around the edges. (the particle's texture is a dot, white at the center fading towards black at the edges) What I currently have working is a particle engine that works fine against a black background, but when rendered against say a green background, the edges turn up a bright green tint. Not good since of the effect I'm going for is an explosion... Has anyone achieved this effect? Whether by setting up renderstates a certain way, or giving up and doing it through a new approach. I envision the final effect to be something like d000hg has... How'd you do that d000hg? -_-
  3. Thanks, enabling alpha testing fixed it. ratings++ =)
  4. Hi. I'm trying to render a textured quad. (2D, XYZRHW vertices) The texture for the quad is loaded using D3DXCreateTextureFromFileEx(,,,D3DCOLOR ColorKey,,,) so any color in the texture that matches the color key is transparent, assuming I have the SetRenderStates set up correctly. Now say I have two quads, A and B. Quad A has a z value of 0.1, and it is textured with a texture that has no transparent colors. Quad B has a z value of 0.0, and its texture HAS transparent colors. When I render quad A first, and then quad B, everything works fine, quad B showing up on top of A (they overlap) and the transperent pixels working fine. But the problem is when I render quad B first (it's z value puts it in front) and then quad A. When I do this, quad B shows up in front of A but the only problem is that its transparent pixels that overlap quad A aren't transparent, but show up the same color that I cleared the screen in d3ddevice->Clear(,,,). Here's all my render states and such d3ddevice->SetRenderState(D3DRS_SRCBLEND,D3DBLEND_SRCALPHA); d3ddevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA); d3ddevice->SetRenderState(D3DRS_ALPHABLENDENABLE,true); d3ddevice->SetTextureStageState (0, D3DTSS_COLORARG1, D3DTA_TEXTURE); d3ddevice->SetTextureStageState (0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); d3ddevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); d3ddevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); If you want to see any other bits of code just ask.
  5. jmutch

    Fonts in DirectX 8

    For your second problem, function itoa(int,char*,int)
  6. jmutch

    This is cute...

    I got this Look at dem muscles!
  7. jmutch

    MUFFINS

    luv ya 2
  8. jmutch

    CRUMPETS

    I HATE YOU TO!
  9. jmutch

    Leveling up?

    You still playing, arch?
  10. jmutch

    Leveling up?

    Have any idea how to validate my account? PS: I think my old account got deleted. ...had a lot of good stuff on it... *sniff*
  11. jmutch

    Entry #32

    Up now. I think that my account is lost though, since I entered a fake email. However, I just created a new account with a real email. The only thing is that these are the instructions to validate the account: '/' ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ¼­¹ö ¿À·ù°¡ ÀÖ½À´Ï´Ù. -------------------------------------------------------------------------------- ¸®¼Ò½º¸¦ ãÀ» ¼ö ¾ø½À´Ï´Ù. ¼³¸í: HTTP 404. ã°í ÀÖ´Â ¸®¼Ò½º ¶Ç´Â ÇØ´ç ¸®¼Ò½º¿¡ Á¾¼ÓµÇ¾î ÀÖ´Â ¸®¼Ò½º ÁßÀÇ Çϳª°¡ Á¦°ÅµÇ¾ú°Å³ª À̸§ÀÌ º¯°æµÇ¾ú°Å³ª, ÀϽÃÀûÀ¸·Î »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ¾Æ·¡ URLÀÇ Ã¶ÀÚ°¡ Á¤È®ÇÑÁö È®ÀÎÇϽʽÿÀ. ¿äûÇÑ URLÀÔ´Ï´Ù.: /members/verifycode.aspx linky ????
  12. jmutch

    what happened?

    Right click the desktop and go to properties. Click the appearance tab and there should be a color scheme menu, I recommend the silver theme.
  13. jmutch

    Entry #32

    It wasn't just me! I heard they're changing the accounts so that you need to enter a real email adress. I really need to change my bogus adress before my account is deleted. = EDIT: oh yeah, the korean, chinese, and japanese parts of their site seems to work fine.
  14. jmutch

    I'm alive

    Did you ever kill that iron pig?
  15. jmutch

    Speling (sp?) PLEASE!

    Quote:Original post by Hase (I dare you to find the spelling mistakes hidden in this post) You're using "´" instead of "'"? Kill me if the question mark should be inside the quote. EDIT: If this has already been noticed, sorry. Only read the first page.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!