Ask a Question related to Macromedia Director 3D, Design and Development.
-
SuperTank #1
Getting a vertex point
Hello,
I am trying to deform a plane (lingo primitive). You see, I want the closest
vertex point at the location of a mouse click to jump down alittle in the world
space. However, this is where I'm having somewhat of a problem.
I want to avoid looping through each vector in the vertexList and by this way
getting the vertex closest to my mouseclick. It just seams to demanding by the
computer.
So I thought I'd first start figuring out what row and column of vertices the
clicked occured on, and using this information easily calculate the index to
use in the VertexList.
I thought I'd get the mouse's "impact" coordinates using ModelsUnderLoc() and
then use the isectPosition-property. And this seames to work, my plane is 50 in
length and isectPosition?s z-coordinate goes between -25 to +25. So I guess
I've put that aside (just incase you guys wanted to know).
I'd now thought I'd calculate the row by writing:
tisec = tr[1].isectPosition
_z = tisec.z
tTileLength = ( float( pLength ) / pLengthVertices )
row = ( _z / tTileLength )
row = integer( row )
But this doesnt give me the result I was hoping for.
Any ideas?
Thanks. :)
( more code can be obtained at [url]http://supertank.mine.nu/movie_help.dir[/url] )
SuperTank Guest
-
vertex colors
Hi, I'm using 3d studio max 5 and the vertex paint modifier to color face vertices. I just cant get the vertex color data to export correctly after... -
vertex keys
is it possible to keyframe verteces (im using Max 6)? and can this be exported to w3d? thanks Greg -
Multiple (u, v) per Vertex
Is is possible to index multiple (u,v) per model's vertex ? Director make it possible as we can see with the 8 channel multitexturing/multi(u,v)... -
3D model vertex
Hi everyone, I have a 3d box at (100, 150, 200) with 40, 30, 20 as length, width and heigh repectively. Is it possible to find the box's vertex... -
Delete One vertex
Hi, I'm asking if it's possible delete one vertex from a mesh without must delete mesh and recreate it. It's possible ? Thanks regards, -
SuperTank #2
Re: Getting a vertex point
umm, nevermind. Solved it myself. :)
there's only 3 squares in either direction and I had 4 into my calculation.
SuperTank Guest
-
SuperTank #3
Re: Getting a vertex point
I will continue update the the link. So if anyone want's to follow the progress of my little game. Go ahead. :)
SuperTank Guest



Reply With Quote

