Click to See Complete Forum and Search --> : Cheap 3-D
VBD
May 12th, 2001, 06:01 AM
Download my file. Give it a try. Post comments or e-mail me at vbd950@yahoo.com dont just watch tell me you are their and get the file
VBD
May 12th, 2001, 06:19 AM
STOP JUST VIEWING THIS EITHER POST A MESSAGE OR DOWNLOAD THE FILE IT IS A GOOD CONTROL FOR NOVICE PROGRAMMERS
Sastraxi
May 12th, 2001, 07:43 AM
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?
VBD
May 12th, 2001, 08:10 AM
Goto 3-D Wireframe it has the file. Its an ACTIVE X control extract itappears as ThreedXD when you goto add components. :D
Jotaf98
May 13th, 2001, 10:06 AM
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:
VBD
May 13th, 2001, 10:30 AM
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
kedaman
May 13th, 2001, 10:55 AM
register it, type regsvr32 filename in run
Jotaf98
May 13th, 2001, 06:04 PM
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 ;)
VBD
May 13th, 2001, 06:41 PM
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)
Jotaf98
May 14th, 2001, 09:00 AM
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... ;)
Jotaf98
May 14th, 2001, 05:46 PM
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?...
VBD
May 14th, 2001, 06:16 PM
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
Jotaf98
May 16th, 2001, 02:48 AM
Heh, thanks! Again, sorry for not looking at the code like I should, ok? ;)
Jotaf98
May 16th, 2001, 02:48 AM
Heh, thanks! Again, sorry for not looking at the code like I should, ok? ;)
BTW: You should include an help file!
VBD
May 16th, 2001, 05:49 AM
U R Welcome
VBD
May 18th, 2001, 06:33 PM
Waz^? Anyone created anything interesting with X3D? Post it. Tell about it
Sastraxi
May 18th, 2001, 06:55 PM
It is a cool control...
Sorry for kinda yelling at you back there ;)
I made a line spin in like 4 mins.
VBD
May 20th, 2001, 07:45 PM
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
Jotaf98
May 21st, 2001, 04:59 AM
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 ;)
VBD
May 22nd, 2001, 05:32 AM
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
emptywords
May 23rd, 2001, 02:18 AM
cool control... it's a little complicated to use though, can you give a bit of a more in depth tutorial?
thanks -
emptywords
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.