Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Me, you and Director MX 2004

Me, you and Director MX 2004

2004-02-12       - By Thomas Higgins

 Back
Reply:     1     2     3  

> No mention of the new ray casting syntax in the help. Can you clue us
> in about how to pass in the interesting model list and clipping value
> to modelsUnderRay ?

I'm not sure but I seem to recall that this was implemented a bit late for
the IMD team and that this should be covered in a tech note or elsewhere.
Sorry my memory is fuzzy on those particulars, I'll look into this and make
sure what I'm about to write is noted somewhere other than buried in a
Dir3d-l archive. First, your old syntax will behave as it always has, so no
worries there. But if you want to go with the newer snazzy way of doing
things:

-- build a list of models among which to cast
tModels = [ modelA, modelB, ... ]

-- build an argument list to pass to the modelsUnderRay call
tArgList = [#maxNumberOfModels: 10, \
           #levelOfDetail: #simple, \
           #modelList: tModels, \
           #maxDistance: 50]

-- cast the ray
tResult = 3dMember.modelsUnderRay(location,direction,tArgList)

All entries in the argument list are optional and can be provided or not. If
you specify a list of models then the list should be composed of
_model_object_references_, do not use just the string names! If a model's
bounding sphere is within the range maxDistance from your raycasting source
point then the model will be checked against the raycast, if its bounding
sphere is greater than maxDistance away it will not.

Enjoy.

Cheers,
Tom Higgins
Product Specialist - Director Team
Macromedia

Announcing Director MX 2004, de lekkerste!
http://www.macromedia.com/software/director

...
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Dir3d-l mailing list
Dir3d-l@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l