Public OneBlueLight As DarkGDK.Basic3D.Object3D
Public BlueLights As New List(Of DarkGDK.Basic3D.Object3D)
TempLight = OneBlueLight.Clone
BlueLights.Add(TempLight)
Any ideas?
How to do this in PB vs. VS2010 with DarkGDK.Net
-
russellbdavis
- User

- Posts: 31
- Joined: Wed Dec 02, 2009 4:50 pm
- Location: Oklahoma City, OK
- Contact:
Re: How to do this in PB vs. VS2010 with DarkGDK.Net
I've never used DarkGDK before. What is it your trying to accomplish? An explanation of the process would help me understand what it is your after.
-
russellbdavis
- User

- Posts: 31
- Joined: Wed Dec 02, 2009 4:50 pm
- Location: Oklahoma City, OK
- Contact:
Re: How to do this in PB vs. VS2010 with DarkGDK.Net
I am loading 3d objects representing runway lights for an airport scene.
Those items are DirectX files.
So I need to store the collection of those objects.
Those items are DirectX files.
So I need to store the collection of those objects.
- Bananenfreak
- Enthusiast

- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: How to do this in PB vs. VS2010 with DarkGDK.Net
Err, OGRE only can load .mesh-Files.
Use LoadMesh() and CreateEntity().
Use LoadMesh() and CreateEntity().
-
russellbdavis
- User

- Posts: 31
- Joined: Wed Dec 02, 2009 4:50 pm
- Location: Oklahoma City, OK
- Contact:
Re: How to do this in PB vs. VS2010 with DarkGDK.Net
Thanks, but I'm not using OGRE, I'm using the DarkGDK for PB.
In Visual Studio I simply had to define the object(s) type to expect in the list collection.
But, I'm not sure how to do that with a list in PB.
The list needs to understand that the item being added is of type "DarkGDK.Basic3D.Object3D"
In Visual Studio I simply had to define the object(s) type to expect in the list collection.
But, I'm not sure how to do that with a list in PB.
The list needs to understand that the item being added is of type "DarkGDK.Basic3D.Object3D"
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: How to do this in PB vs. VS2010 with DarkGDK.Net
I think you need to use a Structured Linked List. Are you using Mistrel's PureGDK (DarkGDK for PureBasic)? That probably has a lot of your requirements pre-solved.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
russellbdavis
- User

- Posts: 31
- Joined: Wed Dec 02, 2009 4:50 pm
- Location: Oklahoma City, OK
- Contact:
Re: How to do this in PB vs. VS2010 with DarkGDK.Net
I figured it out. I just need an array to store the object IDs.
Yes, I am using Mistrel's DarkGDK. It is super-cool for creating 3d games, and I'm creating one very complex game.
TOWER CAB (www.towercab.com)
For instance, the command dbCreateSprite(x,y,image) wil create a sprite using a loaded image.
So, to store the ID # of the sprite so I can manipulate it, I do something like this:
Redim SpriteIDS(1)
SpriteIDS(1) = dbCreateSprite(100,200,MyImage,#PB_ANY)
Then, SpriteIDS(1) will hold the object ID # so I can then use it to do something like;
dbHideSprite(SpriteIDS(1)) ; which will hide the sprite
Yes, I am using Mistrel's DarkGDK. It is super-cool for creating 3d games, and I'm creating one very complex game.
TOWER CAB (www.towercab.com)
For instance, the command dbCreateSprite(x,y,image) wil create a sprite using a loaded image.
So, to store the ID # of the sprite so I can manipulate it, I do something like this:
Redim SpriteIDS(1)
SpriteIDS(1) = dbCreateSprite(100,200,MyImage,#PB_ANY)
Then, SpriteIDS(1) will hold the object ID # so I can then use it to do something like;
dbHideSprite(SpriteIDS(1)) ; which will hide the sprite