Download my file. Give it a try. Post comments or e-mail me at [email protected] dont just watch tell me you are their and get the file
Printable View
Download my file. Give it a try. Post comments or e-mail me at [email protected] dont just watch tell me you are their and get the file
STOP JUST VIEWING THIS EITHER POST A MESSAGE OR DOWNLOAD THE FILE IT IS A GOOD CONTROL FOR NOVICE PROGRAMMERS
Yelling at people isn't the best way to get your post-count up...
Upload it somewhere else 'cuz for some reason I cant get to it, please?
Goto 3-D Wireframe it has the file. Its an ACTIVE X control extract itappears as ThreedXD when you goto add components. :D
Hey, there's only one problem with that - the control doesn't appear in the Components when I unzip it to C:\Windows\System! :rolleyes:
Try clicking browse it should appear as ThreedXD normally. It Will appear as 3XD if you browse through Windows System by clicking browse
Give it a try
register it, type regsvr32 filename in run
Hey, thanks, it works now.
I tried the AddLine method just for testing, but it doesn't seem to work. I already made it 640x480. Maybe it's just me, I'll try again later - don't have much time now ;)
It has a scalewidth of 640, a scaleheight of 480, you can make it be ass big as you want. To get the line to be displayed, you must call the Draw Function on it(XD1.Draw)
Yeah, that's probably it. Good thing you keep the stuff in memory before drawing it, because that would be bad programming practice (to simply draw the line and here we go :p ). I'm gonna try it when I get home, sorry I didn't try hard enough that time :)
Maybe post here a sample program, ok? People like to see things moving... ;)
Yeah, you're right - it's a cool control, maybe instead of Cheap 3D you should call it... Easy 3D ;)
Anyway, something I noticed... (and take this as constructive critics, ok? :p ) - you should clear the control before drawing, because when I tried it, everything was in place, but each frame was on top of the other... but the rest is fine ;)
Maybe you should make it load some kind of file with a 3D model?...
Before drawing a new frame if you want animation, call XD1.Clear to clear its view. this does not erase the object in memory, just the appearence
Heh, thanks! Again, sorry for not looking at the code like I should, ok? ;)
Heh, thanks! Again, sorry for not looking at the code like I should, ok? ;)
BTW: You should include an help file!
U R Welcome
Waz^? Anyone created anything interesting with X3D? Post it. Tell about it
It is a cool control...
Sorry for kinda yelling at you back there ;)
I made a line spin in like 4 mins.
To Display a line add this code
XD1.Clear
'Clears the Display
XD1.AddLine X1,X2,Y1,Y2,Z1,Z2,Red,Green,Blue
'X1 and X2 are the x values of each end of the line.
'Y1 and Y2 are the y values of each end of the line.
'Z1 and Z2 are the z values of each end of the line.
'Red is the red value of the line on a value from 0 to 255
'Green is the green value of the line on a value from 0 to 255
'Blue is the blue value of the line on a value from 0 to 255
XD1.Draw CX,CY,CZ,XAngle,YAngle
'CX is the X of the camera
'CY is the Y of the camera
'CZ is the z of the camera
'XAngle is the XAngle of the
'YAngle is theYAngel of the Camera
'X and Y Angle may have some errors
Use this code!!!
I am currently working on a game using XD1
Hey, Vbd, nice :)
After people see a game (even if it's a small game), they'll start wanting to use your control because it's a lot easier than Direct3D ;)
Because DirectX has more capabilitys i am creating a second version which runs on DirectX. It will be the same except let you add spheres,triangles, tetragons etc. It will all be in the same format though. Also, just as easy to use.
Such as to draw a sphere you would do his..
XD1.Add Sphere X,Y,Z,Diameter,Red,Green,Blue
I am still learning DirectX and developing the new version. It will be much better. Also without the problems when rotating
cool control... it's a little complicated to use though, can you give a bit of a more in depth tutorial?
thanks -
emptywords