Hey, hello guys, I am trying to draw a simple 3D object generated by Google SketchUp 8 Pro onto my WebGL app, the model is a simple cylinder.
Well, drawing the model using these texture coordinates gives me a totally weird look, and I can only get to see the texture properly when I am very close (not really me, the cam) to the model, as if the texture has been insanely reduced in it's size and repeated infinitelly across the model's faces. (yeah, I am using GL_REPEAT on that texture wrap thing)
What I noticed is that if I get all these coordinates and divide them by 10 or 100 I get a much "normal" look, but still not in the 0.0 to 1.0 range.
Here's my json file: http://pastebin.com/Aa4wvGvv
Here are my GLSL Shaders: http://pastebin.com/DR4K37T9
And here is the .X file exported by SketchUp: http://pastebin.com/hmYAJZWE
I've also tried to draw this model using XNA, but still not working. Using this HLSL shaders: http://pastebin.com/RBgVFq08
I tried exporting the same model to different formats, collada, fbx, and x. All those yields the same thing.
For you to understand better what is going on see this screen shot: http://img97.imageshack.us/i/printwgl.png/
The cylinder on the right is the model I am refering to, the cubes, the floor and the skybox are models that I did myself "by hand". The cylinder is using the same texture as the other lower 2 boxes.