.obj file internals
Posted: Wed Oct 03, 2012 3:34 pm
I have been working on a Revit addin to write an obj file specifically for octane render.
I am writing the .obj file out in mm and setting the octane preferences accordingly on import.
I found that i had to scale the UV coordinates by .001 in order to get sensible texture scaling in octane.
I.e. the UV coordinates in the .obj file must be hard coded to meters, not millermeters.
Does this mean that your preferences setting that converts from mm to m is not actually applying the right multiplier to texture coordinates?
I have seen this behaviour in all versions of octane that i have tried, currently i am using 3.1 instancing preview beta.
I have also encountered an issue with scalling textures on curve (cylindrical) walls. All of the textures get horribly stretched in the x (horizontal direction),
but are fine vertically. I do not find anything unexpected when examining the uv coordinates of the verticex triangles in in the free MeshLab tool.
Do you think this could be a problem with octane, or is it that my triangulation of the cylinder in Revit is not fine enough.
I have not yet implemented vertex normals, do you think this would solve the problem?
Your thoughts would be welcome.
thx
mark
p.s your program is fantastic and will have a hugh impact on our business.
I am writing the .obj file out in mm and setting the octane preferences accordingly on import.
I found that i had to scale the UV coordinates by .001 in order to get sensible texture scaling in octane.
I.e. the UV coordinates in the .obj file must be hard coded to meters, not millermeters.
Does this mean that your preferences setting that converts from mm to m is not actually applying the right multiplier to texture coordinates?
I have seen this behaviour in all versions of octane that i have tried, currently i am using 3.1 instancing preview beta.
I have also encountered an issue with scalling textures on curve (cylindrical) walls. All of the textures get horribly stretched in the x (horizontal direction),
but are fine vertically. I do not find anything unexpected when examining the uv coordinates of the verticex triangles in in the free MeshLab tool.
Do you think this could be a problem with octane, or is it that my triangulation of the cylinder in Revit is not fine enough.
I have not yet implemented vertex normals, do you think this would solve the problem?
Your thoughts would be welcome.
thx
mark
p.s your program is fantastic and will have a hugh impact on our business.