OpenGL Save Render For Later Use?

Oct 9, 2010

I render a complex shape in OpenGL which requires a lot of calculations, is there anyway to export that to a state like a model that can be opened again later given you wont edit it again?

I can't create them outside the program (with something like Blender) since the shape is computed when the program starts. The render then gets translated, rotated, drawn over, etc. Note, that I don't need to edit the shape though, but I do want it in a 3D state so saving an image isn't an option.

View 2 Replies


ADVERTISEMENT

Add Opengl To My Program?

Feb 24, 2009

I want to add opengl to my vb.

View 2 Replies

How To Do OpenGL Within A VB .NET Environment

Feb 17, 2012

I was trying to learn how to do openGL within a VB .NET environment and it seems that the Tao framework or OpenTK is recommended with OpenTK having a higher recommendation so that is what I chose to try using. Since I am brand new to this, I am trying to just draw a simple box, triangle, or anything really so that I can understand it all before making more complex things. I have been unsuccessful at this so far so I will list in order what I have done so far and hopefully someone here can help me correct it or provide a new example just so I can draw a simple shape.

1) I installed OpenTK using opentk-2010-10-06.exe

2) In a new project I added the references to OpenTK.dll and OpenTK.Compatibility.dll

3) I added the control (opentk.glcontrol.dll)

4) I added the actual control to my form.Using some examples online I added the rest:

5) I wrote my references in:

Imports OpenTK
Imports OpenTK.GLControl
Imports OpenTK.Platform

[code]....

The above results in no display?

View 2 Replies

Drawing A Line In VB With OpenGL

Nov 6, 2010

I was wondering if anyone could steer me to any good references to using OpenGL in vb.Net? I wanted to try a simple line drawing test to start off with, and came across many old discussions about using CsGl or the Tao Framework. But I could not get CsGL to import into Net2008 (the Add Reference window simply could not see the DLL that was clearly there when using Windows Explorer). And although I could get Tao to import OK, and found portions of one person's project, I figured that somehow the GL window he was referring to had to first be set up as a GL object (new class?).In addition, all the OpenGL books I have looked at only discuss OGL with respect to some version of C.From what I have gathered, you need a connector between vb.Net and the opengl32.dll libraries and that is what CsGL and Tao are about. But the edumucation resources seem very few.

View 13 Replies

Installing DirectX Or OpenGL On VB?

Sep 13, 2011

I wanted to install visual Basic or C++ (but Basic really seems easyer to use) with DirectX or OpenGL but I can't get it to work!I've tried Visual Basic Express 2008 and 2010 and i'm getting the same type of errors...

-> Directx

When I try this program [URL]with VB I either get

with 2008 : just a red cross on a blank screen

with 2010 : an unlimited waiting time, and when i click i get an error message that tells me to continue waiting, im forced to CTRL -ALT - DEL to shut down VB.

-> OpenGL:So i've tried a lot of times! they tell me that it's already installed on windows so i don't need any installation but then VB gives me alot of errors, telling me that some part of code isnt recognized!!

i've tried tutorials with Csgl or Tao, but none seem to work...I already got some knowlege of OpenGL but not DirectX, so could anyone please tell me which one does work on my computer and is best for creating a graphics window inside an API that i create, for instance a mob maker?

View 15 Replies

OpenGL : Library Not Found

Apr 6, 2011

how to write program based on OpenGL in VS? cause when i begine debugging ,it says library not found..

View 13 Replies

OpenGl Graphics Package - How To Use In .net

Jan 31, 2009

i want to do a graphics project in Vb.net but have to use OpenGl Libraries . How do i download compatible OpenGl package and how to use them in my .net code.

View 3 Replies

Use OpenGL In Visual Basic?

Aug 3, 2010

i heard OpenGL is 3D and it can be used in visual basic for models and games. Now i dont know if OpenGl is a contol or coding script. But i want to know how to make a simple model in OpenGl in visual basic.

View 9 Replies

Using OpenGL In Visual Basic 2010?

Jan 4, 2011

I am trying to create a tool to make terrains for my game and would like to develop it in Visual Basic Express 2010. I want to use OpenGL but am having trouble.1. Will VB support OpenGL 3.x or higher?

View 6 Replies

Windows - Displaying Textures In OpenGL In XP Vs 7

Nov 12, 2010

I am running into the strangest problem that I just can't place my finger on. I've been developing an application in VB.net for the last couple months in Windows 7. The program involves some basic OpenGL drawing and animation with basic shapes (squares and circles) and basic textures mapped onto pointlists. The time has come to distribute the program to another machine. On some machines though, I encounter problems when I'm drawing textures. I know that openGL is still functional because drawing basic squares and circles still occur, the textured objects are the only things missing.

[Code]...

View 2 Replies

Drawing A Billboard Quad At Point In OpenGL

Sep 3, 2010

I'm working on a game engine, and I want to be able to draw a billboarded (i.e. rectangular to the screen) quad with the center-bottom of the quad being determined by a single point.

View 1 Replies

Error C2661 And C2227 [openGL In VB2008]

Jun 22, 2010

i have to do a college project on this platform so i decided to learn open GL. while working with glui i am facing some problems. i downloaded glui-2.36. I thought of starting with the example1 (code added at bottom of the post) that was included in source folder of glui-2.36. i am using VB.net 2008 When i build the project it gives me 3 errors:

error C2661: 'GLUI_Checkbox::GLUI_Checkbox' : no overloaded function takes 3 arguments
error C2661: 'GLUI_Spinner::GLUI_Spinner' : no overloaded function takes 3 arguments
error C2227: left of '->set_int_limits' must point to class/struct/union/generic type

Here is cpp code:

#include <string.h>
#include <GL/glui.h>
/** These are the live variables passed into GLUI ***/
int wireframe = 0;

[code]....

View 1 Replies

OpenGL - Animation Stuttering When In Full Screen?

Oct 19, 2010

I'm currently running into a problem regarding animation in OpenGL. I have between 200 and 10000 gears on the screen at a time all rotating. When the window is not in maximized view, my CPU runs at about 10-20 % consistently. No spikes, no stuttering in the animation, it runs perfectly smooth regardless of the number of gears on screen. When I maximize the window though, everything falls apart. My CPU maxes out, I begin getting weird spikes in CPU usage, the animation begins stuttering as a result, and it just looks really ugly, even when I have only 200 gears on screen.

My animation technique looks like this:

While Animating
Calculate current rotation angle based on a running timer
draw Image
call glFlush()
End While

I'm using the Tao framework in VB.net. I'm not performing any other calculations other than the ones to calculate the rotation angle mentioned above and perform a few glRotateD and glscaleD in the method to draw the image.

In addition, I guess I was under the impression that regardless of the window size in an orthographic 2-dimensional drawing that is scaling on resizing of the window, the drawing time would always take the same amount of time. Is this a correct assumption?

Note that I've seen the animation run perfectly smooth at full screen before. Every once in awhile, OpenGL will decide it's happy and run perfectly at full screen using between 10-20% of the CPU (same as when not maximized). I haven't pinpointed what causes this though, because it will run one time perfectly, then without changing anything, I will run it again and encounter the choppiness. I simply want to pinpoint what causes the animation to slow down and eliminate it.

I've run a dot trace on my program and it says that the swapBuffers method is using 55 % of my processing time even though I'm never explicitly calling the method. Is the method called by something else that I can eliminate, or is this simply OpenGL's "dead time" method to limit the animation to 60 fps?

View 1 Replies

Make A OpenGL Overlay With VB 2008 Express Edition?

Sep 28, 2011

make a openGL overlay so for an examplei play a game and when i click shift + tab then the game will fade and my application will be seen but without minimizing the game

View 3 Replies

Rendering Opengl Into A Visual Basic 2010 Picture Box

Jul 26, 2011

Does anybody know how I can render openGL into a Visual Basic 2010 picture box?If you havent already done so please delete the abusive posts that responded to my original enquiries. I have decided to start a new thread on this subject rather than in an existing thread because it's more convinient for me.

View 9 Replies

Use OpenGL In Visual Studio 2010 32 Bit Installed On Windows 7 64 Bit?

Dec 25, 2011

i have installed visual studio 2010 32 bit on my new computer which have windows 7 64 bit. Everything seems ok. But now I try to learn how to draw some spheres with movement. I have tried to install openGL2 but it does not work or said that it does not fit with 64 bit, or it works only with VC.

Could any one, please, give me a short introduction to install and use open GL in vb.net 2010 installed on windows 7 64 bits ?

View 3 Replies

Tell The Control To Render With Ie9?

Aug 12, 2011

I have a web browser integrated into a project. the web site uses jquery and runs best with ie9. The WebBrowser control in my vb.net form runs the web page as ie6 and none of the jquery works. Is there a way to tell the control to render with ie9?

View 1 Replies

.net - Render Section Within Using.BegingForm()?

Jun 20, 2012

I'm trying to render a custom section within a form in VB.NET MVC3? the section is in the master layout, and is defaulted - but id like to create a custom one when in a particular view

[Code]...

View 2 Replies

.net - Render SSRS .RDL To PDF And Just Open It?

Apr 23, 2010

We have a report that has to be called from an ASP.NET application, it could be a simple button. Through the code-behind, I gotta pass in a paramater, render the report, and don't save it anywhere, just open it to the user, as a .pdf file so he could save or print it.

EDIT:Now I've got the report done, I just need to know the best aproach to call it.It can't be done directly from an URL because that allows the user to save or close the pdf file, which is not what I want.

I'm starting to think that the best aproach to achieve this would be the following:I render the PDF programatically, and create the .PDF file in a temporary folder inside my app structure, then start a new thread to open the file, and wait for the user to close it, when he does, I delete the file and the thread is dead.

View 2 Replies

Asp.net - ReportViewer Parameters, Render Pdf?

Aug 30, 2011

I want to render a report directly to pdf. I have an objectdatasource with 2 parameters. I obtain these parameters from a hiddenfield on the webform and from the datakeyname on a gridview. The report works when I load it in report viewer without rendering to pdf. When I place the code to render the report as pdf the parameters dont load i.e. the report renders as pdf but there are no details on the report. My code is below,. I placed the code in gridview_selectedindexchanged:

[Code]...

View 1 Replies

Render ToolStrip To Look Like IE Toolbar?

Nov 25, 2011

I'm trying to make a toolstrip similar to that of Internet Explorer (as shown below). Does anyone know how to create a custom renderer to do this?

View 7 Replies

Render WebBrowser To Bitmap?

Nov 12, 2011

Dim formTest1 As FormTest = New FormTest()
formTest1.Show()
Dim htmlDocument As mshtml.IHTMLDocument2 = DirectCast(WebBrowser1.Document.DomDocument, mshtml.IHTMLDocument2)
If htmlDocument IsNot Nothing Then

[Code]...

I want to copy the contents of a WebBrowser to a Bitmap. The above code seems to reproduce a part of the image but not all of it.

1) I'm sure I don't understand this completely so my comments probably have terminology that is not completely correct. I would really appreciate it if you could edit them and maybe add a little to them.

2) And, of course I'd like to know how to improve the code.

View 3 Replies

Use GDI+ To Render Images Is Slow

Jan 14, 2012

I currently use GDI+ to render my images but is too slow for what my software is supposed to do. I tried to use DirectX but it too hard to implement. Is there any library that is best of bought worlds? Fast and easy to use?

[Code]....

View 7 Replies

.net - Long Lines Don't Render Correctly

Feb 4, 2012

I have a project with a canvas that the user can zoom and pan using the mouse. The origin is marked with a blue cross running through the canvas. As the user zooms in the line width of the markers is reduced to keep the them about 1 pixel wide on screen. However, after zooming in about 10x the origin lines abruptly disappear. It seems like the rendering engine is deciding that the line is too small to be displayed before applying the scaling transform.

What is strange is that when I do the same operation to a rectangle instead of a line I get the expected behavior (see the ScaleBox rectangle object in the code below). Any ideas on what is causing the problem and how to fix it would be welcome.

Here is the relevant XAML:

<Canvas x:Name="MouseCapture" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="WhiteSmoke" >
<Canvas x:Name="ZoomPan">
<Canvas.RenderTransform >

[code]....

Here is a screenshot as 10x Zoom. The origin lines have disappeared abruptly, but the black box still shows up as expected. (Note that only one side of the black box is visible because the rest is outside the visible region because of the zoom.)

View 2 Replies

.net - PDF Controls Render Text Differently?

Apr 5, 2011

I'm working on a website that creates pdfs dynamically.I've been playing around with two different pdf controls- wpcubed and abcpdf, and was surprised to see that they both appear to render text differently.

wpCubed:
abcpdf:

They are both using arial 25pt bold, so I was expecting them to look identical. Can anyone explain why they don't. Here are the full files: wpCubed , abcpdf

View 1 Replies

Button And Overriding The Render Event?

Oct 11, 2011

rticularly when creating jQuery buttons with no text and just icons) as a result of this.Secondly I am attempting to create my own custom button output by overriding the Render() event and am having a bit of difficulty trying to understand how to go about changing the output that is provided by this event.If I look at the HtmlTextWriter that is provided as the parameter to the Render() event I can see it contains a protected property TagKey = Input {47}, is it possible to simply modify this property somehow and change it to a Button or do I need to create a new instance of the HtmlTextWriter and populate it all from the start? If so, could anyone provide some guidance as to how this would typically be done and if there are any special considerations I need to make to ensure that my derived button class is functionally equivalent to the original (excluding the html)?

<Assembly: TagPrefix("MyCompany", "MyCustomButton")>
Public Class MyButton
Inherits Button

[code].....

View 2 Replies

C# - HttpHandler To Render A Png From An Array Of Bytes?

Feb 14, 2012

I just can't get it to work. I have an array of bytes, read from a png file. I'm trying to write a (very) simple HttpHandler to render the image:

context.Response.AddHeader("Content-Type", "image/png")
context.Response.BinaryWrite(bytes)
context.Response.End()

[Code].....

View 1 Replies

DataGridView Render - Color Each Row According To Its Result

Feb 15, 2009

I'm filling a DtatagridView as usual, using a datatable as datasource and I have the SelectionMode = FullRowSelect, but since I need to color each row according to its result, I have set the property DefaultCellStyle - SelectionBackColor = Transparent, well, I'm not going to complaint about the font looks a little bit distorted, but about the selectedrow does not render correctly, If I minimize the program and then maximize it, the selectedrow appears with the image of the desktop's background.

[Code]....

View 1 Replies

DirectWrite - How To Render Font From Resource

Jul 12, 2010

I am using directwrite and was just wondering how to render a font (font face file) that is loaded in the project resource (probably through a stream).

View 1 Replies

Dropdownlist/cascadingdropdown Needs To Render Html?

Feb 11, 2010

I have a asp:DropDownList with a CascadingDropDown being populated by a webservice.The data the webservice provides contains HTML code eg. <sup>2</sup> which needs to be displayed as a superscript Unfortunately, the HtmlEncode="False" doesn't seem to work (if i set it to true, doesn't work either) - primarily because it isn't a valid property for the dropdownlist How do I do this?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved