hog Posted January 10, 2004 Posted January 10, 2004 I query ComputeBoundingBox Method and get this: --------------- Note: This documentation is preliminary and is subject to change. Computes a coordinate-axis-oriented bounding box. Definition Visual Basic Public Shared Sub ComputeBoundingBox( _ ByVal pointsFvf As GraphicsStream, _ ByVal numVertices As Integer, _ ByVal vertexFormat As VertexFormats, _ ByRef min As Vector3, _ ByRef max As Vector3 _ ) Parameters pointsFvf Microsoft.DirectX.Direct3D.GraphicsStream. numVertices System.Int32. vertexFormat Microsoft.DirectX.Direct3D.VertexFormats. min Microsoft.DirectX.Vector3. max Microsoft.DirectX.Vector3. ------ Which tells me next to diddle! I dare say there are some real whiz kids among us that will understand this with ease, but for a lot of us it mean nothing, no explanation, example etc? Is there any other source of help out there or as an up and coming DX programmer must I resolve myself to having to keep asking the gurus for advice? Quote My website
Optikal Posted January 12, 2004 Posted January 12, 2004 pointsFvF is a stream containing your list of vertices you want a bounding-box for. numVertices is the number of vertices you just passed in. vertexFormat is the format your vertices in the first parameter are in. min and max are filled in by the function and are vertices representing 2 opposite corners of the resulting bounding box. Quote
hog Posted January 13, 2004 Author Posted January 13, 2004 Thanks that is helpful, I shall have to experiment but I still think it would be better if they supplied a simple example like they do in the standard help! Quote My website
halobear333 Posted January 13, 2004 Posted January 13, 2004 Do you look at the c++ help? Even if you don't know c++ the descriptions and such can be very helpfull. And yes, I agree that it's annoying that one has to do that :) Quote
hog Posted January 14, 2004 Author Posted January 14, 2004 I hadn't but just tried searching in it for ComputeBoundingBox and get a "No Topics Found":( What a suprise! Why? MS Why? Quote My website
halobear333 Posted January 14, 2004 Posted January 14, 2004 D3DXComputeBoundingBox There's also D3DXComputeBoundingSphere, as well as functions that determine if a ray intersects with these boxes or spheres. Quote
hog Posted January 15, 2004 Author Posted January 15, 2004 Doh, so not only do I have to try to decode help from a different language I also have to suss out what the different name is for the command?? Way to go MS....they sure like to make things difficult:( Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.