Author Topic: How to make things glow  (Read 10304 times)

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile
Re: How to make things glow
« Reply #15 on: December 09, 2008, 06:24:50 pm »
Very cool.  It looks better than the first, although the first looked pretty good also.  I thought.  I saved the source in case I get far enough to actually worry about special effects.  The main one I want to learn is the particle system but I'm kind of stuck right now with getting my path finding to work in real world coordinates. 
click here->Fireside 7 Games<-

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: How to make things glow
« Reply #16 on: December 09, 2008, 07:56:22 pm »
I'm kind of stuck right now with getting my path finding to work in real world coordinates. 
This is quite of topic but maybe you don't have to use real world coordinates. I'm used to use a grid representation of the world instead. That makes things easier to handle IMHO. Paradroidz as well as Robombs are/were all grid based with some interpolation in world coordinates on top.

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile
Re: How to make things glow
« Reply #17 on: December 10, 2008, 12:45:09 am »
Yeah, that's pretty much what I'm doing, I think.  I'm just having trouble with the interpolation.  It's getting closer.  It worked for just clicking and moving the full distance, but now I'm trying to get the dragon to follow the grid points and it only works half the time for some reason.  That's normal for me.  Eventually I'll figure out what I did wrong.
click here->Fireside 7 Games<-

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: How to make things glow
« Reply #18 on: August 18, 2010, 05:45:34 am »
nice work paul :) can i use your glow texture in my game ?

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: How to make things glow
« Reply #19 on: August 18, 2010, 11:23:15 am »
can i use your glow texture in my game ?
Sure thing.

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: How to make things glow
« Reply #20 on: August 18, 2010, 08:36:39 pm »
Any idea why its doing this?


Its basically the same code/images but just in my engine. Does the same thing in hardware mode too.

Offline paulscode

  • double
  • *****
  • Posts: 863
    • View Profile
    • PaulsCode.Com
Re: How to make things glow
« Reply #21 on: August 18, 2010, 10:08:55 pm »
I've seen that before, but its been a while since I worked on this, so I don't remember what the cause was.  It seems like you have transparency, but the alpha channel isn't coming through correctly.  Sorry I can't be any more helpful than that, though.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: How to make things glow
« Reply #22 on: August 18, 2010, 10:10:47 pm »
To make jPCT use a texture's alpha channel, you have to use one of the Texture(...., <boolean>) constructors with <boolean> set to true. Maybe that is what's missing?

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: How to make things glow
« Reply #23 on: August 19, 2010, 05:15:16 am »

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: How to make things glow
« Reply #24 on: August 19, 2010, 07:32:23 am »
Sweet got it working and its looking great.