Jump to content


Point Sprites


6 replies to this topic

#1 bojkar

    New Member

  • Members
  • Pip
  • 7 posts

Posted 18 March 2007 - 09:05 PM

Hello everyone.
I have problem with point sprites. I set point size :


glPointSize(20);


But this isn't work. When camera is far all is ok but when is near particles are very very small. What is wrong?

thanks

#2 Rubicon

    Member

  • Members
  • PipPip
  • 90 posts

Posted 18 March 2007 - 11:10 PM

not sure about ogl, but they probably suffer the same problem as with D3D since they're both just interfaces to the same hardware.

You can't have infinite sized particles. I think there's a caps bit in D3D (I ignore it myself) that tells you how big this is, but I think its 64x64 pixels on most cards. Even if that's wrong, the limit is way short of fullscreen sizes.

It may even be small enough so a texture applied to one will fit entirely within the texture cache. Just guessing here.
Regards, Paul Johnson
www.rubicondev.com
My Free 3D Tower Defence Game

#3 juhnu

    Valued Member

  • Members
  • PipPipPip
  • 292 posts

Posted 19 March 2007 - 03:01 PM

I would recommend you to use just normal triangles instead of point sprites - the point sprite support across different hardware is not robust enough.. waste of time.

#4 Rubicon

    Member

  • Members
  • PipPip
  • 90 posts

Posted 19 March 2007 - 04:30 PM

Actually, for particles I'd recomend point sprites!

You never want them to go full screen because of fill-rate issues anyway, and the bandwidth saving of sending 1 vertex instead of 4 or 6 will increase your performance by around that factor (ie 4x as many point sprites, give or take.) in any real-world situation.
Regards, Paul Johnson
www.rubicondev.com
My Free 3D Tower Defence Game

#5 bojkar

    New Member

  • Members
  • Pip
  • 7 posts

Posted 19 March 2007 - 06:30 PM

ok I use point sprites because is the most fast. But why points change self size?

#6 juhnu

    Valued Member

  • Members
  • PipPipPip
  • 292 posts

Posted 13 April 2007 - 05:48 PM

Rubicon said:

Actually, for particles I'd recomend point sprites!

You never want them to go full screen because of fill-rate issues anyway, and the bandwidth saving of sending 1 vertex instead of 4 or 6 will increase your performance by around that factor (ie 4x as many point sprites, give or take.) in any real-world situation.
Sorry, but I can't resist asking if you still would recommend people to use them? ;)

#7 Rubicon

    Member

  • Members
  • PipPip
  • 90 posts

Posted 13 April 2007 - 10:26 PM

lol, you're on that list too huh.

I still am using them on the 360, but no - on PC they truly suck. Kill them all. Shame really as they're techinically brilliant but the driver writers clearly don't give a shit about em. :wallbash:

(My recent follies do seem a bit bizarre as I've always used them with no problems at all, yet all of a sudden they don't seem to work on hardly anything.)
Regards, Paul Johnson
www.rubicondev.com
My Free 3D Tower Defence Game





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users