OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
Go Back  Xtreme Visual Basic Talk > > > OpenGL in VB.NET (Source Code Included.)


Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2006, 03:11 PM
neonet neonet is offline
Newcomer
 
Join Date: Jan 2006
Posts: 11
Question OpenGL in VB.NET (Source Code Included.)


I can get this source code to work on my laptop just fine but not on my desktop computer which has an NVIDIA FX 5700 video card, OpenGL won't render on the form, however, I can run other OpenGL applications so I know my OpenGL system files are ok, and source code samples in other programming languages work.

The code was done in VB.NET Visual Studio 2005 Team Suite Edition, can anyone else get it too work I've attached the source code?

Last edited by reboot; 03-19-2006 at 11:26 AM. Reason: No binaries in attachments
Reply With Quote
  #2  
Old 03-19-2006, 04:48 PM
neonet neonet is offline
Newcomer
 
Join Date: Jan 2006
Posts: 11
Exclamation

I found the problem!

Steps to Reproduce:
I've updated and re-uploaded the source code with the neccessary changes, to see the problem just comment out glGetError under Form1_Load event.

Actual Results:
Rendering context is not created unless you make a call to an OpenGL API function first, otherwise, the rendering context will return a value of 0.

Expected Results:
You shouldn't need to make a call to an OpenGL function first in order to create a rendering context.

Last edited by reboot; 03-19-2006 at 08:48 PM. Reason: Removed attachments with binaries
Reply With Quote
  #3  
Old 03-19-2006, 08:49 PM
reboot's Avatar
rebootOpenGL in VB.NET (Source Code Included.) reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,614
Default

Our rules are very clear. Please stop attaching binary files here.
__________________
~ Quod non mortiferum, fortiorem me facit ~

Avatar by lebb
Reply With Quote
  #4  
Old 03-19-2006, 09:50 PM
neonet neonet is offline
Newcomer
 
Join Date: Jan 2006
Posts: 11
Angry

Where are the binary files located?

I deleted all contents of the Debug & Release folder, the contents of the other folders are required that I'm aware of to successfully build the application, any binary file previously detected such as an .obj is automatically overwritten by the IDE when the main application is being built because the Debug & Release folders are empty, if I have broken the rules I'm sorry I noticed the last time you removed my source code so others couldn't download and use it you didn't send me a message stating there was a problem so I didn't even know the code was gone until I saw my message was last edited by you.

I have posted in several forums and this is the first complaint I have gotten while uploading via a vbbulletn system and I have sent it to Microsoft as well as a standard bug report and they don't seem to complain about it.

I don't like my posts getting edited or changed I think it's rude, I don't get paid for this and spent alot of time preparing everything, I mean how would you like it if you uploaded a project to seek answers to a problem and someone kept deleting and/or modifying your posts?
Reply With Quote
  #5  
Old 03-20-2006, 11:11 AM
reboot's Avatar
rebootOpenGL in VB.NET (Source Code Included.) reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,614
Default

Our Posting Guidelines state: Attaching or directly linking to EXE, DLL, OCX or other compiled executable or un-viewable files is strictly forbidden.

Your attachments were full of dlls and exes. We enforce the rules here no matter how rude you might think them. Did you not read them, even though you explicitly agreed to these rules when you signed up?

I also don't get paid for this, and don't have time to go around playing mother to people that think they're more important than everyone else here. Reading and understanding our rules is your responsibility; mine is making sure people abide by them.

Thanks for understanding.
__________________
~ Quod non mortiferum, fortiorem me facit ~

Avatar by lebb
Reply With Quote
  #6  
Old 03-20-2006, 03:17 PM
neonet neonet is offline
Newcomer
 
Join Date: Jan 2006
Posts: 11
Default

Ok, I found the file list, tell me which ones you want removed because without some of these files the project will not compile successfully and I don't wanna **** anybody off with a project that doesn't compile, because it ****es me off when I download a source code sample and something's missing such as a file that's required such as a binary resource and a stupid error message comes up stating something's missing and it won't compile, besides, with new security and setting options some projects will not compile without a license key and/or certificate on another computer and with the new visual studio the designer code is not in the main form code module it's somewhere else don't ask me where or which files I don't know they changed it again, I guess the hard way would be to copy and paste everything into text and make people recreate the forms and settings, but then I'd have to explain each component to add and it's a waste of time:

I Deleted:
bin\Debug\WindowsApplication1.exe
bin\Debug\WindowsApplication1.pdb
bin\Debug\WindowsApplication1.xml
bin\Release\WindowsApplication1.exe
bin\Release\WindowsApplication1.pdb
bin\Release\WindowsApplication1.xml


-==(( I didn't delete the below ))==-

Temporary Compilation Folder:
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\WindowsApplication1.Form1.resources
obj\Debug\WindowsApplication1.Resources.resources
obj\Debug\WindowsApplication1.vbproj.GenerateResource.Cache
obj\Debug\WindowsApplication1.exe
obj\Debug\WindowsApplication1.xml
obj\Debug\WindowsApplication1.pdb
obj\Release\ResolveAssemblyReference.cache
obj\Release\WindowsApplication1.Form1.resources
obj\Release\WindowsApplication1.Resources.resources
obj\Release\WindowsApplication1.vbproj.GenerateResource.Cache
obj\Release\WindowsApplication1.exe
obj\Release\WindowsApplication1.xml
obj\Release\WindowsApplication1.pdb


Main Folder (VB.NET OpenGL):
WindowsApplication1.sln
WindowsApplication1.suo


VB.NET OpenGL\WindowsApplication1:
Form1.Designer.vb
Form1.resx
Form1.vb
WindowsApplication1.vbproj
WindowsApplication1.vbproj.user


VB.NET OpenGL\WindowsApplication1\My Project:
Application.Designer.vb
Application.myapp
ApplicationEvents.vb
AssemblyInfo.vb
Resources.resx
Settings.Designer.vb
Settings.settings


Each project is different and maintain many classes, sometimes people make a proprietary DLL in another programming language and make call's to it, if that DLL isn't in the project what's the point?

What about jpg's, icons, graphics and sound files those are binary?

As I said before, tell me which files you want me to remove and I'll remove them!

Last edited by neonet; 03-20-2006 at 10:29 PM.
Reply With Quote
  #7  
Old 03-20-2006, 06:30 PM
Iceplug's Avatar
IceplugOpenGL in VB.NET (Source Code Included.) Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

FIRST OFF, WHY IN THE GREAT WORLD OF BLUE SKIES ARE YOU TYPING IN SO MUCH CAPS AND BOLD?

On a lighter note, posting here requires that you do not attach or link to files that have been compiled.

EXEs, DLLs, OCXs (files with those extensions) are considered as compiled files.
If you delete the compiled files, and then compile, you'll get the compiled files back again... deleting them ensures that we are actually creating the compiled files.

bin\Debug\WindowsApplication1.exe <-- exe means compiled
bin\Release\WindowsApplication1.exe <-- exe means compiled
Go into your folders and look for files with the extension .exe, .dll, and .ocx
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #8  
Old 03-20-2006, 10:01 PM
neonet neonet is offline
Newcomer
 
Join Date: Jan 2006
Posts: 11
Default

Thanks IcePlug bro, think I understand what you mean now, I looked some more and found a folder TempPE and a DLL called My Project.Resources.Designer.vb.dll 7KB that wasn't in the output list file WindowsApplication1.vbproj.FileList.txt.

I removed that file plus the others and as I feared I can't compile the project anymore, I've attached a picture of what happens when I try and compile now via start button to compile/start application for testing.

I've attached a picture to show what happens when I follow the instructions and click yes.

Finally, I've added a picture to show build now does nothing.
Attached Images
File Type: jpg nowprojectwontcompile.JPG (141.5 KB, 31 views)
File Type: jpg hereswhathappenswheniclickyes.JPG (142.7 KB, 17 views)
File Type: jpg clickbuildnowdoesnothing.JPG (137.5 KB, 21 views)

Last edited by neonet; 03-20-2006 at 10:17 PM.
Reply With Quote
  #9  
Old 03-21-2006, 05:49 PM
Iceplug's Avatar
IceplugOpenGL in VB.NET (Source Code Included.) Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

You should not have deleted anything pertaining to the form... restore those files (assuming you haven't wiped them completely off of the computer)
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #10  
Old 07-23-2006, 08:18 PM
vbopenglbegin vbopenglbegin is offline
Newcomer
 
Join Date: Jul 2006
Posts: 1
Default new to opengl and vb.net

hi,

can you guide me how to incorporate opengl with vb.net? i m using VS2001. my vb 6 source code does not compile in vb2001

thanx for the help
Reply With Quote
  #11  
Old 07-23-2006, 09:58 PM
neonet neonet is offline
Newcomer
 
Join Date: Jan 2006
Posts: 11
Smile

Do you have source code sample?

Without actually seeing the code all I can say is sounds like you need to convert your VB6 source code to VB.Net, I don't remember if that version of VS has the early VB6 to VB.Net Conversion Utility or not, if so you can use that, it's not perfect though and you may still need to manually modify your code.

All you need to do is import the API functions as you normally would in VB.NET then use them just as your standard OpenGL documentation states.
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
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.) OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
 
OpenGL in VB.NET (Source Code Included.)
OpenGL in VB.NET (Source Code Included.)
 
-->