Archived

This topic is now archived and is closed to further replies.

X files and Immediate Mode..........

This topic is 6390 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

We exported a mesh with hierarchical links using the plugin from www.effectware.com. The linked objects move out of place or the pivots move outta place.is there any method to change the pivot in the X file? Also, the object gets rotated around the X axis by -90degs,how do i correct this. I have used the foll plugs and all of them suck - PolyTrans - does not export links Effectware Plug - Pitches the obj by -90degs and screws up obj''s positions 3D Exploration - Same problem as above. 3Dto3D - All the above problems!! Conv3ds - Dont ASK!! are there any other plugs??or is it the fault of the IM sample in the D3D SDK? Thnks a lot for ur patience! The only way around it is Through it!!

Share this post


Link to post
Share on other sites
Hey Raptor,

I dunno if you can do this with DX, but im sure it''s posible in a 3D Engine using Software, i''ve done it !!


First, i must say that any 3d object its define by its on coord.,
Every ''NULL'' that u used in 3D Studio, is a (0,0,0) of something.

So if you wanna change the position of a object versus its pivot,
The only thing You need to do, is to displace each vertex by a Vector of displaceent. (Dont move your object in the world, move your vertex within you object space)


Happy Coding,

LowRad

Share this post


Link to post
Share on other sites
I dont actually create the NULL objects, but they are created by 3DSMAX3.0 when i export to the 3DS Format. is there a bug with 3DSMAX3.0 - the 3DS export plugin. can i move the pivot of the frame around the object space.

is this how i move the vertices??(i''m using the XFile IM sample in the DxSDK v7.0)

vertices = Object->GetMeshVertices;
for(loop)
{
vertices.y+=value;
}


by doing this will the pivot be as before??

thnx a lot!



The only way around it is Through it!!

Share this post


Link to post
Share on other sites
regarding the -90 degree rotation around x, i think you''re stuck with it, because it has to do with how each program considers the "up" axis. some programs consider z to be the up axis, while others consider y to be the up axis. i know that in 3d exploration, you have the choice to transform the vertices before you save. at the save screen, at the bottom, there is a transform option, and you can rotate the objects by 90 deg before saving.

a2k

Share this post


Link to post
Share on other sites