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 / using Pick Object and Lock Object [Workaround for DarkGDK]

Author
Message
Proteus
22
Years of Service
User Offline
Joined: 4th Oct 2002
Location: The Future
Posted: 27th Oct 2008 03:28 Edited at: 27th Oct 2008 03:29
Hey all!

The story (skipable):
Long time no see (I guess it's been almost 5 years )
I'm currently developing my graduation project ,it's mostly a hardware related multi-user interface prototype and as our drivers began to come out of alpha stage I was given the task of creating a freeware demo app (simple RTS like game) with a month's deadline...It's ok... I've survived worse deadlines ("compiler in a month" was definitely worse!)...
as DBP has saved my neck several times in the past, I decided that I'd finally try DarkGDK together DarkPhysics..

The good:
DarkGDK is exactly how I remember DBP (meaning rapid development)

The Bad:
DarkGDK is exacly how I remember DBP... I'm from before Upgrade 6

Anyhow, just cause the deadline is tight it doesn't mean I won't give a little back to the community, the following workaround is suitable for HUDs and Menu's made from known objects (objects whose numbers we already know to be in a specific range) , make sure no other objects are in this range otherwise if they are close to the space origin they may cause interference in the process...


The Problem:

The function dbPickObject() in DGDK is equivalent to the old DBP's pick object command, which did not take a "ignore camera" flag.

Today's Workaround:
I'd code the linear algebra needed myself if I it wasn't for this deadline of mine ... However in order to finish my project in time I've used the KISS approach :

* save the camera position and rotation
* reposition and rotate to default @ origin
* use PickObject
* reposition and rotate to the saved location

I don't claim this to be an original Idea at all, but since I couldn't find anything related with a simple search I thought this might help people in a similar situation



Diego "Proteus" Spinola
Electrical Engineer
Emphasis on Computer and Digital Systems Engineering

Login to post a reply

Server time is: 2024-11-25 05:48:41
Your offset time is: 2024-11-25 05:48:41