I'd like to have a tutorials page for Games&Graphics stuff in here.
Ideally, someone would be appointed to create the thread, and then deal with all submissions and what not themselves.
Once you feel that you have enough material put together, then the thread would be made sticky.
Would anyone be interested in this ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
I didn't ask you to write a book, I just wanted an example file of how to use DirectX or Windows API for a simple game that would have comments before the confusing areas. Sorry for making you misunderstand what I meant.
This has been done before, search this forum for a post by started by me (i forgot the title, but search for tutorial and started by momad)... and try to use that as a starting point.
I know all sorts of tips and tricks for API Graphics, I don't really want to write anything up but if someone else does, I'll gladly give all the code...
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
Posts
1,152
lol
lazy eh
well i dont kno much about direct x or any graphics and game programming, but i'd sure read a tutorial or two and try to learn a bit
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
-------------------------------- "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe "Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
Here's something to start us off, would be a good thing to know for a vector drawing program:
VB Code:
Private Function ScalePoints(ByRef Pts() As PointAPI, ByRef RectSize As RECT, ByVal CentreX As Double, ByVal CentreY As Double, ByVal ScaleX As Double, ByVal ScaleY As Double)
We're all able to write small snippets and what not, and perhaps, with permission from directx4vb.com, for tutorials we could link straight into some of their pages ?
So that then would mean that us lot would just come up with a few code snippets etc.
I made a few for BitBlt, StretchBlt, Set+GetPixel etc.
I'm sure some of you have some common routines that you could write just a few words about ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Yeah, I thought about that... The only reason is there's this site that states that While...Wend loops are slower than conventional loops... if that's the case I don't want to use 'em.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
While..Wend - 1mil: 0.2421875
Do..Loop Until - 1mil: 0.1953125
Do..Loop While - 1mil: 0.203125
Do..Loop Until - 1mil - Extra Logic: 0.359375
Do..Loop While - 1mil - Extra Logic: 0.3828125
Extra Logic simply means that there is a single If statement (empty, never actually executes the internal code) within the loop.
So, does anyone know how to make your own file format? Is there a way to build on the windows .bmp format, except make your file not able to open with any bitmap viewer except your own code? Like they do to textures in most games so people wouldn't change the textures however they wanted.??!?
PNG is open-sourced, correct? If that is the case, I would suggest that format for its power and open-sourcedness If you simply expanded its code and changed it around, it could easily become "your own format".
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Originally posted by Sastraxi PNG is open-sourced, correct? If that is the case, I would suggest that format for its power and open-sourcedness If you simply expanded its code and changed it around, it could easily become "your own format".
Yes PNG is open source but have you took a look at it?? There is some crazy stuff going on, and it uses the zlib. That png is not easy to "use" much less "modify"!! There is simply waaaayyyy too much "features" in PNG that no windows PNG viewer that I know supports 100%!!!
I would suggest using the BMP format but simply make your own BITMAP_*_HEADER's and then compress the actual data using zlib.
If you want to see what I did with this, its open source, here it is:
Well I dont mean modify the actual DATA, modify the header. If you mess up the order, you can make it so only you can view it.
And concerning bitmaps... how about this. Use zLib to compress a full bitmap inside another file. Then, make your own header with the zLib info. Easy and small, no?
[edit]HAHA, I didn't even read the 'meat' of your post and I said the same thing, hehe
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)