This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > January 2004 > vrml automation visual basic createVrmlFromString. Please read me!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author vrml automation visual basic createVrmlFromString. Please read me!
starla

2004-01-29, 9:33 pm

I need to animate a vrml world, taken from a file.

So I create a string, and i read it with Cortona Visual Basic Control,
like this:

code:
Dim stream As TextStream Dim fso As New FileSystemObject Set stream = fso.OpenTextFile("c:\myPath\file.wrl", ForReading) Dim str As String str = stream.ReadAll Dim eng As VRMLEngine Set eng = Cortona1.Engine eng.AutoRefresh = True eng.CreateVrmlFromString (str) eng.Refresh

I expected to see my control filled with the wrl world taken from
file.

Coul anyone help me understand why this doesn't work? I've tried to
find somwthing on the web about vrml and vb, but it seems that
everybody acces vrml from client scripting like Javascript, VBScript
or other languages like Java. I must use Visual Basic, because i'm
doing it for thesis (help me finishing University *'_'* )
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews