MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
Go Back  Xtreme Visual Basic Talk > > > > MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor


Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2014, 04:38 PM
dotnetwrassler dotnetwrassler is offline
Regular
 
Join Date: Sep 2014
Location: USA (Pacific/West Coast)
Posts: 71
Default 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:
Quote:
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:
http://slimdx.org/
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):
http://www.vb-fun.de/vb/index.htm

For XNA I did find a few VB.Net related MSDN pages:
http://msdn.microsoft.com/en-us/library/hh477142.aspx
http://msdn.microsoft.com/en-us/library/hh477143.aspx
http://msdn.microsoft.com/en-us/libr...03.aspx#ID4ESC
http://code.msdn.microsoft.com/windo...c-XNA-29cd4963
http://msdn.microsoft.com/en-us/library/hh477144.aspx

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.
Reply With Quote
  #2  
Old 10-14-2014, 11:16 AM
dotnetwrassler dotnetwrassler is offline
Regular
 
Join Date: Sep 2014
Location: USA (Pacific/West Coast)
Posts: 71
Default A "no go" for SlimDX..maybe try OpenGL?

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:
http://www.richardssoftware.net/Home/DirectX11Tutorials


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":
http://www.xtremevbtalk.com/1241801-post4.html

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:
http://www.windowsdevcenter.com/pub/...28/opengl.html



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).
Attached Images
File Type: jpg Screenshot_OpenGL_pure_VB_dot_Net_demo.JPG (37.4 KB, 3 views)
Attached Files
File Type: zip opengl_pure_vb_dot_net.zip (856.6 KB, 7 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
 
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
MDX, XNA (and the PhoneSDK), SlimDX and VB.Net 3D World Editor
 
-->