|
Post by UNDISCLOSED on Apr 8, 2009 3:49:22 GMT -5
Sorry if this is too massive, I just got here so I am not sure how this request should go. I was wondering If it would be possible to make a DLL that could allow me to use Goole Earth models (*.KMZ) in basic 4GL, because I have google skechup whitch lets you export stuff in the KMZ format and it would make game programing 3D games 200% easier! Functions I would like would be: LoadKMZ(<FILENAME>,<SCALE>,<CAMERA HEIGHT>) SetCameraPos(<CAMERA_X>,<CAMERA_Y>,<CAMERA_Z>) SetCameraHieght(<CAMERA HEIGHT>) MoveCamera(<DISTANCE>,<AXIS>,<COLLISOIN (True or False)>) This would be amazing to have! But writing a KMZ library from scratch and collision detection would be realy hard. I dont mind if it uses the SKP format from google Sketchup itself, as long as it is one of the formats (Or both  ). Thanks in advance.
|
|
|
Post by stumpy798 on Apr 8, 2009 10:07:00 GMT -5
yea thats possible mabye ill give it a try soon
|
|
|
Post by matthew on Apr 8, 2009 12:20:15 GMT -5
Google uses the KML format, KMZ is just a compressed form. If you'd used Google to search for the KML format you probably would have discovered this page.
|
|
|
Post by UNDISCLOSED on Apr 8, 2009 13:41:44 GMT -5
Thanks for the format correction matthew, I might try to look into the KML thing but I am rubbish at anything 3D so a plugin DLL would be awsome. Also the DLL could have buit in collisiond detection.
EDIT: I thought out exactly what I would need: LoadWorld(<FILE>) This is the 3D enviroment that everything gets loaded into.
LoadModel(<FILE>, <TYPE>, <X POS>, <Y POS>, <Z POS>) This is for loading a standard model, where type is one of the following: MODEL_STANDARD a standar model that other models collide with and you can see. MODEL_WATER a plane of water, when below this object CAMERA_UNDERWATER() would return true. MODEL_INVISIBLE an invisible model with collision detection. MODEL_NOCOLISION a visible model without collision detection.
SetCameraPos(<X>,<Y>,<Z>) Obvios what this would do.
SetModelType(<TYPE>) see above ^
SetModelTint(<TINT>) tints a model to the specifyed RRGGBB hex color
SetWorldTint(<TINT>) tints the world and all contained models' tint.
MoveCamera(<AXIS>, <DISTANCE>) Moves the camera allong the <AXIS> Axis for <DISTANCE> meteres
RotateCamera(<AXIS>, <ANGLE>) Rotates the camera <ANGEL> clockwise around the <AXIS> axis.
SetZoom(<ZOOM>) fairly self explanitory.
DeleteModel(<MODEL>) where model is a handle returned from LoadModel()
DeleteWorld() Deletes everything.
Piont 0,0,0 would be the origin and the units would be The models units (Theoretical meters!).
|
|