Foro | | | | - Página 1 - |
|  Tango | ¡Hola XProfan-Fans Yo bin neu hier y habe mich veces a una pequeña Test gewagt. Mi Programmierkenntnisse son todavía de el 80'ern. Und una Wenig Basic.NET. Aber no herausragenden Kenntnisse.
A Sache: Wollte una Laufschrift programa. Soweit klappt lo auch. Doch si yo con...
oGL("Locate", -5.95 + 0.4 * cos(cnt1!) + cnt3! , 3.25 + 0.05 * cos(cnt2!) )
... el Counter cnt3! herunterzähle y él en Null ankommt, erlischt el Laufschrift al linken Bildschirmrand. Um el Texto a hinter el linken Bildschirmrand durchlaufen que se, bräuchte uno wohl negative Werte. Das klappt irgendwie no.
Sombrero alguien una Concepto, Yo el Lauftext komplett durchlaufen dejar kann sin el él al Bildrand ausblendet??
Wäre para Ayuda muy dankbar.
Gruss de Castrop |
| | | | |
| | | | | - Página 1 - |
|  Tango | Tango (12.02.2017)
¡Hola XProfan-Fans  Yo bin neu hier y habe mich veces a una pequeña Test gewagt. Mi Programmierkenntnisse son todavía de el 80'ern. Und una Wenig Basic.NET. Aber no herausragenden Kenntnisse. A Sache: Wollte una Laufschrift programa. Soweit klappt lo auch. Doch si yo con... oGL("Locate", -5.95 + 0.4 * cos(cnt1!) + cnt3! , 3.25 + 0.05 * cos(cnt2!) ) ... el Counter cnt3! herunterzähle y él en Null ankommt, erlischt el Laufschrift al linken Bildschirmrand. Um el Texto a hinter el linken Bildschirmrand durchlaufen que se, bräuchte uno wohl negative Werte. Das klappt irgendwie no. Sombrero alguien una Concepto, Yo el Lauftext komplett durchlaufen dejar kann sin el él al Bildrand ausblendet?? Wäre para Ayuda muy dankbar. Gruss de Castrop
Como ahora ?!? keiner nen Plan oder keiner Bock nem Neuling a helfen??? |
| | | | |
| |  E.T. | Bitte lauffähiges Ejemplo, de sólo uno Línea probablemente keiner así correcto schlau  |
| | | XProfan X3Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 13.02.2017 ▲ |
| |
| |  Tango | E.T. (13.02.2017)
Bitte lauffähiges Ejemplo, de sólo uno Línea probablemente keiner así correcto schlau 
Sí, el sehe Yo una, sorry.
Was Yo möchte: una Lauftext el de el rechten Bildschirmrand kommt y en el Linken verschwindet y se natürlich después de uno gewissen Tiempo wiederholt. Davon zwei. Einmal oben, el Andere unten, sólo langsamer. Como el C64/Amiga Demos de el 80'er ebend ;) (Dazwischen una Diashow con je zwei Bildern jeweils ansprechend animiert como Kollage dargestellt.) Aber Yo schaffe sí todavía no una vez dien LText
Und el Ganze anhand el Lesson13 y/oder auch Lesson14 de Kurs 4.
Más eigentlich no. Deswegen el einzelne Línea oben, ligeramente adaptado para L.13.
Denn como Yo gemacht habe verschwindet el LText sobald él al linken Bildrand ankommt. |
| | | | |
| |  HofK | Tango (14.02.2017)
E.T. (13.02.2017)Bitte lauffähiges Ejemplo, de sólo uno Línea probablemente keiner así correcto schlau  Und el Ganze anhand el Lesson13 y/oder auch Lesson14 de Kurs 4. Más eigentlich no. Deswegen el einzelne Línea oben, ligeramente adaptado para L.13. Denn como Yo gemacht habe
Se puede no esperar, dass el potentielle Helfer sólo una vez selber recherchieren muss worum lo eigentlich va. Yo habe sólo XProfan 11, pero si Yo como en el Ayuda schaue, finde Yo bajo Kurse auch OGL. Como entonces auch una Lektion13 o. 14, el sicher gemeint es - Por favor, así algo siempre igual exakt con angeben, no cada es gerade en OGL.
Aber entonces dazu eben auch el kompletten/auszugsweisen Ver código fuente, dazu hay beim Verfassen des Beitrags oben rechts neben el Smilies beim Dreieck/Pfeil el Quelltextbox. Sonst puede ser no Fehler suchen/encontrar! Manchmal es sólo una unscheinbarer Fehler el uno incluso übersieht - va me ständig así - normal! |
| | | | |
| |  Tango | Okay, habe verstanden. Also entonces hier el Ver código fuente:
El Los cambios Yo con 'Neu eingefügt' dokumentiert. Wenn uno lo nun startet sieht uno, Yo mi.
Und tan completamente nebenbei Yo mich con mp3 beschäftigt, qué auch muy bien funktioniert. Aunque möchte Yo el mp3 invitar y abspielen sin Auswahldialog. Also sin LoadFile$. Kann al auch anders hacer - also direkt invitar y luego abspielen dejar? Bin primero en WAV ausgewichen. Pero no así schön, porque simplemente muy groß así una WAV.
Mit el Besitz dieser Informationen komme Yo ya en einiges más y kann vieles ausprobieren.
' Programa: lesson13
' para XProfan 9
declarar font&, \' Base Display List For The Font Conjunto
cnt1!, \' 1st Counter Used To Move Texto & For Coloring
cnt2!, \' 2nd Counter Used To Move Texto & For Coloring
cnt3!' Neu eingefügt
cnt3! = -7
declarar time&, frames%
proc DrawGLScene
oGL("Clear")
oGL("Origin", 0, 0, -2)' Move Into The Screen
oGL("Color", cos(cnt1!), sin(cnt2!), 1 - 0.5 * cos(cnt1! + cnt2!), 1)
cnt1! = cnt1! + 0.051' Increase The First Counter
cnt2! = cnt2! + 0.005
cnt3! = cnt3! + 0.007' Neu eingefügt
' Increase The 2nd Counter
oGL("Locate", -5.95 - cnt3!, 0.32 * sin(cnt2!))' Position The Texto On The Screen ************ Neu eingefügt
oGL("Print", font&, "Text en OpenGL con XProfan 9")' Imprimir GL Texto To The Screen
oGL("Show")
ENDPROC
' Hauptprogramm
' -------------
declarar ende%, hfont&
CLS 0
oGL("Init", %hWnd, 0, 0, 0, 1)
hfont& = create("Font", Arial, 32, 0, 0, 0, 0)
font& = oGL("BitmapFont", hfont&)
deleteobject hfont&
Ende% = 0
time& = &GetTickCount
setTimer 10' max. 100 Frames /sek.
Sinestar encargado ende%
WaitInput
If IsKey(27)
Ende% = 1
EndIf
DrawGLScene()
inc frames%
if &GetTickCount - time& >= 1000' 1 Sekunde es 'rum
setText %hWnd, str$(frames%) + " Frames / sek"
time& = &GetTickCount
frames% = 0
endif
EndWhile
killTimer
end
|
| | | | |
| |  E.T. | Yo denke, el en el 2D el Localizar no así weit en el negativen Zona positionieren kann. Darauf ha aber sicher Roland el genaue Antwort.
Posesiones en el Schnelle aber veces Lekt. 14 algo modifiziert, con 3D-Texten gibts como no Problemas, Move verschiebt wohl a para 800elfzigsten Monitor 
Yo hoffe, el hilft primero algo más, habs sólo beim Feierabend - zusammengetüdelt 
' Programa: lesson14
' para XProfan 10
declarar font&, rot!, pos!
pos!=8
declarar time&, frames%
proc DrawGLScene
pos! = pos! - 0.05
oGL("Clear")
oGL("Origin", 0, 0, -12)
' oGL("Rotate", rot!, rot! * 0.1, rot! * 0.09)
oGL("Color", cos(rot!/20), sin(rot!/25), 1 - 0.5*cos(rot!/17), 1)
oGL("Move", pos!, 0, 0)
oGL("Print", font&, "OpenGL con XProfan 9")
rot! = rot! + 0.5
oGL("Show")
locate 0,0
imprimir str$(pos!)
ENDPROC
' Hauptprogramm
' -------------
declarar ende%, hfont&
CLS 0
oGL("Init", %hWnd, 0, 0, 0, 1)
hfont& = create("Font", "Courier New", 48, 0, 1, 0, 1)
font& = oGL("OutlineFont", hfont&, 0.3)
deleteobject hfont&
Ende% = 0
time& = &GetTickCount
setTimer 25' max. 100 Frames /sek.
Sinestar encargado ende%
WaitInput
If IsKey(27)
Ende% = 1
EndIf
Case pos! < -18 : pos! = 7'Texto otra vez después de rechts
DrawGLScene()
inc frames%
if &GetTickCount - time& >= 1000' 1 Sekunde es 'rum
setText %hWnd, str$(frames%) + " Frames / sek"
time& = &GetTickCount
frames% = 0
endif
EndWhile
killTimer
end
|
| | | Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 15.02.2017 ▲ |
| |
| |  E.T. | ... a el mp3-Geschichte : (Dafür Por favor, el nächste veces una separates Thema aufmachen, wegens el UnÜbersichtlichkeit )
Hab auch hier veces una Bsp. de el XProfan-Ayuda (15.5 - MP3- y MPG-Archivos) "verunstaltet", así el uno una mp3-Expediente simplemente el .exe ziehen kann y lo se "geplayert", oder en Fehler oder Prog-Start sin Expediente eben el Auswahl-Diálogo geöffnet.
En el Start-Parametern Ayuda (Stichwort "Parameter") beachten, en el mi Bsp. funzt el sólo .exe .
Soll sí aber auch sólo una Hilfestellung ser, como ir kann 
|
| | | XProfan X3Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 15.02.2017 ▲ |
| |
| |  Tango | Super!
Erstmal Herzlichen Dank para el wertvollen Tipps.
Posesiones ahora veces una wenig experimentiert y habe "meinen Anfang" gefunden 
Yo voluntad mich al WE dran hacer y el primero testen y una wenig con el Parametern spielen.
Bisher scheint alles bastante vielversprechend.
Natürlich voluntad Yo, sobald algo Vorzeigbares esta heraus kommt, el código veces puesto. Bin en Eure Meinung gespannt y natürlich auch para Tipps y Verbesserungsvorschläge.
In diesem Sinne nochmals Gracias a a Euch. |
| | | | |
| |  p.specht
 | Lektion 14 löst dein Problema con el linken Rand! Probier veces el Ejemplo 14 con x-Origin = -3 ! |
| | | XProfan 11Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'... | 16.02.2017 ▲ |
| |
| |  Tango | So, Yo jetz veces algo con mi Tool gebastelt. Klappt auch soweit. Dank el Tipps de euch. Jetzt gibts aber otra vez una Problema Yo no lösen kann. Como bekomme Yo nun una Normales JPG en el 3D-Welt?
Eigentlich incluso zwei oder drei Bilder gleichzeitig. Posesiones como a Sprites pensamiento aber el JPG como Textur scheitert al Formato, Größe oder Auflösung. Also no gute Concepto. Das Gleiche gilt auch para kleine Video Clips. El debería si posible auch eingeblendet voluntad puede.
En el Bildern habe lo con "DrawPic bild1&, 20, 20; 0" intenta. Doch el erscheint kurz y verschwindet. Ist auch bastante klar, como el 3D-Welt esta Befehl wohl otra vez überdeckt.
Mit el Videos Yo lo sólo garnicht intenta.
Posesiones media Code angehängt.
Wer weis como Rat?
/*
Diashow
*/
Ventana de Estilo 64 + 16'Ventana sin Rahmen y
Ventana %MaxX, %MaxY'Ventana a Desktopauflösung adaptar
CLS 0'Bildschirm Schwarz färben
Declarar Ende%'Variable para Abbruchbedingung
Declarar hfont&, font&'Variables para Font1
Declarar pos!, rot!'Positions- y RotationsVariablen
Ende% = 0'Startbedingung 0 - Also kein Abbruch
pos!=12'Position des Textes außerhalb des rechten Bildschirmrandes
rot!=0'Rotation = 0
oGL("Init", %hWnd, 0, 0, 0, 0)'OpenGL Init
oGL("LoadXPGL", "Linie.xpgl")'Lädt Linienpunkte de Expediente Linie.xpgl
oGL("UseXPGL", 1)'Verwendet esta Linienpunkte
hfont& = create("Font", "Courier New", 64, 0, 0, 10, 0)'Lädt Font en Variable hfont&
font& = oGL("OutlineFont", hfont&, 0.3)'Weist hfont& oGL a
deleteobject hfont&'Zerstört Objeto hfont& otra vez, porque lo después de Zuweisung no mehr benötigt se
MIDI("Play", $PROGDIR + "irgendeinSound.mp3", 1)'Spielt mp3 de el Programmverzeichnis de de el dieses Programa comenzó wurde
SetTimer 5'max. 100 Frames /sek.
Sinestar encargado ende%'Wenn no Abbruchbedingung erkannt wurde, durchlauf des Timers
WaitInput'wartet en Abbruchbedingung
If IsKey(27)'es Abbruchbedingung "Escape-Taste" erfüllt, entonces
Ende% = 1'setzte Variable Ende% en 1
EndIf'y beende esta Abfrage
Case pos! < -22 : pos! = 12'Wenn Texto hinter linkem Bildschirmrand verschwunden entonces starte ihn otra vez de Vorne
Case rot! <= 90 : rot!=0'Wenn Rotationswinkel 90Grad erreicht, entonces en 0 conjunto
DrawLauftext()'Zeichne derweil OpenGL
EndWhile'Springe a Sinestar encargado
KillTimer'Beende después de 5ms el Temporizador oder mejor dijo: Springe después de 5ms otra vez para SetTimer
End
'----------------------------------------------------------------------------
proc DrawLauftext
pos! = pos! - 0.05
rot! = rot! + 0.05
oGL("Clear")
oGL("Origin", 0, 0, -12)
'oGL("Rotate", rot!, rot! * 0.1, rot! * 0.09)
oGL("Color", cos(rot!), sin(rot!), 1 - 0.5*cos(rot!), 1)
oGL("Move", pos!, 4.3, 0)
oGL("Print", font&, "OpenGL con XProfan 9")
oGL("Origin", 0, 0, -12)
oGL("Color", cos(rot!), sin(rot!), 1 - 0.5*cos(rot!), 1)
oGL("Move", pos!/0.7, -4.7, 0)
oGL("Print", font&, "OpenGL con XProfan 9")
oGL("Origin", 0.0, 0.0, -9.0)'Setzt Position el XPGL-Linien
oGL("DrawXPGL", 0, 4)'Zeichnet ebend esta Linien
oGL("Show")'Espectáculos Lauftext y Linien
ENDPROC
|
 | | | | |
| |  RICOSCH | hallo Tango,
hatte antes einiger Tiempo veces con OpenGL rumgespielt ,damals ha me IF a Página gestanden.
Hier hast Usted una una kleine Demo el Usted gerne más uso kannst vieleicht hilft lo Usted sí.
Ratón bewegen después de links / rechts bewegt el Bilder links / rechts Botón del ratón 2 y maus después de oben y unten Zommt el Bilder herein y otra vez fuera.
hatte veces una Cooliris Bildbetrachter en Planung aber mi Hardware war irgendwie überfordert, el hilo dazu gibts hier sicher todavía. |
| | | | |
| | | | - Página 2 - |
| |  Tango | RICOSCH (28.02.2017)
hallo Tango,
hatte antes einiger Tiempo veces con OpenGL rumgespielt ,damals ha me IF a Página gestanden.
Hier hast Usted una una kleine Demo el Usted gerne más uso kannst vieleicht hilft lo Usted sí.
¡Hola RICOSCH,
dieses Demo hilft mächtig más Respect primero! Yo wäre en esta Programmierweise nie sin Ayuda gekommen gekommen. Como merkt uno primero como eingeschränkt Yo como VB-Programmierer pensamiento habe. Aber como war lo auch schwierig sin API-Kenntnisse. Mein Ansatz wäre esta todavía una zweites y drittes unsichtbares Ventana gewesen en esta entonces - irgendwie a verbauen. Frisst entonces pero probablemente reichlich Rechnerleistung. Tiempo abwarten... Yo mache micht ahora veces daran deinen Code a verstehen y mi Diashow einzunauen. Si el entonces funktioniert, lugar Yo, el Code veces online. |
| | | | |
|
RespuestaTema opciones | 10.465 Views |
ThemeninformationenDieses Thema ha 5 subscriber: |