Jump to content


Notice about Feature Requests & Bug Reports

The bug reporting and feature request forums (except for the Urgent Help section) are going away soon! Please use Mantis to report any bugs and feature requests. the link to Mantis is:
3d-coat.com/mantis/

Read more about it HERE.

Photo

Vector Displacement


  • Please log in to reply
32 replies to this topic

#21 psyborgue

psyborgue

    Novice

  • Member
  • PipPip
  • 251 posts
  • Gender:Male
  • Location:Paris, France

Posted 27 March 2009 - 09:45 PM

attached is houdini file (zipped)

Attached Files


My Portfolio
Laptop: Macbook Pro 17" 1920x1200, Core 2 duo 2.66 ghz, 4GB Corsair low latency ram, 320GB 7200 RPM hdd, GeForce 8600M 256MB
Desktop: Dual G5 Tower, 2x2.0ghz G5 processors, 2gb ram, two 320GB SATA hdds (mirrored raid), GeForce 6800 Ultra DDL 256MB

#22 haikalle

haikalle

    Journeymen

  • Contributor
  • PipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Finland

Posted 28 March 2009 - 08:11 AM

Thanks so much psyborgue. your changes makes a perfect sense. I'm right now seeing my parents but on sunday when I'm going back I will play with this more.

#23 haikalle

haikalle

    Journeymen

  • Contributor
  • PipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Finland

Posted 30 March 2009 - 01:18 PM

This is funny. I'm still having some problems with this one. I downloaded your modifyed houdini file and then replaced obj file and exr file with my own files and it dosen't give the results I want. Do you still have your cube obj file and exr that I can borrow to see if that works.

When you doing your vector displacement map. Are you using tangent space and black to zero, not normalized options to get best results?

#24 psyborgue

psyborgue

    Novice

  • Member
  • PipPip
  • 251 posts
  • Gender:Male
  • Location:Paris, France

Posted 30 March 2009 - 11:10 PM

This is funny. I'm still having some problems with this one. I downloaded your modifyed houdini file and then replaced obj file and exr file with my own files and it dosen't give the results I want. Do you still have your cube obj file and exr that I can borrow to see if that works.

When you doing your vector displacement map. Are you using tangent space and black to zero, not normalized options to get best results?

Here is the 3d file:
http://www.michaelcr...testdisp.3b.zip

the cube is exported using low poly original positions (basically the original cube), and the exr is exported using black (not normalized).
My Portfolio
Laptop: Macbook Pro 17" 1920x1200, Core 2 duo 2.66 ghz, 4GB Corsair low latency ram, 320GB 7200 RPM hdd, GeForce 8600M 256MB
Desktop: Dual G5 Tower, 2x2.0ghz G5 processors, 2gb ram, two 320GB SATA hdds (mirrored raid), GeForce 6800 Ultra DDL 256MB

#25 psyborgue

psyborgue

    Novice

  • Member
  • PipPip
  • 251 posts
  • Gender:Male
  • Location:Paris, France

Posted 01 April 2009 - 12:04 PM

Just fyi, my site is down at the moment. it should be up in an hour or so. If you want the 3b file sooner, shoot me an email at psyborgue@mac.com and i'll email it back to ya.
My Portfolio
Laptop: Macbook Pro 17" 1920x1200, Core 2 duo 2.66 ghz, 4GB Corsair low latency ram, 320GB 7200 RPM hdd, GeForce 8600M 256MB
Desktop: Dual G5 Tower, 2x2.0ghz G5 processors, 2gb ram, two 320GB SATA hdds (mirrored raid), GeForce 6800 Ultra DDL 256MB

#26 haikalle

haikalle

    Journeymen

  • Contributor
  • PipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Finland

Posted 01 April 2009 - 11:41 PM

I already got the file. thanks! Now it's working. There is so many options that you can go wrong with. It took like 4 hours until I noticed that I have scaled my model and that's why displacement map looked all wrong.

#27 buckers

buckers

    Newbie

  • New User
  • 1 posts

Posted 08 April 2009 - 10:12 PM

Hello

I'm not so au fait with all this vector map v normal map stuff (kudos to you), but as you're kinda new to Houdini I wonder if you've seen the GLSL tangent / object space normal map materials?

There is an example file from the help card here http://www.sidefx.co...angentnormalmap and here http://www.sidefx.co.../ogl2_normalmap

There also exists another example file with a vopnet which is hidden away on the Exchange, here http://www.sidefx.co...p;versionid=562
The tangetspace example uses an inline vop to include a vop function which isn't exposed as a vop node, so you might have missed it if you weren't looking outside vop land. Just though you might be interested to know about it if you didn't already... if you even find it useful, that is.

Also, if you ever encounter any extreme displacements sometimes applying the vm_redice property to your material or object can help mitigate issues - http://www.sidefx.co...props/mantra9_1

#28 haikalle

haikalle

    Journeymen

  • Contributor
  • PipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Finland

Posted 13 April 2009 - 08:44 AM

Thanks so much for this information. It's very helpful. I will look into this.

#29 Morpheus

Morpheus

    Neophyte

  • Member
  • Pip
  • 38 posts

Posted 19 April 2009 - 01:07 PM

Hi folks

This is an interesting thread. I'm a houdini user myself!

What would be the workflow in 3d coat's voxel sculpt mode with regards to exporting the vector displacement to be used in Houdini?

regards

Erik

#30 niko3d

niko3d

    Newbie

  • New User
  • 1 posts

Posted 20 April 2009 - 01:52 PM

Hey people

Ive been doing some research into vector displacement with houdini, and was messing with the shader you guys have been working on. Looks like it has some problems with negative displacements. Theres a more detailed explanation here as well as a screenshot of the problem.

Anyone know why this would be happening? It be great to solve this as I have a vector displacement baker in works using Houdini and they would go great with each other. I cant quite see where the problems lies, the shader looks correct to me.

http://www.sidefx.co...m...pic&t=15077

Cheers
Nick

#31 psyborgue

psyborgue

    Novice

  • Member
  • PipPip
  • 251 posts
  • Gender:Male
  • Location:Paris, France

Posted 10 May 2009 - 11:42 PM

Try opening up the exr in photoshop and adjusting the exposure (add a stop or two) to make sure negative values are actually there (they're normally displayed as black since the're stored as "blacker than black"). If you saved with black (not normalized), they should be there. If not, it's a bug with 3d coat not saving negative floating point numbers in exrs and Andrew would have to address that. Alternatively, you could save as a float point tiff, open in PS and save as EXR (not sure if houdini supports float point tiffs). Again, you'll have to adjust exposure to make sure the negative values are actually being saved.

The EXR file format itself supports full dynamic range (signed float point numbers with no restrictions) so it's perfect for displacements.
My Portfolio
Laptop: Macbook Pro 17" 1920x1200, Core 2 duo 2.66 ghz, 4GB Corsair low latency ram, 320GB 7200 RPM hdd, GeForce 8600M 256MB
Desktop: Dual G5 Tower, 2x2.0ghz G5 processors, 2gb ram, two 320GB SATA hdds (mirrored raid), GeForce 6800 Ultra DDL 256MB

#32 pbowmar

pbowmar

    Novice

  • Member
  • PipPip
  • 138 posts
  • Gender:Male
  • Location:Vancouver, BC, Canada

Posted 27 October 2009 - 08:22 AM

You can also use Houdini's viewer "Mplay" which has an Adapt Range button and easy single channel viewing, see image for quick help.

Houdini should support floating point TIFF just fine, though to be honest I usually use EXR.

Last tidbit before I sleep: When rendering in Houdini, convert your images to RAT format which is Houdini's native texture format. Houdini can use almost anything for a texture, but RAT will be fastest with least RAM used. You can use Mplay to save out an image to RAT, or the standalone tool "icp" (shell on Linux, terminal on OSX, Houdini Command thingy on Windows, sorry I don't use Windows much I forget the menu entry name).

FYI this viewer is available from the free version of Houdini (Apprentice) for Windows OSX and Linux in case people want a really nice image (and flipbook) viewer.

Cheers,

Peter B

Attached Thumbnails

  • MplayAdaptShowChannels.jpg


#33 haikalle

haikalle

    Journeymen

  • Contributor
  • PipPipPipPip
  • 1,358 posts
  • Gender:Male
  • Location:Finland

Posted 27 October 2009 - 12:02 PM

This topic was on the top of the forum, so I decided to make one more try to fix this thing. I don't know what I did but now it seems that both positive and negative depth works.
See the picture. Psyborgue, if you are out there, maybe you can check the houdini file and see if there something to fix. I added Fit Range node just after texture node and that seems
to work nicely. I will make a small tutorial soon how to make this work in 3d-coat and houdini.
disp.png

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users