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.

DarkBASIC Professional Discussion / (free) Blitzwerks and pick object issue

Author
Message
JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 25th Nov 2012 15:21
I have the BW terrain ID as "1" and when I use the pick object command to use with my mouse, the pick object isn't detecting the BW terrain.

What could I be doing wrong? What are the usual suspects. Other than that, BWT works just fine....at least twice as fast as Advanced Terrain on my modest laptop.

Home is where my souped-up computer is...
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 25th Nov 2012 19:26
errr is it setup as a matrix or an object? From what I recall Matrixes do not usually act as objects... they have Matrix IDs not Object IDs in DBP... so check with the documentation if the terrain is given anything other than ID/Object ID...

I would say, export it first then load it in as am object, unless your intentions are different...

JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 25th Nov 2012 19:29
The documentation says it supposed to act as an object with an "ObjectID".

I just tried the same code with the Advanced Terrain terrain and the pick object command works as it should. Hmmm....

Home is where my souped-up computer is...
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 25th Nov 2012 19:34
in that case, export it as an object and load it back in, see if that works first to diagnose the possibilities of it being a compiler issue... after that it can be aimed at BWT ^^

Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 26th Nov 2012 04:12
hey mate, I know that BT uses the object number to reference the terrain but I don't think it actually acts as an object. you need to make an object from the terrain.

bt maketerrainobject Terrain_no,lod_level,object_no

this command will make an object from the terrain that you can use for collision and pick commands.

each sector will be an individual limb which is handy.

JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 26th Nov 2012 06:10
Kezzla, I dont seem to be using the "bt maketerrainobject" right. The program keeps crashing. here's the code snippet that I currently have.



Home is where my souped-up computer is...
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 26th Nov 2012 06:22
you are setting the terrain object to the same number that BT uses to reference the terrain. try

bt maketerrainobject g_terrainobjectid,0,2

JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 26th Nov 2012 06:54
That did the trick Kezzla, only if the Blitzwerks help file had this in there in the first place.....but it is the free version so I can't complain with the results really-

Home is where my souped-up computer is...

Login to post a reply

Server time is: 2026-07-08 06:45:40
Your offset time is: 2026-07-08 06:45:40