Hello,
How do I make a 3D Box in VB6? How do I put bitmap textures on the sides?
Printable View
Hello,
How do I make a 3D Box in VB6? How do I put bitmap textures on the sides?
Check out this link. Select the Vector graphics option and modify the oval to a rectangle with the same size as the faces. It'll look like a cube, methinks.
Modify the code to put into VB6. That's how I learned this morning. For more complicated models use the conv3ds.exe program with the -x parameter. It'll convert a model into .x format from .3ds. It is up on the internet, but happy hunting. I got mine from a search for conv3ds on hotbot, and then a link on one of the pages. You only get a couple of results.
Useage:
conv3ds -x file.3ds
output is:
file.x
in same directory.
:)
thanks for the link, i am new to 3d graphics programming.
Here is another question.
say I have a 2d rectangle. How can I draw another rectangle directly below it in the Z dimension (3rd)? What is the code for this?
I see how you are trying to do it. If you're experienced with packages and functions and stuff, try this:
You'll need the DAnim.dll reference in you application. Insert it with references/ DirectAnimation Control. Pick either window or windowless, and draw onto the form where you want the cube to go.
If you then use the View/Object Inspector, you might be able towork out how to do the rectangle things. I haven't got time to do the code now, it's going home time. And I'm getting A-Level results tomorrow (:(), find out if I can get into Uni. If you still need it on Friday I'll see what I can do.