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.

Newcomers DBPro Corner / Object disapears at certain coordinates

Author
Message
Rei Snatcher
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 6th Aug 2008 01:42
So I'm pretty nwe to DBPro, but I've spent the last week or so reading up on memblocks, meshes, objects and what not.

I created/absorbed a script that made me a flat memblock terrain object. Then I implimented the pickobject script to get the x and z coordinates on the terrain, and positioned a small 3D cube at the cordinates.

For some reason whenever I try to move the cube to certain coordinates (even without using the function to get teh coordinates) it will vanish. The only coordinates that it will display at seem to be everything from 0,-10(x,z) with a greater range on the X axis as the Z pos increases.

Sorry it's not a very good explanation, but I attatched thhe project so you'll be able to see it for yourself.

It doesnt' do this if I just write a program consisting of createing and positioning the object, so there must be something I'm doing that messing it up, but I'm completely baffled as to what it is.

I'd appreciate any help!

Every time you illegaly download anime/manga, Kaworu kills a kitten.

Please, think of the kittens.

Attachments

Login to view attachments
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 6th Aug 2008 01:53
Odd-- the cube doesn't seem to disappear for me. It only jumps when I go to the edge and then back to the terrain.

Rei Snatcher
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 6th Aug 2008 02:03
Even when the x pos and Z pos are both at -60?

-60,-60 is a specific co-ordinate that doesnt' work for me.
(Note that there is also a cube that always stays at 0,0)

Every time you illegaly download anime/manga, Kaworu kills a kitten.

Please, think of the kittens.
Rei Snatcher
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 6th Aug 2008 23:17
I recorded a video showing what it's doing.

Every time you illegaly download anime/manga, Kaworu kills a kitten.

Please, think of the kittens.

Attachments

Login to view attachments
Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 7th Aug 2008 06:57
Unfortunately the video didn't do much in the way of helping to understand the problem. Post your code, at least the object drag section of it.

Also, print the y coordinate of the object also...maybe it is changing for some reason?
Rei Snatcher
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 7th Aug 2008 07:16
It's not the object Drag code, since the cube isn't visible when I use just:
the cube still isn't visible, but here is the object drag bit of code anyway:


The entire code is availiable for download in the first post.

I printed the Y position, but it stays constant at Zero.

I don't think it has anything to do with my terrain memblock and object, becasue if I comment out the line of code that runs the terrain creation functions, the cube still wont appear outside of that boundry, so might it have some thing to do with the camera system? I don't really see how that could effect it though...

Every time you illegaly download anime/manga, Kaworu kills a kitten.

Please, think of the kittens.
Eevil Weevil
17
Years of Service
User Offline
Joined: 1st Aug 2007
Location: Wherever you are, I wil follow
Posted: 7th Aug 2008 11:40
Umm... camera range?!?
No! Maybe??

Impossible? Anything is impossible. 48'6F'77'20'64'61'72'65'20'79'6F'75'20'77'6F'72'6B'20'6F'75'74'20'6D'79'20'73'69'67'21

Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 9th Aug 2008 23:50
Eevil,

Possible. But I'm not sure.

Login to post a reply

Server time is: 2024-11-15 20:56:56
Your offset time is: 2024-11-15 20:56:56