Results 1 to 4 of 4

Thread: 3D Engine in pure VB.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Location
    Gwalior India
    Posts
    14

    3D Engine in pure VB.net

    Hi Friends,
    This is long time after I am here on VbForum. This is about the 3D stuff that I recently learnt and tried to implement in Vb.net 2010.
    This project does't use any of directX, OpenGl or XNA, It is completely written in pure VB.net. Actually I learned VB.net through this project.I made this project just to learn VB.net 2010 so it is not written in professional way. So please do not bother about that, Just look at what it can do.

    Screenshot:

    Source code Link:
    [URL="http://www.mediafire.com/download.php?p5zp4cp7gkmso3g"]

    I could successfully implement:
    1. z order sorting
    2. z buffer(beta)
    3. lights(beta)
    4. cartesian, polar, parametric plot
    5. gradient coloring

    I could't implement
    1. Polygon intersection(hidden surface removal for intersecting objects) ,BSP Tree
    2. Shading models
    3. Menus settings are not working since I first wanted to resolve following problem and then working on this project from scratch again. Menus just show what I am keeping in mind for its further development

    The biggest problem in further development
    How to deal with Intersecting objects? I have some options
    1. Use ZBuffer: It works fine , but it seems to be slow and it can draw only solid colored objects, how to draw wireframe model using it.
    2. BSP tree: I dont know how to implement it
    3. RayTracing: i can use it but it seems that it will also be slow.
    4. use XNA/ directx/OpenGL as Engine(but I don't want that)

    Now i want to get suggestion, "Should I continue it? Or implementation of further 3D Engine concepts would be difficult or slow in Vb.net. Actually I want a fully functional 3D Plotter without any use of external add ins or 3D Engine. i will be grateful for any help/suggestion.
    Please reply.....................
    Attached Images Attached Images  
    Last edited by maheshkurmi; Jan 5th, 2012 at 03:46 AM.

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: 3D Engine in pure VB.net

    If that's something you have created yourself while also learning VB.Net 2010, I must say the effort has turned out great. Keep it up.

    I won't be able to provide any technical help or insight, however I couldn't resist applauding a great effort.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3
    PowerPoster Evil_Giraffe's Avatar
    Join Date
    Aug 2002
    Location
    Suffolk, UK
    Posts
    2,555

    Re: 3D Engine in pure VB.net

    There is certainly no reason not to continue implementing it. I would question the reluctance to use libraries if it were a commercial endeavour, but for a personal project with learning 3D algorithms and so on, you seem to have a realistic goal in mind.

    BSP trees are basically: take your 3D scene. Select a surface in it. Work out all the surfaces that are behind it and all the surfaces that are in front of it. If a surface crosses the plane of your selected surface, then divide the surface in two to have one behind and one in front. This gives you a single surface, and a set of surfaces in front and a set of surfaces behind. Repeat within the two sets of surfaces, and keep repeating until you've only got a single surface left in each set. This gives you a tree structure where each node holds a surface, and has two child trees, the "infront of this surface" and "behind this surface" sets.

    At render time, you can work out a depth ordering of surfaces very quickly by using this tree. You just have to determine whether your camera position is infront of behind of the surface at each node to determine which branch to recurse into first.

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2011
    Location
    Gwalior India
    Posts
    14

    Re: 3D Engine in pure VB.net

    @honeybee
    thanks for encouragement dear.
    @Evil_Giraffe
    thanks for reply
    Actually I am not a professional programmer ,I do programming just for fun and my personal use. I am a maths/Physics teacher at undergraduate level, and I am trying to make 3D engine for dealing with multivariate Calculus, 3D vectors etc means just for education purpose. This is why i want to have full control over the code.
    polygon is the only problem(till known) which I am facing now. i was thinking BSP Tree algo to be slow and difficult to implement in vb.net, Also I am feeling it difficult to find intersection of two surfaces efficiently. Suggest me If you have any experience regarding it.
    Again Thanks for suggestions..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width