Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: LoadTVS problem  (Read 284 times)
davidochoa
Customers
Community Member
*****
Posts: 8


« on: May 16, 2008, 01:48:16 PM »

I have an problem with LoadTVS, I tested it with vb6 and C#:

Create a Package and save the scene:

Code:
  Dim cubo As TVMesh
  Set cubo = Scene.CreateMeshBuilder("Prueba")
  cubo.CreateBox 10#, 10#, 10#
  cubo.SetPosition 5#, 5#, 10#
 
  Dim pckg      As New TVPackage
  pckg.CreatePackage "pruebas.pck"

Load the saved scene:

Code:
  Dim idPackage As Long
  Dim pckg      As New TVPackage
  idPackage = pckg.OpenPackage("pruebas.pck")
  Scene.LoadTVS idPackage

  Dim cubo As TVMesh
  Set cubo = GetMesh("Prueba")
 
  MsgBox GetMeshFromID(0).GetMeshName()
  MsgBox cubo.GetMeshName()

in C#:

Code:
TVPackage pckg= new TVPackage();
int idPackage = pckg.OpenPackage("pruebas.pck");
Scene.LoadTVS(idPackage);

TVMesh cubo = Globals.GetMesh("Prueba");

MessageBox.Show(Globals.GetMeshFromID(0).GetMeshName());
MessageBox.Show(cubo.GetMeshName());

In both languages the first message box displays the mesh name (Pruebas) but the second throws an error:

VB6: Object variable or With block variable not set.
C#: Object reference not set to an instance of an object.

It looks like something is not updated when LoadTVS is called.
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #1 on: May 16, 2008, 03:29:50 PM »

Load TVS / Save TVS is still not working 100%, it's still a WIP.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks