Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 How do I integrate spark in DirectX based game engine ?

Go down 
3 posters
AuthorMessage
JuggernautSpark




Messages : 7
Date d'inscription : 2012-09-11

How do I integrate spark in DirectX based game engine ? Empty
PostSubject: How do I integrate spark in DirectX based game engine ?   How do I integrate spark in DirectX based game engine ? Icon_minitimeTue Sep 11, 2012 5:39 pm

Hello,

My engine gives me a command which returns the Direct3DDevice handle, will it help in any way integrating spark ?

If not what is the correct way, please let me know.

Thanks,
Back to top Go down
Darktib
Committer
Darktib


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

How do I integrate spark in DirectX based game engine ? Empty
PostSubject: Re: How do I integrate spark in DirectX based game engine ?   How do I integrate spark in DirectX based game engine ? Icon_minitimeWed Sep 12, 2012 7:00 am

Is it a well known engine (like Irrlicht and co) or a "secret" engine ?

There is a DirectX 9 renderer, but I don't know its current state.
Back to top Go down
JuggernautSpark




Messages : 7
Date d'inscription : 2012-09-11

How do I integrate spark in DirectX based game engine ? Empty
PostSubject: Re: How do I integrate spark in DirectX based game engine ?   How do I integrate spark in DirectX based game engine ? Icon_minitimeWed Sep 12, 2012 7:57 am

Darktib wrote:
Is it a well known engine (like Irrlicht and co) or a "secret" engine ?

There is a DirectX 9 renderer, but I don't know its current state.

Well I am trying to make it work with Nuclear Basic and Nuclear Fusion.

Is there any tutorial on this ? I am really stuck on this. Please help.
Back to top Go down
Darktib
Committer
Darktib


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

How do I integrate spark in DirectX based game engine ? Empty
PostSubject: Re: How do I integrate spark in DirectX based game engine ?   How do I integrate spark in DirectX based game engine ? Icon_minitimeWed Sep 12, 2012 8:41 am

I don't know how you can extend Nuclear Fusion / Nuclear Basic, so you'll have to refer to the documentation of this engine.

However, there is a phase that is always the same: the creation of a SPK::Renderer. For the moment, there are a few renderers, all in C++ (SPARK version between brackets):
- Native OpenGL (1.x - 2.0svn)
- Irrlicht (1.x - 2.0svn)
- Native DirectX (1.x, might work with 2.0)
- SMFL 1.4 (1.0, we're waiting for SFML 2 to port it to SPARK2)
- DarkBASIC Pro (a wrapper of the native DirectX renderer I think)

Just open the sources of these renderers to see how they're made (src/Rendering and include/Rendering).
Back to top Go down
JuggernautSpark




Messages : 7
Date d'inscription : 2012-09-11

How do I integrate spark in DirectX based game engine ? Empty
PostSubject: Re: How do I integrate spark in DirectX based game engine ?   How do I integrate spark in DirectX based game engine ? Icon_minitimeWed Sep 12, 2012 9:12 am

Ok Thank you. I will look into it. Thanks for the information.
Back to top Go down
Charlie




Messages : 81
Date d'inscription : 2011-01-28
Age : 42

How do I integrate spark in DirectX based game engine ? Empty
PostSubject: hi   How do I integrate spark in DirectX based game engine ? Icon_minitimeThu Sep 13, 2012 2:17 am

Hi ! For Nuclear Fusion it would be easy to integrate SPARK2 as they're both engines written in c++
You need 2 things to get SPARK2 working in Nuclear Fusion :

1 Be able to get your DX9 device pointer
2 Be able to get your camera matices (view , projection)

and thats it !

For Nuclear Basic , it is a bit harder as Nuclear basic is not an OOP language but a BASIC language . For that reason you need to write a OOP2BASIC wrapper (for more details see my SparkWrapper topic)
Regards
Back to top Go down
Sponsored content





How do I integrate spark in DirectX based game engine ? Empty
PostSubject: Re: How do I integrate spark in DirectX based game engine ?   How do I integrate spark in DirectX based game engine ? Icon_minitime

Back to top Go down
 
How do I integrate spark in DirectX based game engine ?
Back to top 
Page 1 of 1
 Similar topics
-
» SPARK in my engine
» Compiling ERRORS about '__cxa_bad_cast' on Android using Irrlicht Render Engine
» SPARK and C++
» OpenSceneGraph (OSG) and Spark
» Game Develop : Free game development software

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: