PDA

View Full Version : please help me in display lists



saaasaaan
07-09-2013, 12:59 AM
can every body help me?
when I create more display lists for example more than 200 list when I click in run
game before run exit from gl window
and when I use few lists its work Correctly
Does opengl have limitation about more than 200 lists
please help me?
I sure my objects are correct
every objects size is Range of 100kB in .obj format

Aleksandar
07-09-2013, 03:48 AM
No. OpenGL has no such limit in the number of DLs (in fact, there is, but it is pretty high - defined by max. integer number used for their IDs). Even if there is no space in video memory, OpenGL still works and swaps objects to/from video memory. I, personally, displayed scene with 64K DLs without any problem many years ago.

saaasaaan
07-09-2013, 01:39 PM
thanks alot for you
but I dont know what do I do for fix this wrong
in my opinion every things are ok
can I want you to write your display lists in your codes
for example write your code only from glint index=glGenLists(1000);
to glEndList();
They are my lists:

Glint index = glGenLists(91);
glNewList(index,GL_COMPILE);
.......use object
glEndList();
............
glNewList(index+90,GL_COMPILE);
.......use object
glEndList();

and then I use

Glint index2 = glGenLists(100);
glNewList(index2,GL_COMPILE);
.......use object
glEndList();
............
glNewList(index2+99,GL_COMPILE);
.......use object
glEndList();

Is this code correct ?

thank you

saaasaaan
07-09-2013, 03:18 PM
when I want run my program my windows give an error about visual memory
my graphic card is nVidia GeForce 7100 GS
Brand
GIGABYTE

Model
GV-NX71G512P8-RH

Interface

Interface
PCI Express x16

Chipset

Chipset Manufacturer
NVIDIA

GPU
GeForce 7100GS

Core Clock
350MHz

PixelPipelines
4

Memory

Effective Memory Clock
700MHz

Memory Size
512MB(128MB on Board)

Memory Interface
64-bit

Memory Type
GDDR2

3D API

DirectX
DirectX 9

OpenGL
OpenGL 2.0

Ports

D-SUB
1 x D-SUB

DVI
1 x DVI

TV-Out
HDTV / S-Video / Composite Out

VIVO
No

General

Tuner
None

RAMDAC
400 MHz

Max Resolution
2048 x 1536

RoHS Compliant
Yes

SLI Support
SLI Ready

Cooler
Fanless

Features

Features
Intellisample 4.0
UltraShadow II
TurboCache Technology
CineFX 3.0 Engine
nView Multi-Display Technology
Microsoft DirectX 9.0 Shader Model 3.0
PureVideo HD
Screen-Cooling

saaasaaan
07-11-2013, 04:06 PM
when i write glDeleteList and delete lists after create program work correctly
but if i dont use gldeletelist my program crashed