Ask a Question related to Macromedia Director 3D, Design and Development.
-
hondo3000 #1
colorpicker with uv coordinates
i thought it would be easy to figure out how a colorpicker for textures could
be done. but i run into a problem!
i made a cube and generated for each face a random texture using imaging
lingo. than mapped the textures on the cube. now i want to click on the cube
and get the color from the texture.
to do this i use modelsunderloc, this gives the uv coordinates of the polygon.
with this uv coordianates i thought it would be easy to project them on the
image and read the color with getpixel.
this works with all polygones that have a faceID of 2, faces with faceID 1
will give you strange values for the uv coordinates.
here is a online demo:
[url]http://kisd.de/~lutz/crap/color/colorpicker3D.zip[/url]
i tried this now for some hours and i am not sure how to fix this problem, so
please help me with this problem.
regards!
hondo3000 Guest
-
Convert user space coordinates to device coordinates
Hi, I need to convert the coordinates of a word (PDWord object) to device coordinates (the actual coordinates on the screen). Could someone please... -
Retain ColorPicker Colors
How do i make a colorPicker retain its previous colors when its dataProvider changes. Currently i have a bunch of colorPickers but i want it such... -
x and y coordinates
Is there a way to enter the x and y coordinates of an object to change its position on the page. I see the info pallette gives the x and y... -
hitTest coordinates
Hi there, I have a problem wit ha complex call to 'hitTest' to test a point collision. Which coordinates does the clip.hitTest(x,y) use? Are... -
Some help with coordinates please!
Hullo! Ok, so, I have this friend (clichè? no, no, I swear it's true!) that has a problem. I thought i could help her but I couldn't after all. ... -
JB #2
Re: colorpicker with uv coordinates
Here are some references
[url]http://steel.lcc.gatech.edu/~dmccolgin/texture2.html[/url]
[url]http://www.directorforum.de/showthread.php?p=78237[/url]
Unfortunately the tidy ready made utility script I fould before didn't
surface on the web, with enough clever picking you should be able to
turn up some better examples.
JB Guest
-
hondo3000 #3
Re: colorpicker with uv coordinates
thanks for the links, did not find them on my own...
but now i got the colorpicker to work, trick is to use the
texturecoordinatelist together with the points of the face to calculate the
point on the image of the texture. so a meshdeform modifier has to be used.
but if someone is interesting in looking at the code, here is the version that
works:
[url]http://kisd.de/~lutz/crap/color/sphere[/url]
and thanks again for the links!
hondo3000 Guest



Reply With Quote

