GmOgre [v 1.25]

Argomenti riguardanti il D3D di GameMaker e librerie esterne.
Jak
Admin
Messaggi: 12355
Iscritto il: 19/08/2009, 16:20
Specialità: Programmazione 3D
Uso: GM:Studio 2
Contatta:

GmOgre [v 1.25]

Messaggio da Jak »

Si sente parlare sempre di più di GMOGRE così ho colto l'occasione per parlare di questa nuovissima dll dedicata a GM.

Ogre3d porting per GM, fonte ufficiale: http://gmc.yoyogames.com/index.php?showtopic=455439

Immagine

Traduzione fonte, fatta velocemente:
Spoiler
GMOgre3d è un port per GM del popolarissimo motore 3d open-source OGRE (Object-Oriented Graphics Rendering Engine).
Perchè fare il porting di OGRE per GM? Perchè il supporto 3d built-in su Game Maker contiene solamente le funzionalità 3d più semplici.
Se si vuole usare un 3d migliore per i propri giochi bisogna rivolgersi a librerie grafiche di terze parti come OGRE.

Ho scelto di portare OGRE su GM perchè è un motore 3d molto popolare ed è costantemente aggiornato e migliorato.
Inoltre ha una grande e appassionata base di utenti attivi.
Caratteristiche in Eng:
Spoiler
Material / Shader support

* Powerful material declaration language allows you to maintain material assets outside of your code
* Supports vertex and fragment programs (shaders), both low-level programs written in assembler, and high-level programs written in Cg
* Supports the complete range of fixed function operations such as multitexture and multipass blending, texture coordinate generation and modification, independent colour and alpha operations for non-programmable hardware or for lower cost materials
* Multiple pass effects, with pass iteration if required for the closest ‘n’ lights
* Support for multiple material techniques means you can design in alternative effects for a wide range of cards and GMOgre3D automatically uses the best one supported
* Material LOD support; your materials can reduce in cost as the objects using them get further away
* Load textures from PNG, JPEG, TGA, BMP or DDS files, including unusual formats like 1D textures, volumetric textures, cubemaps and compressed textures (DXT/S3TC)

Meshes

* Flexible mesh data formats accepted, separation of the concepts of vertex buffers, index buffers, vertex declarations and buffer mappings
* Progressive meshes (LOD), manual or automatically generated
* Static geometry batcher

Animation

* Sophisticated skeletal animation support
* Flexible shape animation support
* Animation of SceneNodes for camera paths and similar techniques, using spline interpolation where needed
* Generic animation tracks can accept pluggable object adaptors to enable you to animate any parameter of any object over time

Scene Features

* Highly customizable, flexible scene management, not tied to any single scene type. Use predefined classes for scene organization if they suit or plug in your own subclass to gain full control over the scene organization
* Hierarchical scene graph; nodes allow objects to be attached to each other and follow each others movements, articulated structures etc
* Multiple shadow rendering techniques, both modulative and additive techniques, stencil and texture based, each highly configurable and taking full advantage of any hardware acceleration available.
* Scene querying features

Newton Physics

* Integration of Newton Physics and collisions
* Ball and Socket, Hinge, and Slider Joints

GUI

* Integration of a full GUI system
* Windows, Buttons, RadioButton, CheckBoxes, ListBoxes, ComboBoxes, EditBoxes, Spinners, Sliders, Menus, ProgressBars, TabControl, Multiline EditBoxes, MultiColumn Listboxes, and more!
* Fully skinnable
* GUI layout editor

Special Effects

* Compositor system, allowing for full-screen postprocessing effects to be defined easily, via scripts if desired
* Particle Systems, including easily extensible emitters, affectors and renderers (customisable through plugins). Systems can be defined in text scripts for easy tweaking. Automatic use of particle pooling for maximum performance
* Support for skyboxes, skyplanes and skydomes, very easy to use
* Billboarding for sprite graphics
* Transparent objects automatically managed (rendering order & depth buffer settings all set up for you)

Paged Geometry

* Dynamic geometry paging system, which enables infinite worlds
* Batched rendering LOD for optimized rendering of near-by trees
* Impostor rendering LOD for extremely fast rendering of distant trees
* Flexible LOD display system, which can be expanded to display geometry with any technique you can implement
* Flexible LOD configuration system, which allows you to configure any combination of supported LODs in any way you want
* Optional cross-LOD fade transitions, and far LOD fade-out, fully configurable
* Flexible PageLoader system, allowing you to dynamically load geometry from any source you can imagine
* Easy addition / removal of trees with bit packing, allowing millions of trees to be stored in RAM using only a few MBs
* Color-map support for trees, which enables you to apply terrain lightmaps to your trees with one simple function call
* Animated, optimized grass rendering system. Supports density maps, color maps, wind animations, height range restriction, and much more.
Licenza:
GMOgre3d usa la licenza LGPL (http://www.gnu.org/copyleft/lesser.html) che significa che è completamente gratis per l'uso personale e commerciale.

Documentazione: http://code.google.com/p/gmogre3d/wiki/Tutorials?tm=6

Download: http://gmogre3d.googlecode.com/files/Examples-v110.zip

Problemi vari:
Il motore di renderizzazione richiede la versione DX9 del Novembre 2008 o maggiore.
Se riscontrate un errore tipo d3dx9_41.dll mancante significa che avete una versione vecchia che dovete aggiornare qui: http://www.microsoft.com/downloads/deta ... 2d8712d553
Nel caso di altri problemi scrivete in questo topic.
:cursor: Se dice che non si hanno le dx9: http://gmitalia.altervista.org/gmi_foru ... 213#p68213

Contributi by:
GMOgre logo by mauge
GMOgre font by "Baby Kruffy" @ http://www.dafont.com
Ogre head by [email protected]

Screen:
sul topic fonte

Immagine

Immagine
Ultima modifica di Jak il 24/05/2010, 13:35, modificato 2 volte in totale.
Time to feel, time to believe
Dare to see what may come of our future
Lift your head, broaden your gaze
Speak your mind and your thoughts they will follow you

Avatar utente
maz85
Admin
Messaggi: 8287
Iscritto il: 07/02/2004, 15:57
Specialità: Nientologo
Località: Oblio
Contatta:

Re: GmOgre

Messaggio da maz85 »

Rendi interessante il primo post con le info contenute qui: http://gmc.yoyogames.com/index.php?showtopic=455439

Avatar utente
NoCode
GMI VIP
Messaggi: 3403
Iscritto il: 01/09/2008, 8:08
Specialità: Grafica e Musica
Uso: GM:Studio 1.4 Pro
Località: My houuuse... Where is my houuuuse?!?
Contatta:

Re: GmOgre

Messaggio da NoCode »

Come saprai, è un'aggiunta per GM (non solo dll) che permette di usare il 3D su GM con vari effetti avanzati, più di U3D (per esempio, effetti shader o effetti di schermo, tipo l'effetto "vecchia tv", ecc...)
L'unica pecca che ho riscontrato nel provare i vari tutoria è che il gioco impiega molto tempo ad aprirsi con GmOgre...

Qui il sito ufficiale:
http://www.ogre3d.org/

Preceduto da Maz :mrgreen:

Jak
Admin
Messaggi: 12355
Iscritto il: 19/08/2009, 16:20
Specialità: Programmazione 3D
Uso: GM:Studio 2
Contatta:

Re: GmOgre

Messaggio da Jak »

Grazie maz, sembra interessante, sto scaricando. Vediamo com'è!
Time to feel, time to believe
Dare to see what may come of our future
Lift your head, broaden your gaze
Speak your mind and your thoughts they will follow you

Avatar utente
NoCode
GMI VIP
Messaggi: 3403
Iscritto il: 01/09/2008, 8:08
Specialità: Grafica e Musica
Uso: GM:Studio 1.4 Pro
Località: My houuuse... Where is my houuuuse?!?
Contatta:

Re: GmOgre

Messaggio da NoCode »

Ti anticipo che è una figata!
Però è molto pesante (come ho già detto).
Un Tutorial su GmOgre non farebbe male, ma chi la sa usare?
Dovremmo chiedere una mano a qualche utente di YYG :lol:

Jak
Admin
Messaggi: 12355
Iscritto il: 19/08/2009, 16:20
Specialità: Programmazione 3D
Uso: GM:Studio 2
Contatta:

Re: GmOgre

Messaggio da Jak »

A me sembra identico ad U3D solo più pesante, quindi.....
Time to feel, time to believe
Dare to see what may come of our future
Lift your head, broaden your gaze
Speak your mind and your thoughts they will follow you

Avatar utente
NoCode
GMI VIP
Messaggi: 3403
Iscritto il: 01/09/2008, 8:08
Specialità: Grafica e Musica
Uso: GM:Studio 1.4 Pro
Località: My houuuse... Where is my houuuuse?!?
Contatta:

Re: GmOgre

Messaggio da NoCode »

Ma hai visto quello della piscina o quello della valle con gli alberi?
Effetti shader e distanza di visuale enorme... :fapensare:

Jak
Admin
Messaggi: 12355
Iscritto il: 19/08/2009, 16:20
Specialità: Programmazione 3D
Uso: GM:Studio 2
Contatta:

Re: GmOgre

Messaggio da Jak »

No-Code93 ha scritto:Ma hai visto quello della piscina o quello della valle con gli alberi?
Effetti shader e distanza di visuale enorme... :fapensare:
Si belli, comunque ho un po visto tutorial ed esempi e devo ammettere che è più pesante e più complicato di U3D ad una prima occhiata. Anche U3D sa fare quelle cose no-code!
Time to feel, time to believe
Dare to see what may come of our future
Lift your head, broaden your gaze
Speak your mind and your thoughts they will follow you

Avatar utente
NoCode
GMI VIP
Messaggi: 3403
Iscritto il: 01/09/2008, 8:08
Specialità: Grafica e Musica
Uso: GM:Studio 1.4 Pro
Località: My houuuse... Where is my houuuuse?!?
Contatta:

Re: GmOgre

Messaggio da NoCode »

Non so, non ho mai nemmeno scaricato U3D, visto che per ora so usare circa un quarto di D3D...
Ripeto, bisognerebbe chiedere informazioni a qualcuno che se ne intende, su YYG ci sarà sicuramente...

Avatar utente
Sla
GMI VIP
Messaggi: 3618
Iscritto il: 21/07/2008, 10:11
Specialità: Titanismo
Località: (gm) Italia
Contatta:

Re: GmOgre

Messaggio da Sla »

Mi sarebbe piaciuto provare gmogre ma non sono minimamente riuscito ad installare le direct x 9, pur scaricandole dal link suggerito nel topic.
eppure mi sembra tutto giusto...

Avatar utente
Homunculus
Admin
Messaggi: 6840
Iscritto il: 25/11/2007, 20:36
Contatta:

Re: GmOgre

Messaggio da Homunculus »

Super_Slascio ha scritto:Mi sarebbe piaciuto provare gmogre ma non sono minimamente riuscito ad installare le direct x 9, pur scaricandole dal link suggerito nel topic.
Le dx9 non sono proprio le più nuove che ci sono in giro, probabilmente hai gia la versione 10 o 11

Avatar utente
Sla
GMI VIP
Messaggi: 3618
Iscritto il: 21/07/2008, 10:11
Specialità: Titanismo
Località: (gm) Italia
Contatta:

Re: GmOgre

Messaggio da Sla »

bah avevo provato tempo fa a scaricare la 10 ed era impossibile perchè sembra che la microsoft stia diventando un po come la mac.
In pratica erano solo per xbox 360!
Il fatto è che ho scaricato l'esempio della dll di gmogre e non mi partiva dando errore di directx non presenti. forse ho le 8.
eppure mi sembra tutto giusto...

Avatar utente
Sla
GMI VIP
Messaggi: 3618
Iscritto il: 21/07/2008, 10:11
Specialità: Titanismo
Località: (gm) Italia
Contatta:

Re: GmOgre

Messaggio da Sla »

grazie, ho le 9. Eppure ogre non parte. E ci sta scritto di mettere le 9. Tirate le somme!
eppure mi sembra tutto giusto...

Avatar utente
maz85
Admin
Messaggi: 8287
Iscritto il: 07/02/2004, 15:57
Specialità: Nientologo
Località: Oblio
Contatta:

Re: GmOgre

Messaggio da maz85 »

A me da:
Immagine

Dal topic:
You just need to update your DirectX 9 version and everything will run just fine:
http://www.microsoft.com/downloads/deta ... 2d8712d553
:fapensare:

e ho le 9.0c.

Ora provo ad installare la roba di quel file...

Ah, a chi funziona mi può dire sistema operativo più dx in uso (fate esegui>dxdiag e invio)?

Un'altra roba, se avete le dx10 ho visto che si può settare il renderer:

Sullo start di obj_engine:

Codice: Seleziona tutto

if (!InitializeOgre3D())
   game_end();

if (!StartOgre3DEngine(global.RENDER_DX9)) //Sostituire con global.RENDER_DX10 o il valore 3
   game_end();

//... omiss
Se lo faccio io non mi da il messaggio di sopra, ma esce solo dal gioco.


Edit:
installata la roba consigliata e funziona egregiamente!

Jak
Admin
Messaggi: 12355
Iscritto il: 19/08/2009, 16:20
Specialità: Programmazione 3D
Uso: GM:Studio 2
Contatta:

Re: GmOgre

Messaggio da Jak »

Provato l'fps example ma stessa cosa (xp sp3). Ho la 9.0c. Maz, quale sarebbe la cosa consigliata? Il link delle directx?
Time to feel, time to believe
Dare to see what may come of our future
Lift your head, broaden your gaze
Speak your mind and your thoughts they will follow you

Avatar utente
maz85
Admin
Messaggi: 8287
Iscritto il: 07/02/2004, 15:57
Specialità: Nientologo
Località: Oblio
Contatta:

Re: GmOgre

Messaggio da maz85 »

Si, prima ho provato senza e mi dava appunto il messaggio che ho postato sopra (vedi screen), poi ho scaricato quel file lì, l'ho decompresso dentro una cartella vuota tanto per non disperdere i file, ho avviato il setup all'interno e alla fine ho rimosso tutti i file d'installazione.
Successivamente ho avviato i vari gmk con successo.
Non c'è successo se non si prova.

Jak
Admin
Messaggi: 12355
Iscritto il: 19/08/2009, 16:20
Specialità: Programmazione 3D
Uso: GM:Studio 2
Contatta:

Re: GmOgre

Messaggio da Jak »

1) quando tu posti non mi segna nuovi messaggi.
2) ho scaricato i componenti e funziona, comunque non mi sembra granchè, sarà perchè non si può fare niente in quella room, "sembra" molto leggero(ma non posso saperlo con sicurezza) ma ho notato che per le collisioni usa una mesh sferica e l'uso di mesh è a favore(u3d può solo ellissoidi e raytracing), comunque ho notato bug nelle collisioni :spat:
Time to feel, time to believe
Dare to see what may come of our future
Lift your head, broaden your gaze
Speak your mind and your thoughts they will follow you

Avatar utente
NoCode
GMI VIP
Messaggi: 3403
Iscritto il: 01/09/2008, 8:08
Specialità: Grafica e Musica
Uso: GM:Studio 1.4 Pro
Località: My houuuse... Where is my houuuuse?!?
Contatta:

Re: GmOgre

Messaggio da NoCode »

Ammirate una creazione fatta con GmOgre, degna del costo attribuitagli (7,45 €):
http://www.blackfiregames.com/

Pesa 331 Mb e ha un periodo di prova di 30 minuti, dopo bisogna comprarlo.

Ecco il suo Trailer:
http://www.youtube.com/watch?v=aMVTFn24B7U

Grazie LoD di avermela segnalata (era LoD, vero? :hum: )

Avatar utente
Cosimo
GMI Advanced
Messaggi: 2120
Iscritto il: 29/10/2009, 19:16
Uso: GM:Studio 2
Contatta:

Re: GmOgre

Messaggio da Cosimo »

No-Code93 ha scritto:Ammirate una creazione fatta con GmOgre, degna del costo attribuitagli (7,45 €):
http://www.blackfiregames.com/

Pesa 331 Mb e ha un periodo di prova di 30 minuti, dopo bisogna comprarlo.

Ecco il suo Trailer:
http://www.youtube.com/watch?v=aMVTFn24B7U

Grazie LoD di avermela segnalata (era LoD, vero? :hum: )
Davvero è fatto con Game Maker o con "Ogre" e altro linguaggio?

Avatar utente
Sla
GMI VIP
Messaggi: 3618
Iscritto il: 21/07/2008, 10:11
Specialità: Titanismo
Località: (gm) Italia
Contatta:

Re: GmOgre

Messaggio da Sla »

niente di che..
eppure mi sembra tutto giusto...

Rispondi

Chi c’è in linea

Visitano il forum: Nessuno e 35 ospiti