Questions tagged [opengl-1.x]

The first version of OpenGL, version 1.0, was released in January 1992 by Mark Segal and Kurt Akeley. Since then, OpenGL has occasionally been extended by releasing a new version of the specification.

The first version of OpenGL, version 1.0, was released in January 1992 by Mark Segal and Kurt Akeley. Since then, OpenGL has occasionally been extended by releasing a new version of the specification.

Release Dates:

  • OpenGL 1.1: March 4, 1997
  • OpenGL 1.2: March 16, 1998
  • OpenGL 1.2.1: October 14, 1998
  • OpenGL 1.3: August 14, 2001
  • OpenGL 1.4: July 24, 2002
  • OpenGL 1.5: July 29, 2003
33 questions
11
votes
1 answer

Dashed line in OpenGL3?

I'm currently porting an old OpenGL 1.1 application which makes use of wireframe models to OpenGL 3.0. In 1.1 following code is used to create a dashed line: glPushAttrib(GL_ENABLE_BIT); glLineStipple(1, 0x0F0F); glEnable(GL_LINE_STIPPLE); Here as…
Elmi
  • 5,899
  • 15
  • 72
  • 143
10
votes
2 answers

the difference between glOrtho and glViewPort in openGL

I am struggling to figure out something let's say im rendering some image that has a height of 100 and a width of 100. In scenario A I am taking a glOrtho(0,100,0,100,-100,100) and glViewPort(0,0,50,50) when glOrthois defined as…
crazyPixel
  • 2,301
  • 5
  • 24
  • 48
8
votes
2 answers

OpenGL: What does glRotatef rotate?

When I call the glRotatef like this: glRotatef(angle,0.0,1.0,0.0) //rotate about y-axis I know it is to rotate by angle degrees about the y axis. But, what is being rotated here? Which object exactly? Probably a silly question, but I'm entirely…
sanjeev mk
  • 4,276
  • 6
  • 44
  • 69
3
votes
1 answer

Minecraft transparent render hides blocks

I'm lost why does my texture renders as expected when I look it from south or east but hides the objects behind them when looking from north or west. I have an invisible block that renders multiple items inside it and having trouble with a block…
2
votes
1 answer

OpenGL 1.1 render at fixed resolution and upscale

I'm trying to render a scene at 320x240 permanently to emulate the feel classic 240p systems, and upscale it to the full size of the screen. The issue I have is that, although I can sort of fudge this effect using sprites of a set resolution and…
Hello234
  • 175
  • 2
  • 12
2
votes
0 answers

Restoring the last texture state in legacy OpenGL 1.x

I would like to remember a current texture state in OpenGL 1.x and later restore it. I can use glIsEnabled to check which texture types are active. Does it make sense to have enabled more than one text type, for example, GL_TEXTURE_2D and…
Irbis
  • 1,432
  • 1
  • 13
  • 39
2
votes
1 answer

Low OpenGL alpha values cropping

I've injected a DLL into a game process to make a overlay interface, but the problem is that alpha values are being "cropped" (not rendering at all) I've tested several alpha values and it seems to fail if alpha is below 0.3. To illustrate what…
WoLfulus
  • 1,948
  • 1
  • 14
  • 21
1
vote
1 answer

GLFW3/GLU 3D world space using static pipeline

In previous projects, I enabled depth testing used gluPerspective called once on startup to set up a 3D space. Currently, I am rendering a square between -0.5 and 0.5 with 0.0 as its origin after the 3D world has initialised with code below will…
Blunderchips
  • 534
  • 4
  • 22
1
vote
1 answer

How to use the ambient color of the material instead of the global ambient color of lights? (OpenGL 1)

I'm writting the lighting effect of my programming in OpenGL 1.1. The light and normals stuffs works. I have only a wrong color I would like to use the ambient color of the used material but not the global ambient light. When I use this code, I have…
John Smith
  • 11
  • 2
1
vote
1 answer

OpenGL GlOrtho no primitives appearing

I am drawing on a texture and then rendering this texture to the screen using GL_QUADS. There is no problem drawing the texture on screen, but while drawing to the texture the only operation that has any effect is glClear(GL_COLOR_BUFFER_BIT |…
matt_rule
  • 1,220
  • 1
  • 12
  • 23
1
vote
2 answers

glMultMatrix doesn't work inside of glBegin()

I am creating a program that allows me to plot points in 3 space, connects them using a Catmull-Rom Spline, and then draws a cylinder around the Spline. I am using GL_TRIANGLES_STRIP to connect circles of points drawn around the Spline at short…
Jamie
  • 132
  • 2
  • 12
1
vote
1 answer

Simple Colored 3D Prism

I started learning OpenGL and I'm using it with SFML 2.1 to get window, load images, etc. But I've got a problem with simple prism. Faces are partly transparent and it looks terrible :/ I was looking at tutorials, but I don't know what is wrong with…
Jakub Powierza
  • 111
  • 2
  • 11
0
votes
0 answers

How can I draw a circular filled region in OpenGL?

I want to draw a circular filled region like this using OpenGL version 1.3: How can I draw such a shape?
iammetehan
  • 11
  • 3
0
votes
1 answer

Can you mix shader and non shader code in opengl?

I'm currently trying to implement a minimap (basically just colored pixels next to each other) with the LWJGL opengl library. So I have the problem when I try to use glBegin(GL_POINTS); for the following…
HopefullyHelpful
  • 1,652
  • 3
  • 21
  • 37
0
votes
1 answer

Is it possible to use glScalef on a bitmap that is drawn with glBitmap?

I'm making a text renderer that uses FreeType 2 and legacy OpenGL. Problem is, FreeType 2's coordinate system has (0, 0) in the top left corner while OpenGL's coordinate system is Cartesian. This means I have to flip the bitmap. I expected glScalef…
1
2 3