Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Fr Jul 18, 2025 00:42

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 61 Beiträge ]  Gehe zu Seite Vorherige  1, 2, 3, 4, 5  Nächste
Autor Nachricht
 Betreff des Beitrags:
BeitragVerfasst: Mo Mär 27, 2006 12:42 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
error is around file list component/ file filtering. i'm working on it;)


Zuletzt geändert von Aro am Mo Mär 27, 2006 13:16, insgesamt 2-mal geändert.

Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Mär 27, 2006 13:00 
Offline
DGL Member
Benutzeravatar

Registriert: Do Dez 05, 2002 10:35
Beiträge: 4234
Wohnort: Dortmund
Yes. The speedup it not so much because the loading of the image take much more times.

What for an error you get?


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Mär 27, 2006 13:14 
Offline
DGL Member
Benutzeravatar

Registriert: Do Dez 05, 2002 10:35
Beiträge: 4234
Wohnort: Dortmund
I have moved the thread to the english forum. better place. ;-)


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Mär 27, 2006 14:11 
Offline
DGL Member

Registriert: Sa Jan 22, 2005 21:10
Beiträge: 225
Zitat:
I need to use 1600x1200 images.

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 :)


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Mär 28, 2006 09:48 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
I have what i need. I wish to thank you for helping me. BIG thank you for your time!


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Mär 28, 2006 14:01 
Offline
Guitar Hero
Benutzeravatar

Registriert: Do Sep 25, 2003 15:56
Beiträge: 7810
Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
Hope we heare from you, when you publish your work.

So long

_________________
Blog: kevin-fleischer.de und fbaingermany.com


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Mär 28, 2006 19:27 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
Flash hat geschrieben:
Hope we heare from you, when you publish your work.
So long


Yes. I will be back here soon, to show the results.


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Mär 29, 2006 10:42 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
Hello again:)

I'm still working on this application.

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?


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Mär 29, 2006 14:05 
Offline
Guitar Hero
Benutzeravatar

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


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Mär 29, 2006 16:14 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
solved


Zuletzt geändert von Aro am Do Mär 30, 2006 02:08, insgesamt 1-mal geändert.

Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Mär 29, 2006 20:09 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
ok! i have managed to write code which changes GlOrtho to zoom in/out the image,
in Render function.

Now i am thinking how to move my quad with texture around - this is needed to zoom to the mouse
pointer and not just zoom in/out.

Could you give me a tip how to move the quad left, right, bottom, up?

I would then write some function which will check mouse coordinates and then
move the quad with texture, so mouse wheel zooms in to the mouse point.


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Mär 29, 2006 22:51 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
I'm looking at demo4 and demo5 in tutorials. maybe that can help me;)


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Mär 29, 2006 23:49 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
Almost everything done!


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Apr 12, 2006 18:50 
Offline
DGL Member

Registriert: So Mär 19, 2006 12:30
Beiträge: 29
Hello again;))

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


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Apr 12, 2006 22:34 
Offline
Guitar Hero
Benutzeravatar

Registriert: Do Sep 25, 2003 15:56
Beiträge: 7810
Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
Normaly I would say "It's the size" but 64x64 should work...

How do you load your textures? Du you check for OpenGL errors?

_________________
Blog: kevin-fleischer.de und fbaingermany.com


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 61 Beiträge ]  Gehe zu Seite Vorherige  1, 2, 3, 4, 5  Nächste
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 0 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.

Suche nach:
Gehe zu:  
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.008s | 15 Queries | GZIP : On ]