Autor Beitrag
neo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Di 30.12.03 14:45 
Wie kann ich einen Text in ein Spiel zeichnen (OpenGL, DirectX)? Welche Engine wäre egal.
Er sollte halt immer sichtbar sein
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 19:57 
Hallo,

in OpenGL: Zeigne erstmal deine 3D-Szene, ändere dann die Kameralinse auf 2D mithilef von gluOrtho2D(). Dann kannst du im 2D-Modus rendern, und das ist immer sichtbar. Du kannst natürlich auch textureirte Polygone rendern, z.B. für Fontmaps.

_________________
Life is a bad adventure, but the graphic is really good!
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Di 30.12.03 20:16 
Titel: RE:
Ich meinte ja in ein bestehendes Spiel. Also ein Spiel wie zbsp. Fifa das gerade läuft
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 20:20 
Hallo,

ach so... nee, wüsste jetzt nicht... sorry... höchstens mit nem top-level-fenster, dessen hintergrund man mit alpha entfernt!

_________________
Life is a bad adventure, but the graphic is really good!
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Di 30.12.03 20:46 
Titel: RE.
Und wie würdest du das dann machen?
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: Di 30.12.03 21:31 
da gibts doch irgendwo ne anleitung, wie man seinem Formular ein paar ecken rein machen kann, das in Verbindung mit einem Fenster mit der Eigenschaft StayOnTop sollte gehen, aber was soll das ganze eigentlich? ne art trainer, ein cheatoder ne FPS anzeige ????

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Di 30.12.03 21:47 
Hallo,

du kannst z.B. dein Form rot machen, und mit schwarz schreiben. Wenn du die Eigenschaft "TransoparentColor" des Forms auf True und "TransoparentColorValue " auf rot setzt, verschwident alles rote, du siehst nur noch den Text.

Ein Top-Level Window erzeugt man mit SetWindowPos():
ausblenden Delphi-Quelltext
1:
SetWindowPos(Form1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE);					

_________________
Life is a bad adventure, but the graphic is really good!
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Di 30.12.03 23:47 
Titel: RE:
Aber das sieht man sicher nicht innerhalb von Spielen.
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mi 31.12.03 15:54 
Hallo,

hast du schon mal Unreal oder Quake gespielt, und nebenher meldet sich TVgenial zu wort? Das Sieht man wohl! Wie dem auch sei, wenn du es nicht probierst, wirst du es nie erfahren... :wink:

_________________
Life is a bad adventure, but the graphic is really good!
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Mi 31.12.03 15:58 
Titel: RE:
Ich habs ja schon probiert, funzt ned
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: Mi 31.12.03 16:03 
also ich hab so ne Logitech Tastatur mit nem Lautstärkeregler, wenn ich den betätige erscheint so etwas wie bei nem Fernseher, wo man die aktuelle Lautstärke sieht, das funktioniert jedoch nicht bei allen spielen, counter z.B. mag das überhauptnicht und hat danach den üblich sound bug und einige anedere spielen zeichenen diesen Bereich nacher nur noch schwarz :?

ich denke di machen das einfach mit nem form mit stayontop, weil wenn man im hintergrund z.B. den editor hat und dann mit der maus auf diese Anzeige fährt hat man den normalen Cursor

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Mi 31.12.03 16:46 
Titel: RE:
Hab ich schon alles probiert, kein Erfolg. Vielleicht bringst du ja was zusammen
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Mi 12.05.04 17:47 
^push
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: Mi 12.05.04 18:02 
alter pusher :P
also wenn es mit dem stayontop net get wirste dich mal im winapi forum umshen müssen...

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche
neo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179



BeitragVerfasst: Mi 12.05.04 18:12 
Hab schon gsucht, gibts aber nix passendes
Pre]Modi
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Fr 14.10.05 10:40 
Hi,
Schon 1 Jahr vorbei.
Aber das selbe interessiert mich auch.
Habs schon mit SetWindowPos versucht aber geht nur in Windows aber nicht wenn man Spiel.
Die form flimmert vielleicht kurz 2 mal auf in Spiel dann ist sie wieder wech obwohl sie in Timer ist.
Amateur
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 777

(Win98, WinMe) WinXP Prof
D3 Prof, D6 Pers, D2k5 Pers., Turbo C++ Explorer
BeitragVerfasst: Fr 14.10.05 13:06 
mich würd auch ma interessieren was ihr damit vorhabt... kannste dir ja nen fadenkreuz aufn desktop malen um z.b. bei cs immer mit der awp zu treffen auch ohne zoom. aber dafür gibts die einfach variante mit dem analogen edding. den nimmste und malst dir auf deinen bildschirm nen fadenkreuz...
mh ne ich denk ma das geht auch nur mit winapi. ich hab noch net icq probiert bei nem spiel zu öffnen ob das oben bleibt. aber das is das nervigste prog was ich kenne denn das pflanz sich immer in den vordergrund. obs bei spielen auch geht keine ahnung. ansonsten mal geguckt ob dieses tv prog dlls hat? viell steht da ja ne windowsmessage oder so drin die es nach oben befördert...

_________________
"Kein dummes Gerede. Kein Rumrätseln. Denkt an nichts anderes mehr, nur noch an das, was vor euch liegt. Das ist die wahre Herausforderung. Ihr müßt euch vor euch selbst schützen, Leute." (Rennes in "Cube")
Beiträge: >700
Lossy eX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1048
Erhaltene Danke: 4



BeitragVerfasst: Fr 14.10.05 13:14 
Kennt ihr Fraps? Die zeichnen Zusatzinfos direkt ins Fenster. Und die gehen noch weiter. Die sind so heiß und können jedes einzelne Bild auslesen.

Ich denke mal, dass die das mit geschickten Hooks lösen und sich in verschiedene DLL Aufrufe einklinken. Denke mal durch DLL Injection oder wie sich das schimpft. Also zur Laufzeit sich vor einem DLL Aufruf setzen. Und dann ist man wohl auch in der Lage noch etwas zu zeichnen, obwohl die Coder gar nicht zur Anwendung dazu gehört.

Bin mir nicht ganz sicher. Ist aber nur ne Vermutung und wage These.

_________________
Nur die Menschheit ist arrogant genug, um zu glauben sie sei die einzige intelligente Lebensform im All. Wo nicht mal das nachhaltig bewiesen wurde.