Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 DX optimization
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

EACam
Warrior

154 Posts

Posted - May 16 2004 :  1:33:39 PM  Show Profile  Reply with Quote
Great!

But still...HOW do I create a texture with code inserting lots of other little textures?

Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 16 2004 :  2:29:12 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
If you use DirectX, then you might run into some problems with incompatibilities when rendering to a texture. I might be mistaken, but I think that you can simply bitblt from a surface to a texture in directx 7, but then there may be some card compatibility problems.

The easiest way would be to create temporary bitmap files. In pseudo code it would be something like

Start DirectX and fine largest texture size supported by the video card.
Resize Picturebox1 to that size
For Each Tile
Load Image into Picturebox2
BitBlt or Paintpicture to a location in PictureBox1
End Type
Save PictureBox1 As temp.bmp
Load temp.bmp into a Directx surface
Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 17 2004 :  7:37:49 PM  Show Profile  Reply with Quote
I could do that...but it'd be slow. Spose that's why there's a loading screen! Thanks.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.