ThePentiumGuy Posted February 16, 2004 Posted February 16, 2004 hey in d3d, ive tried displaying a bitmap.. i figured out that you gotta move the vertices around to adjust to the size of the bitmap(30x30) verts(0) = CreateFlexVertex(0, 0, 0, Color.Transparent.ToArgb, 0, 0) verts(1) = CreateFlexVertex(30, 0, 0, Color.Transparent.ToArgb, 1, 0) verts(2) = CreateFlexVertex(0, 30, 0, Color.Transparent.ToArgb, 0, 1) verts(3) = CreateFlexVertex(30, 30, 0, Color.Transparent.ToArgb, 1, 1) the above displays a big green square, changing the 30's to 1's, you can see the image a little better but if you change the 1's to .3 or something, he becomes easeir to see any idea what values would work for this? or am i doing this wrong altogether? note, the file's attached, binaries are there to get the path for the images, but theres no EXEsd3d engine.zip Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Darc Posted February 16, 2004 Posted February 16, 2004 Make the values even smaller, or move the camera around Quote
ThePentiumGuy Posted February 16, 2004 Author Posted February 16, 2004 i have - .05 pretty small, you can barely see the image now even still, the image doesnt look like it should be, its somewhat twisted and backward.. - atm, idk how to use cameras right now quick reply tho :-p thx Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
ThePentiumGuy Posted February 17, 2004 Author Posted February 17, 2004 you know what? i just realized the problem, i was displaying the image using World Coordinates o_O i needed to use ScreenCoordinates by changing the vertex type from CustomVertex.PositionTextured to CustomVertex.TransformedTextured that was really stupid on my part... sry Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.