DigitalCritters Level: Sr. Member
 Registered: 05-22-2001 Posts: 93 IP: Logged
|
Re: programmer wanted for cause.
Big thanks to Mike Bunnell for helping me out. I was ripping out 16bit grayscales with the flag '-vsSh'. He had me drop the 'h', and the 8bit red/green displacement images arrive like so:
NormalMapper.exe -vsS lo.obj hi.obj 512 512 1 lo_displace_hi.tif
--
Unfortunately, Maya now crashes when I plug these images into Oliver's mentalray shader. So close, but yet so far... I will explain my simple test procedure as follows (those of you uninterested in using mentalray/Maya to render, please disregard):
-I created a simple lo-poly sphere, averaged normals, spherical uv-mapped, scaled down within 0 to 1 threshold...clean. Saved as lo.obj (exported normals in the process)
-I then smoothed that same spehere a couple times and pulled some vertices in/out to create my hi.obj
-ran NormalMapper as described above, with both .obj's in the ATI folder, and it output two beautiful files as planned. (8bit red/green and purplish normal map).
-opened Oliver's (unaltered) Maya file, 'rayDisplaceMentalShaders.ma'. I render with mentalray and, it works! The torso renders without error.
-import lo.obj sphere; I light link it verbatim as the torso model is and link it to the same selection set as the torso (just in case). I applied the entire shading group 'lambertDisplaceAndNormals' to the lo-poly sphere. Everything is hooked up identically in hypergraph/hypershade.
-I delete the torso geometry, and then hookup my ATI normal and displacement .tifs (Maya accepts them lovingly, thanks Mike!).
-Everything is in place, ready to render (save file). I select 'render using mentalray'....and *crash*. Maya dies, every time, even after reboot.
Questions:
1. What did I do wrong? 
2. Do I need to use Oliver's baking method of extracting the displacement/normal maps (in lieu of the ATI/MikeB's tool) if I am to use Oliver's shading network? I sure do like the apparent simplicity of the ATI route.
Thanks for your help (hopefully this will also assist everyone out there using Maya for rendering as well).
http://www.3dgamers.com/screenshots/games/doom3/
____________________________
bill jacoby
|