Questions tagged [point-sprites]

28 questions
10
votes
4 answers

Is it possible to use OpenGL point sprites to simulate billboard sprites?

I was trying to set point sprites in OpenGL to change size with distance just as a billboarded sprite would, but I can't get the values in GL_POINT_DISTANCE_ATTENUATION_ARB to do anything useful. Is there a correlation of values to this that would…
zaratustra
  • 8,148
  • 8
  • 36
  • 42
7
votes
4 answers

Resizing point sprites based on distance from the camera

I'm writing a clone of Wolfenstein 3D using only core OpenGL 3.3 for university and I've run into a bit of a problem with the sprites, namely getting them to scale correctly based on distance. From what I can tell, previous versions of OGL would in…
Lexi
  • 1,670
  • 1
  • 19
  • 35
7
votes
2 answers

Point sprite size attenuation with modern OpenGL

I'm trying to render some particles with OpenGL 3+ using point sprites. I've just realized that I have a major issue with the points. They increase in size automatically with respect to the camera distance. Resulting in the following: Close to the…
glampert
  • 4,371
  • 2
  • 23
  • 49
5
votes
1 answer

GLSL PointSprite for particle system

I'm using an ParticleSystem with PointSprites (inspired by the Cocos2D Source). But I wonder how to rebuild the functionality for OpenGL ES…
Constantin
  • 8,721
  • 13
  • 75
  • 126
5
votes
4 answers

OpenGL ES 2.0 point sprites with distinct rotations - calculate matrix in shader?

I am trying to find a solution that will allow me to rotate point sprites about the z-axis with a varying attribute (i.e. uniform will not do). In my app I have many hundreds/thousands of point sprites being drawn per frame, which are then stored in…
Stuart
  • 36,683
  • 19
  • 101
  • 139
4
votes
3 answers

Multi-textured Point Sprites in OpenGL ES2.0 on iOS?

I am trying to make a multi-textured point sprite for an iphone application using OpenGL ES 2.0. I can't find any examples of this on web, and it doesn't seem to be working. Is there some built-in limitation where gl_PointCoord can't be used on…
Angus Forbes
  • 982
  • 1
  • 9
  • 21
4
votes
1 answer

Rendering Point Sprites across cameras in cube maps

I'm rendering a particle system of vertices, which are then tessellated into quads in a geom shader, and textured/rendered as point sprites. Then they are scaled in size depending on how far away they are from the camera. I'm trying to render out…
4
votes
1 answer

Android 5.1 crash -- glDrawArrays GL_POINTS -- Fatal signal 7 (SIGBUS), code 2

A couple months ago, after I update my Nexus 4 to Android 5.1 (now 5.1.1 -- both stock factory images from Google), one of my games started crashing while drawing particles using glDrawArrays with GL_POINTS. I've simplified, reimplemented the code…
3
votes
1 answer

Textured point sprites in OpenGL 4.3

Is there a way to apply a texture to a point sprite in OpenGl 4.3? I've searched around the internet but most tutorials and guides are using older versions that still support: glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_FALSE); However this…
IntSec
  • 41
  • 4
2
votes
1 answer

OpenGL point sprites with depth testing - a blending issue?

I am rendering point sprites (using OpenGL ES 2.0 on iOS) as a user's drawing strokes. I am storing these points in vertex buffer objects such that I need to perform depth testing in order for the sprites to appear in the correct order when they're…
Stuart
  • 36,683
  • 19
  • 101
  • 139
2
votes
0 answers

Use of Point Sprites in Android OpenGL ES 2.0

I've seen a few discussions regarding 'Point Sprites vs Textured Quad Sprites' and the like. However, one thing confuses me, if I understand correctly, aren't the size of point sprites limited (By a point sprite range)? I'm fairly new to OpenGL ES…
Zippy
  • 3,826
  • 5
  • 43
  • 96
2
votes
1 answer

Sprite Opacity using OpenGL ES 2.0 on Android

I'm trying to get my point sprites to display with the correct opacity. Originally, I was getting my sprite texture on a black square. So, I added the following to my fragment shader: "if(color.a < 0.5) "+ "discard;"+ Now, this does…
Zippy
  • 3,826
  • 5
  • 43
  • 96
2
votes
1 answer

Difference between Point Sprites and Billboards

Can someone tell me the difference between Point Sprites and Billboards in OpenGL? I read a lot about both of them and I'm getting confused more and more about when to use which of them and whether there is actually a difference?
user2026668
  • 53
  • 1
  • 6
2
votes
1 answer

Render textured point sprites using GLFW

I'm currently rendering a bunch of points to which I'd like to apply a texture using point sprites. To load my texture, I'm using GLFW. I followed the instructions in the OpenGL Super Bible chapter on this, but when I try to apply the texture in my…
Schnigges
  • 1,284
  • 2
  • 24
  • 48
1
vote
2 answers

Can I use Point Sprites in Java3D?

It looks like native support for Point Sprites was planned, but never got implemented in Java3D. Point Sprite RFE Short of adding it to the source code and compiling my own version of Java3D, is there any workaround that would let me create a…
Luke
  • 3,742
  • 4
  • 31
  • 50
1
2