
Vb.net and there problems
Posted Monday, 28 November, 2011 - 12:24 by Fremder inHello -
i working 99% with vb.net verry good
begining opengl with tao. ... wrapper
and see in the last weeks tao = OLD
OpenTK its NEW (and better !?)
-> for me importend for the tuture .. ok i GO to OpenTK
BUT the last 10 days i search and search and testing and downloading and and and
nothing for VB or its (sorry ) bullshit ...
then i go to backtotheroots and hope i make a good beginn with simple "beginn"
but after 3 hours its come this:
Vector3.Multiply(ParticleAttributes(i).Direction, CSng(e.Time), temp) ' OK
Vector3.add(VBO(i).Position, temp, VBO(i).Position) ' NOT OK
in c# its with "REF"
but in vb i have no idea ...
=========================
and now my simple ask :-)
its OpenTK AND VB a good think or not ?
i found 2 samples ~OpenTK and VB.net~ but NOT ONE its going without errors (not t corect Classes / imports etc.)
sorry for my english :-)
=======
the Samples from openTK its nice ... but when i convert to vb.net not going *g*
=======
with TAO i have a good "learningsample" and verry fast in vb.net
but convert to openTk its to hard for me :-(


Comments
Re: Vb.net and there problems
Each math function in OpenTK has two variants:
ByValparameters a return valueByRefparameters (the first two as inputs and the last as output).The
ByRefvariant is slightly faster but has a few limitations. You'll need to read up on ByRef parameters for the dirty details, but the gist is that you cannot use a ByRef parameter to assign properties, array elements or struct fields, Struct/Class property or array element.OpenTK is CLS-compliant (for the most part) and people have been using it with VB.Net successfully, so this combination is indeed viable. Do post if you encounter any other issues, feedback from non-C# languages is valuable but limited.
Re: Vb.net and there problems
hi and thanks ...
cls yes or no .. ,its to long way ...
(in the source from OpenTk.Vector3) -> Opentk.dll
i copy the original to
Public Shared Sub AddVB(ByRef a As OpenTK.Vector3, ByRef b As OpenTK.Vector3, ByRef result As OpenTK.Vector3)
then its going ok :-)
Vector3.AddVB(VBO(i).Position, temp, VBO(i).Position)
but i not sure this it's a "good-way" :-)
Re: Vb.net and there problems
Hi Fremder,
you really able to draw the Inline image with vb.net? can share with me how u do it?