i want to create my own 2d game engine ("arcengine") and need some tipps and further information about some basic stuff.
1. what is the best way to render sprites in directx?
my idea is to disable zbuffering, then send one edge (that holds all information about the sprite like position, width etc.) into a geometrieshader that calculates the other edges and sends them to the vs.
2. after finishing the basic rendering i want to include a script language.
what is the best way to read a simple script into the programm?
directx 2d game engine
Re: directx 2d game engine
If you are seriously intentionated to write a game engine you should already know answers to those questions. 2D engine is not easier of a 3D egine.
before thinking to wich way is best for render something would be nice also to think how the API will look to final user. That's the most important part because it can change everything. Internal structure can be designed around the API. good API make easy to use.
If you neglit the API you'll find yourslef writing a wrapper for your engine because is hard to use.
if you disable Z buffer anyway you have to render everything in the correct order. with Z buffer + Ortho camera you just need to draw at different "depths". Wich is the best approach for you?
both will works if used correctly. it's just question of what you find more comfortable
before thinking to wich way is best for render something would be nice also to think how the API will look to final user. That's the most important part because it can change everything. Internal structure can be designed around the API. good API make easy to use.
If you neglit the API you'll find yourslef writing a wrapper for your engine because is hard to use.
if you disable Z buffer anyway you have to render everything in the correct order. with Z buffer + Ortho camera you just need to draw at different "depths". Wich is the best approach for you?
both will works if used correctly. it's just question of what you find more comfortable
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Re: directx 2d game engine
the finished programm should be like ogre, because ogre has a very kind structure.
i know 2d isnt easier, but there arnt as many of them
i didnt post this thread because i dont know anything, but dont want to start wrong. i work on the engine since a few days started programming and made a basic concept.
i think to render them without z buffer saves memory .
i know 2d isnt easier, but there arnt as many of them
i didnt post this thread because i dont know anything, but dont want to start wrong. i work on the engine since a few days started programming and made a basic concept.
i think to render them without z buffer saves memory .
Re: directx 2d game engine
Since zbuffer is just a simple "flag" (iirc from the days when I was writing my opengl renderer) it wouldn't be that hard to test what works better, and leave it as an option since you're writing an engine.gamescore wrote:i think to render them without z buffer saves memory .
Working on game: Marrbles (Currently stopped).
Re: directx 2d game engine
and what about my second question?
Re: directx 2d game engine
1. Write your own parsergamescore wrote:2. after finishing the basic rendering i want to include a script language.
what is the best way to read a simple script into the programm?
2. Use ready solutions, like GameMonkey
Re: directx 2d game engine
I want to use an as low value of ready code as possible, so i will write my own parser.
I think i need some deeper information, like why is lua as fast?
I think i need some deeper information, like why is lua as fast?
Re: directx 2d game engine
Hmm, there is never too much knowledge.
But if you want to make as much code from scratch... write your own scripting language!
If you need just a simple scripting this is good idea, a great way to learn something new.
But if you want to make as much code from scratch... write your own scripting language!
If you need just a simple scripting this is good idea, a great way to learn something new.