UVtoSPACE

Shader discussion for beginners

UVtoSPACE

Postby temiroff on Mon Aug 25, 2008 3:35 am

Hello anybody knows about how convert UV space to World space of my object ?
temiroff
 
Posts: 9
Joined: Mon Apr 14, 2008 7:19 am

Re: UVtoSPACE

Postby bart on Thu Aug 28, 2008 9:54 am

Need a little more information.

Are you in a material shader when you do this?

Do you mean that you have arbitrary UVs for a particular texture space, and that you want to look up where that UV maps to an object, and then get the world space location for that point?

Or do you mean something more like a tangent space defined along the uv directions of a particular texture space?

What are you trying to do in general? For example, maybe we need to use different terminology and approach it a different way.
bart
Site Admin
 
Posts: 1659
Joined: Sat Dec 18, 2004 9:34 am
Location: Marina Del Rey, California

Re: UVtoSPACE

Postby temiroff on Wed Sep 10, 2008 2:24 am

i'm sorry for a long absent :) i have geometry shader and i need for example ask where is it my world's point of my object for my U 0.5 V 0.5
temiroff
 
Posts: 9
Joined: Mon Apr 14, 2008 7:19 am

Re: UVtoSPACE

Postby temiroff on Wed Sep 24, 2008 4:20 am

HELP? :)
temiroff
 
Posts: 9
Joined: Mon Apr 14, 2008 7:19 am

Re: UVtoSPACE

Postby bart on Wed Sep 24, 2008 8:13 am

Now, I'm confused. Did your geometry shader not assign the uvs to each vertex itself?

Where are you getting the data from? This might be easier done in a 3D application which has more of this kind of modeling information.
bart
Site Admin
 
Posts: 1659
Joined: Sat Dec 18, 2004 9:34 am
Location: Marina Del Rey, California

Re: UVtoSPACE

Postby sirpalee on Tue Nov 04, 2008 2:25 pm

I think I know, what you want to do with this. What kind of information do you have? If you know on which triangle has these UV coordinates, than you can easily calculate the world coordinates of this UV point (assuming you don't have overlapping areas in the UV map).

If you don't know it, you can go through all of the vertices, and find yourself what triangle has these points.
sirpalee
 
Posts: 25
Joined: Tue Mar 25, 2008 7:20 am
Location: Hungary, Budapest


Return to Getting Started

Who is online

Users browsing this forum: No registered users and 1 guest

cron