Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / X file won't load

Author
Message
tehuti2999
12
Years of Service
User Offline
Joined: 9th Nov 2012
Location: United States
Posted: 9th Nov 2012 20:21
I installed the GDK .Net template and tried to load a simple .x file and the followed the instruction and the file won\'t load, can anyone tell me what i\'m doing wrong, I\'m not new to VB, just to the Dark GDK stuff. heres my code the x. file is from Bryce7.1
[Public Class GameCore
Sub Main()

\'Setup Display, Camera
DarkGDK.Display.SetDisplayMode(1280, 720, 32)
DarkGDK.Display.SetWindowLayout(0, 0, 0)
DarkGDK.Display.MaximizeWindow()
DarkGDK.Core.SyncOn()
DarkGDK.Core.SyncRate(0)
\'DarkGDK.Camera.DefaultCamera.AutoCamOn()
DarkGDK.Camera.DefaultCamera.BackdropOff()
DarkGDK.Core.DrawToBack()

DarkGDK.Core.Print(\"Please wait, Loading model...\")
DarkGDK.Core.Sync()
DarkGDK.Core.Sync()

DarkGDK.IO.File.SetCurrentDirectory(\"..\\..\\Media\")

Dim Malebody As New DarkGDK.Basic3D.Object3D(\"Malebody.x\")

DarkGDK.Camera.DefaultCamera.PositionCurrent(0, 25, -75)

\'Main Loop
While DarkGDK.Engine.LoopGDK()
DarkGDK.Core.ClearScreen()
DarkGDK.Core.Sync()
End While


End Sub
End Class
]
tehuti2999
12
Years of Service
User Offline
Joined: 9th Nov 2012
Location: United States
Posted: 2nd Dec 2012 00:29
Problem solved
aerostudios
15
Years of Service
User Offline
Joined: 20th May 2009
Location: Oklahoma City OK (USA)
Posted: 20th Mar 2013 18:34
Did you remove the "\" from the end of the filename?
tehuti2999
12
Years of Service
User Offline
Joined: 9th Nov 2012
Location: United States
Posted: 15th Apr 2013 06:50
yeah i saw that I got it working anyway, my file had to way many vertices, had to decimate.

Login to post a reply

Server time is: 2024-11-17 22:45:27
Your offset time is: 2024-11-17 22:45:27