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 Discussion / Limbs and meshes, need help?

Author
Message
gareth
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 30th Jan 2004 20:38
sorry another post (must be the third this week)
i cant get my head around limbs, ive got a plain, and i need to add another plain to the side of it as a limb, with another plain the the front as another limb,

ive created all 3 plains, now how do i make plains 2 and 3 limbs of plain 1?? please can anyone enlighten me on this?
-gafy
#
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 31st Jan 2004 09:44
What you want to do is use the Make Mesh From Object command so that you have a mesh, then use the Add Limb command to add the newly created mesh to the main plain.

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Travis
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: West Aust.
Posted: 31st Jan 2004 09:52 Edited at: 31st Jan 2004 12:02
i never have really understood what meshes are?
can anyone explain?
i would be most apreciative
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 31st Jan 2004 11:36
Mesh's are rather simple. They are simply the source object's vertex data stored in memory. Nothing more, nothing less.

Then, using that mesh, you can apply the vertex data to other objects, or create an object with the same vertex data, etc etc.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Travis
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: West Aust.
Posted: 31st Jan 2004 12:05
Why thankyou for enlightining me oh so great kind,kind, sir.
gareth
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 31st Jan 2004 14:06
yes, i always thought that the mesh had to be the shape of the completed object with its limbs, do you delete the mesh after youve added the limbs, because when i use "make mesh from object" i always get an untextured object (which is guess is the mesh) and my orignal object?
Doucan
21
Years of Service
User Offline
Joined: 26th Nov 2003
Location: Vermont USA
Posted: 31st Jan 2004 16:45
What the heck is vertext data?

Completed Doucan movies: Doucan year of the Monkey, Doucan II: the revenge of Mortakia. Current project: Doucan movie DVD resoration. Progress: 20%
gareth
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 1st Feb 2004 14:25
i sovled it, but now i have problem, i need to rotate the limb towards the mouse, the game is a side scroller, but the user can zoom the camera in and out, making position an object to the mouse very hard
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 2nd Feb 2004 04:12
Doucan;

Verticies ( multiple vertex's ) are each point on a model. You've probably seen models in their wireframe mode before, and you would have noticed that each model is made up of triangles, each point of these triangles are called a vertex, or verticies.

Vertex data is simply their position in 3D space.


gareth;

Use Object Screen X(num) and Object Screen Y(num) to find the position of the object on the screen, then, check that against the positoin of the mouse, and if they aren't where you want them to be, move/rotate the object untill it is all good.

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
gareth
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 3rd Feb 2004 23:46
well, the turret is always to the front of the ship (the camera is to the side of the ship), and the ship is always in the centre of the screen, so how wud i work out the angle between the screen posy of the turret and the screen posy of the mouse?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 5th Feb 2004 11:24
use Sin and Cos...

Find the right angled distance each each ( verticle and horizontal ) then use either Sin or Cos to find the angle.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Doucan
21
Years of Service
User Offline
Joined: 26th Nov 2003
Location: Vermont USA
Posted: 7th Feb 2004 01:13
thnx

Completed Doucan movies: Doucan year of the Monkey, Doucan II: the revenge of Mortakia. Current project: Doucan movie DVD resoration. Progress: 20%

Login to post a reply

Server time is: 2025-05-22 14:11:38
Your offset time is: 2025-05-22 14:11:38