Forums

You are not logged in.

#1 2011-09-12 09:15:21

baopao
Member
From: milano
Registered: 2007-01-08
Posts: 249
Website

ptex from mudbox 2012

From version 9.0.112 3delight support ptex textures file (only with quad mesh), I have tried paint the texture with the ptex workflow in  Mudbox export and render in maya 2012 with 3delight but with bigs wrongs, the index faceid have a right result only in the Viewport 2.0 preview. I used a simple shader:

Code:

surface ptex(
string ptex="";
)
{

Ci=ptexture(ptex, 0, 0);

}

...but I don't have idea how I can use the ptex with 3delight4maya and the manual is not the great help
for me (....also the others messages on this forum about ptex).

Someone have test it? Mudbox>ptex>3delight4maya.

thanks for the answers.

a.

Offline

 

#2 2011-09-20 06:08:33

ashretallack
Member
Registered: 2010-09-03
Posts: 38

Re: ptex from mudbox 2012

try this shader :

Code:

surface ar_ptex(string mapname="";float faceid = 0;)
{

    //correct for maya export uv order
    color ptex = ptexture(mapname,0,faceid-1, u, 1-v);

    Ci = ptex;
}

Oh and make sure you've attached the 'Output Faceid' attribute to the geometry, Else the geo will not export an id for each face and won't feed the 'faceid' parameter on the shader

Last edited by ashretallack (2011-09-20 06:11:25)

Offline

 

#3 2011-09-20 14:00:25

baopao
Member
From: milano
Registered: 2007-01-08
Posts: 249
Website

Re: ptex from mudbox 2012

Thank you ashretallack, with your shader is better than before but some patch still "rotate".
I used 3dl 9.0.130 for this test:

http://img718.imageshack.us/img718/5649/ptex1.jpg

Uploaded with ImageShack.us

a.

Offline

 

#4 2011-09-21 06:37:53

ashretallack
Member
Registered: 2010-09-03
Posts: 38

Re: ptex from mudbox 2012

hmmm, I will have to look in to that.

The test I've done was from 3d-coat. though I have just tried from Mari and it came out like yours with some faces rotated.

- Ash

Offline

 

#5 2011-09-21 10:53:22

baopao
Member
From: milano
Registered: 2007-01-08
Posts: 249
Website

Re: ptex from mudbox 2012

thanks for the info.

do you know if exist something of official info for understanding how write a right shader that works with 3delight,
the manual report only this one:

type ptexture ( string texturename; uniform float channel; float faceindex; ... )

type ptexture ( string texturename; uniform float channel; float faceindex; float s1, t1, s2, t2, s3, t3, s4, t4; ... )

but nothing about how set the parameters.


a.

Offline

 

Board footer

PunBB is © Copyright 2002–2005 Rickard Andersson

You are here: Resources » Forums
Follow us on Twitter
© 2006-2011 dna research. All Rights Reserved.
Trademarks & Copyrights Notices