WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-30-2013, 06:31 AM
subbu subbu is offline
Join Date: Aug 2013
Posts: 4
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 ?

Reply With Quote
Old 09-05-2013, 06:54 AM
Kevin Chiu Kevin Chiu is offline
WorldViz Team Member
Join Date: Feb 2012
Posts: 26
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.

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

Attached Files
File Type: zip (505 Bytes, 702 views)
Reply With Quote

normal, texture coordinates

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump

All times are GMT -7. The time now is 12:56 PM.

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