Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, sleakz), 706 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 13 of 16 1 2 11 12 13 14 15 16
Re: newton [Re: ventilator] #113161
02/06/08 16:20
02/06/08 16:20
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
i decide to stop at this variant:

Code:
 
NewtonBody* body_temp;

*****

body_temp=newton_addentity(my, 15, NEWTON_SPHERE, MHforceandtorque);
NewtonConstraintCreateUpVector (nworld, vectorf(0,0,QUANTTOMETER), body_temp);
NewtonBodySetMaterialGroupID(body_temp, player_nmat);



Last edited by VeT; 02/06/08 16:22.
Re: newton [Re: ventilator] #113162
02/25/08 07:14
02/25/08 07:14
Joined: Nov 2007
Posts: 5
IRAN
S
SilentDemon Offline
Newbie
SilentDemon  Offline
Newbie
S

Joined: Nov 2007
Posts: 5
IRAN
hi
any body can tell me where i can find DOWNLOAD link for this Dll ?
there is a link in forum ... but seems it demolished(ow)

so . if anyone can get it for me please hurry( )
thnx

Last edited by SilentDemon; 02/25/08 07:17.
Re: newton [Re: VeT] #113163
02/26/08 20:30
02/26/08 20:30
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: newton [Re: VeT] #113164
02/27/08 11:03
02/27/08 11:03
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
ventilator, why did you wrote
Code:
 NewtonTreeCollisionEndBuild(treecollision, 0); 


not the
Code:
  NewtonTreeCollisionEndBuild(treecollision, 1); 




1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: newton [Re: VeT] #113165
02/27/08 11:25
02/27/08 11:25
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
so i changed your newton_addstaticcollisiongeometry() to

Code:
 
void newton_addstaticcollisiongeometry()
{
NewtonCollision* treecollision = NewtonCreateTreeCollision(nworld, 0);
NewtonTreeCollisionBeginBuild(treecollision);

you = ent_next(0);
while(you != 0)
{
if(you.flags & FLAG8)
{
newton_treecollisionaddentity(treecollision, you);
}
you = ent_next(you);
}

int i = 0;
LPD3DXMESH pmesh = (LPD3DXMESH)ent_getmesh(NULL, i, 0);
while(pmesh)
{
// add the triangles of the mesh to newton here
int numvertices = pmesh->GetNumVertices();
int numfaces = pmesh->GetNumFaces();

_VERTEX_ *pvertices; pmesh->LockVertexBuffer(0, (void**)&pvertices);
short *pindices; pmesh->LockIndexBuffer(0, (void**)&pindices);
int *pattributes; pmesh->LockAttributeBuffer(0, &pattributes);

D3DXVECTOR4 *ptransformedvertices = (D3DXVECTOR4*)malloc(sizeof(D3DXVECTOR4) * numvertices);
D3DXMATRIX m; ent_getmatrix(pmesh, &m);
D3DXVECTOR3 tempvector;
int i;
for(i = 0; i < numvertices; i++)
{
tempvector.x = pvertices[i].x;
tempvector.y = pvertices[i].z;
tempvector.z = pvertices[i].y;
D3DXVec3Transform(&ptransformedvertices[i], &tempvector, &m);
}

for(i = 0; i < numfaces; i++)
{
float v[9];
v[0] = ptransformedvertices[pindices[(i*3)+2]].x * QUANTTOMETER;
v[1] = ptransformedvertices[pindices[(i*3)+2]].y * QUANTTOMETER;
v[2] = ptransformedvertices[pindices[(i*3)+2]].z * QUANTTOMETER;
v[3] = ptransformedvertices[pindices[(i*3)+1]].x * QUANTTOMETER;
v[4] = ptransformedvertices[pindices[(i*3)+1]].y * QUANTTOMETER;
v[5] = ptransformedvertices[pindices[(i*3)+1]].z * QUANTTOMETER;
v[6] = ptransformedvertices[pindices[(i*3)+0]].x * QUANTTOMETER;
v[7] = ptransformedvertices[pindices[(i*3)+0]].y * QUANTTOMETER;
v[8] = ptransformedvertices[pindices[(i*3)+0]].z * QUANTTOMETER;
NewtonTreeCollisionAddFace(treecollision, 3, v, 12, pattributes[i]);
}


free(ptransformedvertices);

pmesh->UnlockVertexBuffer();
pmesh->UnlockIndexBuffer();
pmesh->UnlockAttributeBuffer();

i++;
pmesh = (LPD3DXMESH)ent_getmesh(NULL, i, 0);
}


NewtonTreeCollisionEndBuild(treecollision, 0);
NewtonBody* level = NewtonCreateBody(nworld, treecollision);
NewtonReleaseCollision(nworld, treecollision);

NewtonSetWorldSize(nworld, vectorf(-1000, -1000, -1000), vectorf(1000, 1000, 1000)); // todo: make size dependent on tree collision bounding box
}



but blocks are still ignored... maybe i forget something?...


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: newton [Re: VeT] #113166
02/27/08 19:24
02/27/08 19:24
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441

Re: newton [Re: ventilator] #113167
02/28/08 22:34
02/28/08 22:34
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
thats it


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: newton [Re: VeT] #113168
03/16/08 14:07
03/16/08 14:07
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
ventilator, do you have good-working level with newton and blocks?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: newton [Re: VeT] #113169
03/16/08 15:05
03/16/08 15:05
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
no, i didn't use level geometry so far because the map compiler and light mapper didn't work properly for meshes anyway so i just kept using models. once the map compiler works and does nice light maps i will try it.

Re: newton [Re: ventilator] #113170
03/16/08 17:58
03/16/08 17:58
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
but what are you thinking about Gamestudio's "optimising": when you not looking at entity(but still looking at the shadow), its dissappears with its shadow?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Page 13 of 16 1 2 11 12 13 14 15 16

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1