|
Post by scalion on Sept 23, 2020 7:08:16 GMT 1
Hello all,
I dont have time this evening, i come back with source today.
And hop ! i'm here. Well, hi JM, au taquet comme d'hab ! Ca fait plaisir. Donc comme promis la source, j'espère rien avoir oublié cette fois, j'ai mis la dernière version de la librairie pour les fichier PNG (je vais bientôt m'en passer de celle là, je reviendrais plus tard pour dire comment). J'ai pas mis le OpenGL.inc.lg32 je crois qu'on a les mêmes. Il y le petit fichier d'aide au format RTF, mais il est accessible directement depuis le programme. Voilà voilà.
Bon je précise quand même que j'ai fait ce sympathique petit outils dans le cadre du développement d'un autre truc (bientôt). Au départ le but de ce programme est de générer une jolie image de planète et j'ai poussé un peu le délire... Bonne soirée !
Edit du 24/09/2020 : Bon d'accord j'avais oublié un petit fichier, je remet le source complet.
|
|
|
Post by scalion on Sept 24, 2020 21:14:37 GMT 1
Merci Jean-Marie pour le le fichier opengl.inc et pour cette preview (vu la taille de l'image tu as un écran du tonnerre !!!) J'ai mis à jour mon 1er post avec le source complet (je l'ai modifié un chouilla pour ajouter ton étoile que je trouve rigolote). Bonne soirée.
Une planète au hasard...
Avec une map de Mars :
En fait pour avoir un meilleur rendu, en particulier au niveau des pôles, il faudrait utiliser un cupe map ou plus simplement un tetraedre map, je vais voir.
|
|
|
Post by Roger Cabo on Sept 29, 2020 21:32:27 GMT 1
Great Stuff! very nice!
Can some one explain how to run with GB32? I have all files including the _OpenGL.inc.lg32 in a sepatae directory, also gb32.exe and ocx32.
But I get the error: Type does not fit: at 675: Global PFD As PIXELFORMATDESCRIPTOR
Thank you!
|
|
|
Post by scalion on Sept 30, 2020 9:47:25 GMT 1
Hi rogercabo, and welcome. First thing : you must have the last version of GFA-Basic32 . Go here to check : gfabasic32.blogspot.com/p/download.htmlNext, verify you have the OpenGL.inc.lg32 in the same directory of Planetarius OpenGL 3d.g32. Or if if you want you can replace the OpenGL.inc.lg32 found in ...\GFABASIC32\Include directory by those you downloaded. Dont forget to save it before.
Finally, you can also insert the type manually in the top of program Planetarius OpenGL 3d.g32 (or the source of OpenGL.inc.lg32 and recompile it) 'Pixel-Format: Type PIXELFORMATDESCRIPTOR - Short nSize, nVersion - Int dwFlags - Byte iPixelType, cColorBits, cRedBits, cRedShift, cGreenBits, cGreenShift - Byte cBlueBits, cBlueShift, cAlphaBits, cAlphaShift, cAccumBits - Byte cAccumRedBits, cAccumGreenBits, cAccumBlueBits, cAccumAlphaBits - Byte cDepthBits, cStencilBits, cAuxBuffers, iLayerType, bReserved - Int dwLayerMask, dwVisibleMask, dwDamageMask EndType
|
|
|
Post by ventilo25 on Oct 8, 2020 14:48:05 GMT 1
Merci Scalion pour ce merveilleux voyage cosmique ! Ce programme ne fonctionnait pas sous Win Vista, mais parfaitement bien sous Win 8-10, il y a ce message au lancement: "Exception while adding Library to Imports. To fix: Save (with $Library statement) and reload." mais ça marche quand même.
Thank you Scalion for this wonderful cosmic journey! This program did not work under Win Vista, but perfectly fine under Win 8-10, there is this message at launch: "Exception while adding Library to Imports. To fix: Save (with $ Library statement) and reload. " but it still works.
|
|