Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   Managed DirectX (http://www.xtremevbtalk.com/managed-directx/)
-   -   MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor (http://www.xtremevbtalk.com/managed-directx/327282-mdx-xna-phonesdk-slimdx-vb-net-3d-world-editor.html)

dotnetwrassler 09-21-2014 04:38 PM

MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
Hi forum members!

I don't know if I am posting this in the right place?
I didn't see an XNA sub-forum under XVBT's .Net Game Programming.

Is XNA an offshoot of Managed DirectX?

I found this Google Code page for something called "SlimDX" which seems to suggest that SlimDX uses managed DirectX code when it says:

SlimDX is a free open source framework that enables developers to easily build DirectX applications using .NET technologies such as C#, VB.NET, and IronPython. It is designed to be an efficient, simple, and lean wrapper that fully encompasses all of Microsoft's gaming and multimedia technologies and exposes them to managed code

However there is very little VB.Net code that I can find off the SlimDX website:
I found some references there to a German guy who is using VB.Net with SlimDX (but his site doesn't show much code, just a few screenshots):

For XNA I did find a few VB.Net related MSDN pages:

The last link seems to suggest you have to use the XNA Phone SDK to get VB.Net XNA to work.

This stackoverflow thread seems to suggest the same in the comments.

I searched for some VB.Net XNA code on the XVBT forum, but didn't find much.

There is a guy called dday9 on another vb forum which has a nice "Drawing Primitives using XNA in VB.Net" thread and there is a VB.Net XNA cube drawing code snippet he did at the bottom of this page.

I've gone through a few tutorials online and read through the gamedev.net's "DirectX and XNA" sub-forum, but didn't see a lot of VB.Net code?

I'm looking to build some kind of scene graph manipulation world editor that's similar to the old "DirectxLevler3D" code that the tridexconsultants people did in VB.Net.
Note: The original page is gone but it's still archived with 5 captures in the WayBack Machine).

Right now I'm struggling to come up with some VB.Net code to performance-tuned quaternion-based matrix rotations (instead of relying on Euler angle conversions).

Where else should I be looking for tons of advanced VB.Net XNA code?
Can anyone provide me with some (more) links?

Thanks for any reply.

dotnetwrassler 10-14-2014 11:16 AM

A "no go" for SlimDX..maybe try OpenGL?
2 Attachment(s)
After many weeks spent downloading all the VB.Net SlimDX samples I could find on the Internet I haven't found any that actually worked on my computer (and it's not my computer's video card because it supports DirectX 9/10/11 using XNA and OpenGL 2.0+, see below).
Also, by the way - there are only 7 threads that I found on the forum that mention "SlimDX" (including this one), and none of them had any working code. :(

SlimDX (using C#) does make for some nice screenshots, though:

Most of the XNA code I translated from C# to VB.Net had issues --too much use of unsafe (unmanaged) code calls,
and those samples I did manage to get to work didn't have scene graph support. (A very important limitation --please take note, Microsoft!)

So what actually does work to create 3D using VB.Net?
It's simple (if a bit ironic, since it's definitely not a Microsoft thing): OpenGL.

The best OpenGL wrapper for VB.Net seems to be the Tao Framework.

There are already some working samples that use this wrapper on the forum attached to this post by someone from Hungary named "martonx":

CsGL is the alternate wrapper for using OpenGL with VB.Net (although most of the sample code on the internet using this wrapper is in C#).
Here's some VB.Net code for CsGL though:

However, since neither of the martonx demos (linked to above) used textures,
I wondered if there was a way to do OpenGL with texture loading (possibly without using pre-compiled 3rd party .dll wrappers)?

After long hours searching I finally found a sample /demo that did exactly that.
The screenshot and working code are attached below.

The main limitation - it uses WndProc to create the window instead of a standard VB.Net form, but if that's a way forward..

As a final thought --I also found some nice VB.Net code for doing 4 point quadrilateral distortion of textures (something beyond the GDI+ DrawImage API's inadequate 3 point skewing).

I'm also going to play around to see if I can make a 3D textured cube with that..but that's another thread (for later). ;)

All times are GMT -6. The time now is 11:41 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.