Page 1 of 1

HDRI

Posted: Sat Dec 01, 2007 4:32 am
by BWETIK
Hi, I trying indigo, and trying use hdri, but it making an error:

SceneLoaderExcep: TinyXmlWrapper: could not find element "gamma" in element "rgb" (around line 35)

What I doing wrong?? I need put the hdri file in some folder, but i dont remember in which one...in to testscenes??

And what about using Indigo materials (from nkdata) in maya?? In blender it was via names of mat....
or is it possible assign it in xml file??

Thanks a lot. Casper. :roll:

Posted: Sat Dec 01, 2007 4:50 am
by dougal2
Hi casper,

Are you using the current release of MtI?
You've probably found a bug with the HDRI export, I don't think that part has been thoroughly tested. I will have a look later and post an update. (there's another bug that needs fixing, so I'll do them both - unless someone else beats me to it).

For now, if you open up the generated XML file and add

Code: Select all

<gamma>2.2</gamma>
into the <rgb> part of the code where the HDRI image is given (around line 35 in your case), it should get you going.

As for .nk data, you need to assign a phong shader to an object in maya, go to hypershade, select the shader, check "nkdata" on the MtI GUI and click "add". This will add a custom nkdata attribute to the shader under "Extra Attributes". there you can select the .nk file to use.

Hope that helps. Sorry for the bugs.

Thanks

Posted: Sat Dec 01, 2007 5:16 am
by BWETIK
Nk data working, good (not materials under..cola bottle glass etc..??)
But im not sure what you mean, where put this gamma?? it still not working...or I doing it wrong...
Thanks a lot!!


<env_map>
<lat_long>
<path>C:/Breta_prace/HDRImaps/hdri_new/ennis.hdr</path>
<width>512</width>
<gain>0.9</gain>
</lat_long>
</env_map>

nk

Posted: Sat Dec 01, 2007 5:24 am
by BWETIK
And why all nk data looking the same?? transparency with blue in the midle...??? :shock:

Posted: Sat Dec 01, 2007 6:53 am
by CTZn
Hello Casper,

only opaque nkdata do work with Indigo, maybe you tried a transparent one wich will not work; it's not related with MtI.

As for gamma error I can't help you cause I don't use hdri... maybe try adding that gamma line under <gain> (or maybe any place inside <lat_long>).

If that doesn't work maybe attach the xml/igs to your post, or post it from beginning to materials definition. If you have no advanced text editor, last resort is to count every line to n°35 and see where you find yourself.
Hi, I trying indigo, and trying use hdri, but it making an error:

Code: Select all

SceneLoaderExcep: TinyXmlWrapper: could not find element "gamma" in element "rgb" (around line 35)
Nothing tells clearly that it is related with HDRI.

Cheers

Posted: Sat Dec 01, 2007 7:31 am
by dougal2
I've made a quick video about using nk data with MtI

http://www.ftlfm.com/gallery/v/MtI/vidt ... a.flv.html
(edit: updated URL)

it got a little bit corrupted, but I hope you can still follow it.

Re: Thanks

Posted: Sat Dec 01, 2007 8:06 am
by dougal2
I now know the problem.

Code: Select all

<env_map>
	<lat_long>
	<path>C:/Breta_prace/HDRImaps/hdri_new/ennis.hdr</path>
	<width>512</width>
	<gain>0.9</gain>
	</lat_long>
</env_map>
should read

Code: Select all

<env_map>
	<latlong>
	<path>C:/Breta_prace/HDRImaps/hdri_new/ennis.hdr</path>
	<gain>0.9</gain>
	</latlong>
</env_map>
(also, <width> isn't necessary in <latlong> maps. did you add that manually? it's not in the current version on MtI :? )

I'm working on MtI now and will provide an updated version soon.

Thanks!!

Posted: Sun Dec 02, 2007 1:45 am
by BWETIK
Ye, env_map now working :D ...or working just exr file not hdr, but its fine... Thanks!

But with nk data its falling, using just Al, Cu, Au...
but, or maybe too much polys?? just 4 triangulated spheres from maya...
xml is generated quickly... dont know...

Posted: Mon Dec 03, 2007 4:40 am
by Kram1032
wait...
since when, hdr is supposed to work?
The only HDR formats, Indigo can use, are exr and float, AFAIK