0
$\begingroup$

I designed a home interior and it includes wooden floor also. I used the UV/Image Editor to generate images to draw home interior in Open GLES but I failed to generate the image.

Another problem is that the Texture Coordinate array is not complete, that means many numbers of the coordinates are not available in the array it only shows comma separated blank spaces(using obj2opengl.pl to generate the array). I added an example image, I have to generate images like this. enter image description here

$\endgroup$
  • $\begingroup$ Did you enable the options for exporting UVs described here: blender.stackexchange.com/questions/121/… ? $\endgroup$ – stacker Jun 23 '14 at 13:47
  • $\begingroup$ yes have enabled all these options.my file having this problem. float Hall33TexCoords [] = { // f 2/1/1 4/2/1 3/3/1 0.983474, 0.671719, 0.122201, 0.240328, 0.020922, 0.302471, // f 1102/1101/276 1104/1102/276 1103/1103/276 0.983474, 0.671719, 0.122201, 0.240328, 0.020922, 0.302471, // f 1101/1104/276 1102/1101/276 1103/1103/276 0.882195, 0.733862, 0.983474, 0.671719, 0.020922, 0.302471, // f 1105//277 1106//277 1108//277 , , , , , , // f 1107//278 1108//278 1110//278 , , , , , , } $\endgroup$ – Sachin Vani Jun 23 '14 at 14:06
  • $\begingroup$ some coordinates are blank spaces with comma $\endgroup$ – Sachin Vani Jun 23 '14 at 14:07
  • $\begingroup$ Could you add a part of the .obj file? Just to see Blender export is correct, when the obj2opengl script omits the values it would be off-topic here. $\endgroup$ – stacker Jun 23 '14 at 14:56
  • $\begingroup$ yes, i can but which part i have to add .obj file is too big. $\endgroup$ – Sachin Vani Jun 24 '14 at 5:43
1
$\begingroup$

Blender exports the .obj file correctly I can't see a reason why empty values ",,,," are written in the converted file.

mtllib Musium.mtl
o Plane.275_Plane.229
v 138.827621 -14.357000 -71.175812
v 145.607269 -14.357000 -71.175812
v 138.827621 -14.357000 -123.266418
v 145.607269 -14.357000 -123.266418
vt 0.882195 0.266138
vt 0.983474 0.328281
vt 0.122201 0.759672
vt 0.020922 0.697529

It seems to be a bug/issue in the obj2opengl.pl converter possible it expects optional values which do not occur and therefore it writes empty values (between the commas).

I would recommend to write your own exporter, to get started you could use the code I posted here: How do we access Vert, Norm and UV data then print to a text file using Blender/Python?

$\endgroup$
  • $\begingroup$ Thanks, but how can get final image for complete designed object, like example image which added in question. I am beginner and really i don't know how to this. $\endgroup$ – Sachin Vani Jun 24 '14 at 7:00
  • $\begingroup$ This can be done by texture painting or cloning (e.g. images) into a single texture this should be another question (needs space to explain). $\endgroup$ – stacker Jun 24 '14 at 7:02
  • $\begingroup$ Hello sir, I solve the problem of blank spaces, Thanks for your support. $\endgroup$ – Sachin Vani Jun 24 '14 at 9:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.