Ever tried to play a video with that res in an usual player like winamp? I once tried with a lower res and it didn't run really smooth. If its supposed to be an animation with > 15FPS then I'd resample the hole thing to a lower res as already proposed.
However, if u're aming at multiple-threads, u could make a thread, that loads the files into memorystreams. That way the pics stay compressed in memory and the thread gets IO-suspended giving CPU-cycles to your main thread, which loads the pics from the memorystreams (a ringbuffer and some criticlesections should do the trick), uploads them into your VRAM and displays them. Next thing is, I would have a close look at the code that uploads the pics. glBitmap is rather a general purpose library, but as u always have the same pics (same res, same depth, ...) it should be possible to optimize the code further.
However, for a smooth animation u should really consider downsampling your pics.
_________________ [18:30] tomok: so wie ich das sehe : alles. was nich was anderes ist als nen Essay ist nen Essay
hi, i'm a signature viruz, plz set me as your signature and help me spread
1.
Could you give me code example which will resize my texture/quad to panel width or/and height
when i resize Form1 using Maximize title button or resize form manually? I have set OpenGL display panel anchors to:
top=true
left=true
bottom=true
right=true
2.
I'm thinking what quality impact could this resize have on my texture. Are there any Opengl texture resize
models like bicubic etc?
What should i write in onresize event of panel so my texture sticks to panel.width or panel height?
3. Is there an example code on Delphigl site which will show me how to zoom to my texture in my
application using mouse wheel up/down or any keyboard key?
Registriert: Do Sep 25, 2003 15:56 Beiträge: 7810 Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
Do you use one of our templates? If so, there is an OnResize eventhandler. You just have to modify this. It should be quite eays.
@2. : You can use some filters. Lossys loader has a function named "SetFilter" with this you can switch between GL_LINEAR and GL_NEAREST. (see glTexParameter for infos)
@3. : You can make the Quad bigger then your window. (-20,-20, width+20,height+20) The Texture will be streched automatically. If you use GL_LINEAR the color values will be interpolated. If you use GL_NEAREST it will looks ... bad.
_________________ Blog: kevin-fleischer.de und fbaingermany.com
Do you have an idea why textures are not visible on laptop which supports OpenGL?
The rendering context is just empty. I cannot see my image in the view.
I thought it may be a problem of too big texture size, but i have created
64x64 texture for test and the rendering window is still blank.
This problem occurs in Intel Extreme Graphics card on my laptop and also
on VMWare Workstation Windows installations.
Everything seems to be loaded but there is no texture on the quad.
all screen is background white.
One thing to point out, maybe important: I am using dglOpenGL.pas library version: 2.0
Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste
Du darfst keine neuen Themen in diesem Forum erstellen. Du darfst keine Antworten zu Themen in diesem Forum erstellen. Du darfst deine Beiträge in diesem Forum nicht ändern. Du darfst deine Beiträge in diesem Forum nicht löschen. Du darfst keine Dateianhänge in diesem Forum erstellen.