microsoft.public.win32.programmer.directx.graphics - Microsoft 32-bit development
Does anyone have the algorithm handy to calculate the largest axis parallel rectangle inside a rotated rectangle? I've found code to do this for a n-sided polygon, which I could use to do this.. Just wondering if there's a more efficient way of doing it just for a rectangle.
I am new to this Delphi programming. However, I have a nice drag and drop working from ListBox to ListBox. However, I would like the destination rectangles to be highlighted when the mouse is over that location. I am having trouble doing this. How do I set my ListBox up so that item rectangles will be highlighted as the mouse moves over the rectangle? After the mouse leaves the rectangle the rectangle goes back to normal. Thanks Dave
Hi, I'd like to write a plug-in in C# with VS.Net. This plug-in takes in Primitves such as : Boxes, Cylinder, Spheres, Pyramids, Cones... I have to tessellate them in triangles to get a Mesh. I used the GLU before (In C++ : gluTessCallback) . I'm quite new to C#, .NET and Direct3D. I'd like to know if it can be done with Direct3D ? Or can i use GLU in C# ? (I'd like to avoid managed C++) Or if i can get a "simple" tessellation algoritm ? I found one in the previous posts, but didn't test it yet. Thanks a milion.
Hello, I'm converting a ID3DXMesh to a ID3DXPatchMesh and then trying to do an adaptive tessellation based on a texture given by the SetDisplaceParam method. When calling the TessellateAdaptive method the resulting mesh is always uniformly tessellated like it does not take the texture into account at all. I have tried different texture formats and texture usage parameters, but there doesn't really seem to any documentation about the patch mesh or how the texture is used. Have anybody gotten adaptive tesselation working?