Results 1 to 12 of 12

Thread: 3D Graphics demo and a thank you.

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    13

    3D Graphics demo and a thank you.

    Hi all.

    Firstly a bit of self promotion and some flag waving for doing graphics in Vb.net.

    Below is a link to a youtube video of a project I have been working on for about a year, off and on.

    https://www.youtube.com/watch?v=KUZfOZ31Nus

    If you didn't click its a 3d model viewer written entirely in visual Basic, no Opengl etc.

    As this is a software renderer it is hard to give performance numbers other than for my own machine which is using a Ryzen 3600 running @ 3.8ghz

    So. A 150k triangle model draws at around 55-60 fps with back face culling on and wireframe off.


    Finally a thank you to boops boops who's posts regarding his creation fastpix gave me hope long ago when I was banging my head on GDI drawing. Trying to make it go faster. I never did use fastpix but knowing it could be done and how, lead eventually to the above.

    [edit] http://www.vbforums.com/showthread.p...mies-and-Dudes
    Last edited by Rapscallion; Jan 30th, 2020 at 05:27 PM.

  2. #2

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    13

    Re: 3D Graphics demo and a thank you.

    If anyone is interested:

    https://github.com/5everin/3D-Model-Viewer

    I would just like to add that this code is not well structured. I started out on this with no idea how to do 3d graphics. It is a product of me learning how to do this as I went along and adapting what I had codewise to fit.

  3. #3
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Turkey
    Posts
    274

    Re: 3D Graphics demo and a thank you.

    hmm is there a vs2010 version

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    13

    Re: 3D Graphics demo and a thank you.

    Quote Originally Posted by gaouser View Post
    hmm is there a vs2010 version
    Sorry no. It requires .Net 4.6 minimum to support system.numerics (.net 5 or newer is much faster)
    You can download Visual studio 2022 for free on the ms website.

  5. #5
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    10,955

    Re: 3D Graphics demo and a thank you.

    You are doing all of this on the CPU? If so, does it cause any overheating?
    Last edited by dday9; May 19th, 2022 at 07:56 PM.
    "Code is like humor. When you have to explain it, itís bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    13

    Re: 3D Graphics demo and a thank you.

    Not as long as you have a CPU fan attached.
    Its multithreaded. So the more cores thrown at it the better, but it will still make the processor work very hard with more complex models while moving/rotating them etc.

    The model in the Video I linked is not very demanding as there is only around 20k polygons in it. This sort of thing will cause the cpu to get a little more toastie Name:  Newimage .jpg
Views: 104
Size:  23.3 KB
    Last edited by Rapscallion; May 20th, 2022 at 05:00 AM.

  7. #7
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    10,955

    Re: 3D Graphics demo and a thank you.

    I am impressed. I read over the code in your github repo (here), it is a bit difficult to follow, but you make it obvious up front that "this is not an example of great coding technique."

    Since this is more of a contribution than that question thread I am going to move this to the codebank.
    "Code is like humor. When you have to explain it, itís bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  8. #8
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Turkey
    Posts
    274

    Re: 3D Graphics demo and a thank you.

    i cant install, but i buy i newer pc Windows 10 with HDD but i make it Windows 7 with SSD i dont know it supports

  9. #9

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    13

    Re: 3D Graphics demo and a thank you.

    You should be able to get it working on Win7 but you will still need a newer version of Vis studio that will support .net 4.6-4.8
    .net5 brought a large bump in performance and this code benefits greatly from it.

    @dday9
    Thanks for the comments.
    Last edited by Rapscallion; May 21st, 2022 at 09:32 PM.

  10. #10
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Turkey
    Posts
    274

    Re: 3D Graphics demo and a thank you.

    i think 2022s installation never end

  11. #11
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Turkey
    Posts
    274

    Re: 3D Graphics demo and a thank you.

    Quote Originally Posted by Rapscallion View Post
    Sorry no. It requires .Net 4.6 minimum to support system.numerics (.net 5 or newer is much faster)
    You can download Visual studio 2022 for free on the ms website.
    bruh I use windows 7 that's not compatible

  12. #12
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Turkey
    Posts
    274

    Re: 3D Graphics demo and a thank you.

    Quote Originally Posted by Rapscallion View Post
    If anyone is interested:

    https://github.com/5everin/3D-Model-Viewer

    I would just like to add that this code is not well structured. I started out on this with no idea how to do 3d graphics. It is a product of me learning how to do this as I went along and adapting what I had codewise to fit.
    im installing 2017 (real 2015 concept) to win7 is it gonna support ????

Tags for this Thread

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