WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Getting texture and surface normal info given a point location (https://forum.worldviz.com/showthread.php?t=4736)

subbu 08-30-2013 06:31 AM

Getting texture and surface normal info given a point location
 
Is it possible to get texture and surface normal information given a point in the world coordinate system ?

Thanks,
Subbu

Kevin Chiu 09-05-2013 06:54 AM

1 Attachment(s)
Hi Subbu,

It is possible to get the texture and surface normal information by shooting an intersect line from a cursor's 2D location on the window into the world.

But there are also some restrictions for getting the texture information, this method only work when the model's texture is applied in Vizard or a VRML file.

Here is the manual page which describe the method for your information.
http://docs.worldviz.com/vizard/Pick...the_screen.htm

And a simple sample code which I altered from the code shown in the above page.

Best.
Kevin


All times are GMT -7. The time now is 05:16 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC