XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
Go Back  Xtreme Visual Basic Talk > > > XNA with vb.net (spritefonts and effects)


Reply
 
Thread Tools Display Modes
  #1  
Old 03-06-2013, 05:35 PM
Arzhul Arzhul is offline
Newcomer
 
Join Date: Sep 2007
Posts: 7
Default XNA with vb.net (spritefonts and effects)


Hi guys, so I've been working on XNA with vb.net for awhile now.
I've been looking for a way to use spritefonts without success..
Every tutorial says to add new item and select spritefont.. which does not
show up in my vb.net project (yet it does show up on new C# projects)
Same goes for the effect.

Is there a way to bypass this? I've tried copying over the files and unless I've
missed a few it didn't work. Tried creating the spritefont and then adding
an existing file within the project and got an error about not being able to
open the file.. of course.
So I could just make my own bitmap associations and processing strings.
But what about effects? Any alternatives to it? (Ex: for making 2d lighting)

I've spent quite some time googling for a solution and returned with nothing.
Any help would be really appreciated.
Thanks!
Reply With Quote
  #2  
Old 03-07-2013, 05:24 AM
hDC_0XNA with vb.net (spritefonts and effects) hDC_0 is offline
Contributor

* Expert *
 
Join Date: Feb 2004
Posts: 559
Default Using SpriteFonts (and other text / font drawing methods) with XNA using VB.Net

Quote:
Originally Posted by Arzhul
Hi guys, so I've been working on XNA with vb.net for awhile now.
First off - a qualifier.
Microsoft doesn't really fully support using VB.Net with XNA.
What I mean by this is if you look at the XNA Framework section of the MSDN you will find
references for everything using C# code, but only a small smattering of Vb.Net code here and there.

Just as an example the MSDN SpriteFont class page.
Do you see any VB.Net code on that page?
No.
Okay, so MSDN is not going to be of that much help.

Quote:
Originally Posted by Arzhul
I've been looking for a way to use spritefonts without success..
Here is an old XVBT thread on XNA spritefonts that didn't get much help.

I would recommend alternate ways instead:
AlanPhillips page: Draw Text on Screen (includes VB.Net code)

If you have trouble with that AlanPhillips code I would look at this off forum thread or this off forum post.

Most of the SpriteFont issues are with the xml inside the .spritefont file (like the part specifying the font),
it's pathing (folder placement), and/or the code that references the spritefont file/path (maybe something like "Content\SpriteFont1").

You should have a line, sometimes in a Public Sub New(), that looks like:
Code:
Content.RootDirectory = "Content"
..as well as a line of code in the LoadContent sub that looks like:
something = Content.Load(Of SpriteFont)("SomeName")
..where "SomeName" might be "Arial" or "SpriteFont1" or "Comic_Sans_MS_14"
and something might be "font" or "MyFont" or whatever you Dim ____ As SpriteFont

Maybe the VB.Net code section of this XNA page might also be helpful.

Under XNA 4.0 I believe you can also use spritebatch.drawstring().

Anyway, I'd thought I'd posting something in reply to this question so it didn't go completely unanswered..

Last edited by hDC_0; 03-07-2013 at 05:33 AM.
Reply With Quote
  #3  
Old 03-07-2013, 07:01 AM
Arzhul Arzhul is offline
Newcomer
 
Join Date: Sep 2007
Posts: 7
Default

Thanks I appreciate it.
Looking at your links right now but I guess the best thing to do would be to switch to C#.
Reply With Quote
  #4  
Old 03-07-2013, 07:09 AM
Flyguy's Avatar
FlyguyXNA with vb.net (spritefonts and effects) Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,163
Default

Reply With Quote
  #5  
Old 03-08-2013, 01:32 AM
hDC_0XNA with vb.net (spritefonts and effects) hDC_0 is offline
Contributor

* Expert *
 
Join Date: Feb 2004
Posts: 559
Default The death of XNA and related info..

Thanks for the link FlyGuy.

I actually read the email that Promit Roy quoted.
I guess it was leaked online here.

There is still MonoGame and ExEn, but I wonder how
much longer the official Xbox Live Indie Games page will stick around.

Even gamasutra (very pro game developer) is declaring XNA dead.

This title of this online article says "XBLIG becomes clouded".
I think it's a lot more than clouded at this point.

Rumors about the next generation console to replace the aging xbox360 have almost
become an industry in their own right.

Search for "Xbox 720" and "Durango Dev Kit" and you'll get thousands of results.

Will it be based on DX11? Will it be cloud-based requiring a constant internet connection?
Will it have a physical game activation scheme that prevents re-sale/re-use?

Who knows the true answer to any of these questions,
but if there is to be a next generation console to follow xbox360 then
I'm sure it will have to have some kind of development software to produce games on it.

The only question for me:
Is Microsoft going to restrict future Xbox game development to a small
cadre of careful chosen game dev companies?

It could be a de facto lockout based on super expensive licensing scheme,
or a restriction based on who is allowed to upload to the Xbox live servers.

But I really don't think chances are very good that small indie xbox live developers are
going to be at the top of Microsoft's primary xbox developers list.

Developing for the Sony PS3 console (or later) is tough for any small indie developer outside of Japan,
and Apple has never been very "open minded" about Apple store apps (including games) and
seems to have no qualms about censoring anything it doesn't like.

Which leaves Android as the only major player that is "somewhat open" to indie game developers.

Android mobile devices are becoming more high performance 3D friendly with each new generation of hardware.

I have to admit to a bias though - I still use the Wolfenstein3D and Doom code (a mixture of C with java interface wrapper code) from this old book
for the Android games I develop.

On newer Android mobile hardware the old code I still using has only improved in performance,
but I still wish for some better TADP (nVidia Tegra Android Dev Pak) fine tuning examples
that show how to optimize code for higher performance under Tegra3.
Reply With Quote
  #6  
Old 05-16-2013, 07:25 AM
Arzhul Arzhul is offline
Newcomer
 
Join Date: Sep 2007
Posts: 7
Default

Just wanted to post a little update for those in the situation I was.
Moving from VB.NET to C# was easy, only requires quick googles from time to time!
Best decision I've made regarding XNA.
Reply With Quote
  #7  
Old 05-22-2013, 05:36 AM
coruptbunny coruptbunny is offline
Newcomer
 
Join Date: Jul 2012
Posts: 1
Default

Quote:
Originally Posted by Arzhul View Post
Hi guys, so I've been working on XNA with vb.net for awhile now.
I've been looking for a way to use spritefonts without success..
Every tutorial says to add new item and select spritefont.. which does not
show up in my vb.net project (yet it does show up on new C# projects)
Same goes for the effect.

Is there a way to bypass this? I've tried copying over the files and unless I've
missed a few it didn't work. Tried creating the spritefont and then adding
an existing file within the project and got an error about not being able to
open the file.. of course.
So I could just make my own bitmap associations and processing strings.
But what about effects? Any alternatives to it? (Ex: for making 2d lighting)

I've spent quite some time googling for a solution and returned with nothing.
Any help would be really appreciated.
Thanks!
I'm a little late to the party, but just wanted to provide a proper solution to anybody else who comes across this problem but doesn't fancy C#.

It's down to using the wrong version of visual studio in order to access XNA with VB.net - when Microsoft added support for VB, they only implemented it in full in the Windows Phone Developer Toolkit (which can be used to create both Windows and Xbox 360 software, in spite of the name). This can be found here: http://www.microsoft.com/en-us/downl....aspx?id=27570
Attached Images
File Type: png Capture.PNG (90.2 KB, 2 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
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects) XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
 
XNA with vb.net (spritefonts and effects)
XNA with vb.net (spritefonts and effects)
 
-->