Disney Open Sources Ptex

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Disney Open Sources Ptex

Post by masterfalcon »

Thought this was an interesting announcement. What does everyone think about it? Could it be useful with Ogre?

http://www.blendernation.com/disneys-pt ... en-source/
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Disney Open Sources Ptex

Post by jacmoe »

Wow - really sounds great!
No UVs - aside from rigging, UV mapping is by far the hardest skill to learn.
Just give it a texture per polygon - awesome. :)
Wonder how hard it would be to use this in Ogre.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: Disney Open Sources Ptex

Post by masterfalcon »

That's what I was wondering too. Their site says
The Ptex API provides cached file I/O and high-quality filtering - everything that is needed to easily add Ptex support to a production-quality renderer or texture authoring application.
. I know of a renderer ;)

Plus, I got it to compile on OS X right out of the box. I'll actually look at the API tonight.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Re: Disney Open Sources Ptex

Post by Kojack »

Hmm, interesting. This looks pretty similar to a technique I thought up a while ago for light mapping. It had per face texturing with no uv unwrapping and automatic atlas generation with different texel resolutions. I didn't work on it though because I needed the shader model 4 primitive id variable and a geometry shader, and Ogre didn't support them at the time. Plus render monkey still doesn't support geometry shaders, which makes experimenting painful.
Although Ptex's "seamless anisotropic filtering of multi-resolution textures across surfaces of arbitrary topology" is way more advanced than I was going to do. :)


Looking through the api docs, this is really intended for software rendering. It seems you need to call Ptex::getPixel() for every pixel of every face you want to render. Looks pretty easy to add to a software raytracer or scanline renderer, but not to something like ogre.
But I could be wrong (the docs are pretty limited).
Post Reply