
hog
Avatar/Signature-
Posts
1011 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by hog
-
Ok here is the source files only, (NO BINARIES):) feel free to modify/improve whatever and post back with plenty of comments for easy understanding. It only took me all weekend but I can say now I think I have a good grasp of what is needed to create an app like this:) The complete version with install app is available on my web site. directxdemonstration.zip
-
Road block!!! I registered for the MVLC but came unstuck whilst trying to following; 1. Login to the site (https://licensing.microsoft.com ) 2. Click downloads in the left nav menu (You must have agreements in their view to see this link) 3. Choose �keyword� search 4. Type DirectX, click Search 5. They should see the link for DirectX.. Step 2, I have no agreements under the MVLC so the link does not appear!
-
Mmm, confused now? This is for MVLC I believe, not for lil ole me programming on me own:( I have the DX9 SDK install which apparently come complete with distributable? What I need to know is how to get it include in my setup app? Thanks for you help so far, can you help further? :)
-
I have created a DX9 demo app and have create the setup app to go with it. If I install and run the ap on my laptop it works fine. If I install it on my son's laptop it says an exception occured and the app does not start. Is there some special steps I need to take to ensure a correct setup app is produced? Or does the target PC require the user to already have DX9 installed? If the later could my setup app automate it?
-
I managed to get some help out of the simpler samples in the SDK, but they don't exactly comment them well do they? I also find it off putting that if you can find any help in the SDK documentation its all in C++ etc:( I'm learning DX9 purely by trial and error which is painful and long winded
-
OK.....I gone an dunnit:):) I used the code I created in the attached file and merged it with the sample in the SDK. It has taken me all night, but by golly I have done it and can sort of say now by trial an error I sort of grasp what it's about. I'll just tidy up the code and then post it here, LESS the binaries! Sorry about that Robby:(
-
I have found this site which details how to create a 3D application. Although I cannot get the thing to work, the downloaded code from the site does work. It include this file, MDX9lib.dll which I presume is a custom control which facilitates a 3D device setup and usage? http://www.gotdotnet.com/team/directx/learn/tutorials/helloteapot.aspx Might be of use to someone?
-
OK, so here is a very hopefull request:) This zip file contains a project which I have learned from my DX9 book. I have created it from scratch to ensure I get it, which I am confident I do:) What I can't seem to do is to get the square to rotate either clockwise or anticlockwise. I have read the sample matrix demo that comes with the SDK but to no avail. Is there some kind guru out there who could modify the code with 'idiot comment lines' so I can learn from it? I've been trawlling the web all day trying to find tutorials but can find any to help:( [edit] Robby removed binaries from zip[/edit] directxtest.zip
-
Does anyone have any pointers, help on how to rotate in 3d? Problem: I have a square made of 2 primitives and can successfully display them with a texture of a walking man. I want to be able to simply rotate the square clockwise but can't seem to suss it. The SDK help is of little or no use???
-
Before I got out of high school?......lol I don't think I will ever get into the realms of Doom, Quake type grahics but does this theory stand... If this line of code; Matrix.Multiply(Device.Transform.World, Matrix.RotationX(X * PI / 180)) will always rotate the x axis then do I need to worry about how it does, just accept that it does? From a dunces point of view that is? lol :)
-
OK I posted here for max coverage as maybe not everyone in the know would call in on the graphics forum. I know nothing of Sine and Cosine apart from what I'm reading in a book now:( This is a line of code from my book; objDirect3DDevice.Transform.World = Matrix.RotationAxis(New Vector3(Math.Cos(Tick / 550.0F), 1, Math.Sin(Tick / 550.0F)), Tick / 3000.0F) Tick being the environment.tick output. Question is this. What the hell does this mean in dunce English:( ? I try to understand every line of code in new programs so that I hopefully know how the program works, but this leave me cold. My book says the sine of an angle = side opposite angle / hypotenuse. How does that translate to the above where there is no angle? Or is there? Or am I so think I sholdn't even be considering this:(:(:(
-
have u used the correct tu, tv values for your texture?
-
I know the content of this is DirectX but the problem I have is the mechanics of the usage of the array hence posting here:) I don't follow how this code works and hope someone can explain. Here goes; Public Function CreateTextures() As Boolean Dim Verts As CustomVertex() Dim intX As Integer Dim strTexturePath As String Try For intX = 1 To 10 strTexturePath = Application.StartupPath & "\walk" & CStr(intX) & ".bmp" Textures(intX - 1) = TextureLoader.FromFile(m_objDevice, strTexturePath) Next VertBuffer = New VertexBuffer(GetType(CustomVertex), NUM_VERTS, m_objDevice, Usage.WriteOnly, FVF_CUSTOMVERTEX, Pool.Default) Verts = VertBuffer.Lock(0, 0) SquareVertices(Verts) VertBuffer.Unlock() Return True Catch objException As Exception Return False End Try End Function Private Function SquareVertices(ByVal Vertices As CUSTOMVERTEX()) Vertices(0) = CreateFlexVertex(60, 60, 0, 1, 0, 0) Vertices(1) = CreateFlexVertex(240, 60, 0, 1, 1, 0) Vertices(2) = CreateFlexVertex(60, 240, 0, 1, 0, 1) Vertices(3) = CreateFlexVertex(240, 240, 0, 1, 1, 1) End Function Private Function CreateFlexVertex(ByVal X As Single, ByVal Y As Single, ByVal Z As Single, ByVal rhw As Single, _ ByVal tu As Single, ByVal tv As Single) As CUSTOMVERTEX CreateFlexVertex.X = X CreateFlexVertex.Y = Y CreateFlexVertex.Z = Z CreateFlexVertex.rhw = rhw CreateFlexVertex.tu = tu CreateFlexVertex.tv = tv End Function In the procedure CreateTextures() Verts is declared as CUSTOMVERTEX() which is a structure. So Verts is an array of structures? This line, SquareVertices(Verts), passes Verts to the SquareVertices procedure ByVal again an array of structures? In SquareVertices it assigns values to each array element. But how come the redim staement is not required? I spent a lot of time trying to get this to work and by trial and error found if I removed the redim line it work?? Duh.....don't get it :(
-
Well I have found it now:) and it does convert 3ds to x ok:) http://www.microtower.com/cgi-bin/menu.cgi
-
there is a patch update on the directx site which fixes this problem:-)
-
there is a lot of talk on the anim8or site about conv3ds.exe a directx utility for converting .3ds files to .x Is this no longer available with directx9 and if not do you know of a replacement?
-
thnx mutant. I have enquired if anim8or can do this or has a plugin to do it as this is the app I use.
-
Hi, I'm learning DirectX and have discovered that apparently you can import a mesh into VB.NET for use in DX9. Does anyone know if any of these files are compatible? 3D studio .3ds WaveFront .obj Vertex .vtx C source file .c anim8or .an8 I realise .c should be, one is attached, but have lnog since forgotten C and not sure how to convert it for VB use? Any help please?? sphere.c
-
The only way I can get DirectX help in the IDE is to press F1 on a line of code, ie Private m_objDirect3DDevice As Device, with cursor on Device. I then get a search box with Microsoft.DirectX.Direct3D.Device in it. If I press enter it points me to Microsoft.CSharp.ErrorLevel enumeration?? This happens on any keyword I attempt to get help on? Any ideas?
-
But you can tweak 2003 project files to open in 2002
-
I'm reading about adapters and devices. My book says listing display modes is not as straightforward as listing adapters. A check needs to be made to see if every mode returned by the adapter is supported by the device? Can someone explainplease? I have an NVIDIA MAP17-232 listed as an adapter and under rendering devices, Reference Rasterizer and Hardware Acceleration. I'm confused a bit? So my video card is a NVIDIA with 3D capability correct? So if my video card can say display 16million colours @ 1024x768 it does not necessarily mean it can do the same in 3D? Have I understood this correctly? Thnx
-
So in the following; Public Const FVF_CUSTOMVERTEX As VertexFormats = VertexFormats.Transformed Or VertexFormats.Texture1 What does this mean? If one or the other why Or them??
-
I know I should know this, but..... What does mutally exclusive mean?