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 / Terrain positioning

Author
Message
Sebastian The Crab
16
Years of Service
User Offline
Joined: 16th Mar 2008
Location: Germany
Posted: 24th Mar 2008 23:32
Is there any way to position terrain?

When I load my terrain, it has an offset and is out of view of the camera.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 25th Mar 2008 00:37
Use the position object commands.: dbPositionObject(TerrId,x,y,z);

Note - MORE THAN ONCE I've made a terrain and found I was INSIDE IT!!!! And had to GO UP... A LONG time to break on through to the other side (from a Doors Song)

Good Luck!

Sebastian The Crab
16
Years of Service
User Offline
Joined: 16th Mar 2008
Location: Germany
Posted: 26th Mar 2008 00:22
I used the command dbPositionObject(TerrId,0,0,0). So far, so good.

But there is one odd thing, that the terrain is not really at x: 0,y: 0, z: 0.

I think that the elevation (y) of it is around 500 instead of 0.


I placed another 3D-object inside the 3d-space and it's inside of the terrain :-(

// make a sphere
dbMakeObjectSphere ( ID_Sphere, 100 );
// position the object in a random location
dbPositionObject ( ID_Sphere, 500, 500, 500 );
Sebastian The Crab
16
Years of Service
User Offline
Joined: 16th Mar 2008
Location: Germany
Posted: 27th Mar 2008 23:44
Does anyone has an idea?
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Mar 2008 01:07
How about some code and some media. then perhaps someone will download it and try it themselves.

Cpt Skydiver
17
Years of Service
User Offline
Joined: 23rd Mar 2007
Location: Behind my computer?!
Posted: 28th Mar 2008 10:22
i had (still have but it was only a small test terrain) the same problem too my terrain was -300 when i placed it at 0,0,0(so i placed it 300 higher). I think it is there because i made it with a with dbpro made editor and that doesnt say where 0,0,0 is in the terrain. Its just where i started making it. I dont know how to solve it though(make a new terrain maybe?).

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Mar 2008 13:25
Do you guys have the same problem just making the terrain long hand - with a detail, texture, and height map?

Cpt Skydiver
17
Years of Service
User Offline
Joined: 23rd Mar 2007
Location: Behind my computer?!
Posted: 28th Mar 2008 17:16 Edited at: 28th Mar 2008 17:16
nope heightmap works fine, i know why i have the problem but you cant really fix it (maybe if you can place your terrain higher in the editor, but again i dont know what editor he used so..) and its not a big deal for me hehe

Sebastian The Crab
16
Years of Service
User Offline
Joined: 16th Mar 2008
Location: Germany
Posted: 28th Mar 2008 22:03
I only modified the terrain tutorial of the Dark GDK (see below). Is it important what the size of the pictures is?


Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-17 08:56:02
Your offset time is: 2024-11-17 08:56:02