3D graphics in VB.net


  • Can anyone help me to write codes in VB.net for simple primitives like cube, ellipse 3D graphics and animate them.


    Tuesday, August 21, 2007 4:38 AM


  • Hi Hu,


    To create simple 3D graphics in VB.NET, you need to imports System.Drawing and System.Drawing.Drawing2D namespaces, fill the background using Solid brush, Overrides OnPaint() method. If you want to create 3D animation, suggest using Microsoft DirectX.


    Here are some samples.

    1. GDI+ Samples - Rectangles, Ellipses, and 3D

    The sample code in this article shows you how to use GDI+ and VB.NET to draw rectangles, ellipses, and 3D graphics objects.


    2. Here is one 3D application, you can download its source project and view it.

    3D tree rendering in C#/VB.NET
    This program may help beginners learn more about graphics, GDI+, mathematical algorithms, fractals, recursive functions.


    3. Using True Vision to Create 3D DirectX Animation in C# and .NET

    This article will give you an easy way to create 3D animation using the True Vision Game Engine. True Vision wraps the DirectX framework for a more straightforward way of 3D game development in .NET.


    I hope that can help you.




    Thursday, August 23, 2007 4:21 AM

All replies