![]() |
DirectX tutorials - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: DirectX tutorials (/showthread.php?tid=197) |
DirectX tutorials - halla - 22-07-2006 any tuts on using this with vb so I can learn how to do this better I need to learn to place the current map on a form and the character and npc so on... thanks - Leighland - 22-07-2006 orpgkings.com has 3 links posted ... 2 are for dx7 and the other is dx8 ... ill try find the link, its in a post on their forums though - Kevin - 22-07-2006 directx4vb.vbgamer.com has lots - Krloz - 22-07-2006 And what version does mirage use? or version doesnt matter - halla - 22-07-2006 Yeah im trying to figure out where it gets the current map and displays it on picScreen. I want the current map to also be shown on a new form that pops up. - Krloz - 22-07-2006 So you are doing a mapeditor? ![]() - funkynut - 22-07-2006 Ms uses Version 7 which has direct draw, since any version above doesnt have directdraw And which bit are you trying to figure? - funkynut - 22-07-2006 Oh yea, ms also Uses Blt Apis instead of Directx in some places (no idea why) so just so you know, I think the only time it uses dx is when blting to Backbuffer and primary surface, any other time its using and api (for example, item editor pic boxes, mapeditor box etc) - halla - 22-07-2006 now I have it open a battle form. I want the exact same map that they are on to be displayed on it. I made picScreenB on the form and copied all the DX stuff I found for PicScreen to go with B too and it gave an error when I got to frmMirage. Im not sure how to go about this. - funkynut - 22-07-2006 picScreen, has been set as a primary surface which is clipped directly to a surface so when the surface updates, it shows it on the screen (Sorry, thats like the best way I could explain it and thats still not that good) So you could either create a second primary surface, or Just blt straight onto the picbox using directx. I'm not that good at remembering the method of blting to a picbox, but I know it, i'll jsut go test it out.. - funkynut - 22-07-2006 http://ms.shannaracorp.com/forums/viewtopic.php?t=47 Thats a Tut I made a while ago that I made blt from DX surface into a picture box, mayb/maynot help but thats basicly what you'll probably have to do. You'll have to adapt this so that it'll use Backbuffer as source instead of the items surface but err, maybe someone else can explain better Quote:First, we’ll start by adding a timer, that every time is set off, will draw the item back into the picture boxes, so create a timer called ‘tmrBlt’ with an interval of 50. - halla - 22-07-2006 that will let me blt from a file right but it wouldnt be the current map would it? cause it has to read the map file and all that stuff - funkynut - 23-07-2006 Nope, that will blt directly from another surface, which is what the map is drawn on (The backbuffer) |