Texture local coordinates

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: jromang, tomb, zcott, coordinators

Texture local coordinates

Postby jeanphi » Mon Apr 04, 2011 12:03 pm

Hi,

As per this issue http://www.luxrender.net/mantis/view.php?id=821 I've added support for more coordinate types. Tell me if you need more, I think I can easily add a few more.

Jeanphi
jeanphi
Developer
 
Posts: 6575
Joined: Mon Jan 14, 2008 7:21 am

Re: Texture local coordinates

Postby SATtva » Mon Apr 04, 2011 12:08 pm

Great! Thank you jeanphi. Will test this as soon as possible.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5489
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Texture local coordinates

Postby Lord Crc » Mon Apr 04, 2011 1:23 pm

jeanphi wrote:Tell me if you need more, I think I can easily add a few more.


Great work! One type I had in mind was object normals (local/global) projected onto two vectors. It could be used to mimic dust fallen onto an object via a mix texture fex.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4452
Joined: Sat Nov 17, 2007 2:10 pm

Re: Texture local coordinates

Postby binarycortex » Mon Apr 04, 2011 1:53 pm

Lord Crc wrote:
jeanphi wrote:Tell me if you need more, I think I can easily add a few more.


Great work! One type I had in mind was object normals (local/global) projected onto two vectors. It could be used to mimic dust fallen onto an object via a mix texture fex.

Could that also do snow?
Competition Coordinator.
Current Competition: Math is Beautiful / Abstract Wallpaper

Member of the first official jeanphi-fan club
User avatar
binarycortex
Developer
 
Posts: 1501
Joined: Fri Feb 22, 2008 10:44 pm

Re: Texture local coordinates

Postby jeanphi » Mon Apr 04, 2011 2:03 pm

Hi,

Yes, also snow :)

Jeanphi
jeanphi
Developer
 
Posts: 6575
Joined: Mon Jan 14, 2008 7:21 am

Re: Texture local coordinates

Postby neo2068 » Mon Apr 04, 2011 2:35 pm

Hi!
I didn't see a difference between local and global texture coordinates in my test scene. Do I have to change another parameter to get the same texture mapping as in blender internal?
Global coordinates:
testscene_global.png

Local coordinates:
testscene_local.png

Blender Internal:
testscene_blender.png

Lux Testscene files:
testscene.zip
(2.91 KiB) Downloaded 4 times
i7 860, 16 GB RAM, NVIDIA Geforce GTX 560 + GTX 460, Windows 7 64bit, Blender 2.66
neo2068
Developer
 
Posts: 485
Joined: Sun May 03, 2009 2:11 am
Location: Germany

Re: Texture local coordinates

Postby jeanphi » Mon Apr 04, 2011 2:38 pm

Hi,

Normal coordinates are now available too.

Jeanphi
jeanphi
Developer
 
Posts: 6575
Joined: Mon Jan 14, 2008 7:21 am

Re: Texture local coordinates

Postby neo2068 » Wed Apr 06, 2011 2:51 am

Did someone get the local texture coordinates working? I still have had no success :( . Where is my mistake or are local coordinates supposed to work like in my testrender? In the latter case I see no benefit of it.
i7 860, 16 GB RAM, NVIDIA Geforce GTX 560 + GTX 460, Windows 7 64bit, Blender 2.66
neo2068
Developer
 
Posts: 485
Joined: Sun May 03, 2009 2:11 am
Location: Germany

Re: Texture local coordinates

Postby jensverwiebe » Sun Apr 10, 2011 6:06 am

I reproduce: UV is working nicely, but also didn´t got "local" to work.
After checking exports i conclude it must be something in core.

Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: Texture local coordinates

Postby jeanphi » Sun Apr 10, 2011 1:14 pm

Hi,

It's some strange stuff, I'm trying to track it, it might be some obscure virtual member dereferencing issue.

Jeanphi
jeanphi
Developer
 
Posts: 6575
Joined: Mon Jan 14, 2008 7:21 am

Next

Return to Architecture & Design

Who is online

Users browsing this forum: No registered users and 0 guests