SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Extraneous Point From Samplerinfo.worldPoints
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 31-12-2007, 06:41 PM   #1
daviddoria
Registered User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Extraneous Point From Samplerinfo.worldPoints

Check out:

http://www.rpi.edu/~doriad/scene.JPG
http://www.rpi.edu/~doriad/points.jpg

I wrote a plugin (with the c++ API) to write out the samplerInfo stream to a file! Still some weird "glitches" though. I am getting out the file full of (X Y Z) coords like I want (from the samplerInfo.worldPoints). However, there are tons of extraneous points that I have to remove after they are exported, as you can see below (last two lines):

-0.386149 -0.000722992 0
-0.355757 -0.00137773 0
-0.327306 -0.00199836 0
-0.300385 2.78162e-309 0
-0.274712 1.28451e+255 0

These extreme outliers are very easy to remove after the export, but I get lots points very near the objects that also don't belong (see "points.jpg"). It was my understanding that the samplerInfo node samples the scene and gives back any surfaces (basically anything that would reflect a ray sent in that direction). So I should see only three sides of a the cube and the front "half" (maybe it is less than half) of the sphere. As you can see, the cube looks pretty good, but there sphere seems to be split into two "blobs", and there are a lot of random points all over. Do you know where these would be coming from? Maybe something with the lighting or shadows? From what I've seen, if I turn the lights off completely it just thinks there is nothing to render (because it cant "see" anything), so I guess that won't do it.

Please let me know if you have any tips to get rid of this stuff.

Thanks,

David
daviddoria is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.