Blender + Irrlicht
-
- Posts: 3
- Joined: Sat Jan 20, 2007 9:09 pm
Blender + Irrlicht
The problem we are facing now is how to import TEXTURED blender files into irrlicht. It seems whenever i do so as a .x file. (which I also have the textures in the correct folder) the object still turns out grey.
-
- Posts: 3
- Joined: Sat Jan 20, 2007 9:09 pm
-
- Posts: 5
- Joined: Mon Jan 22, 2007 8:12 pm
- Location: Ludwigshafen, Germany
- Contact:
I think the problem is how you apply the textures. With "load image" it won't work because all modeltypes expect UV textures (also "x"-files). Look at this: http://download.blender.org/documentati ... pping.html
-
- Posts: 3
- Joined: Sat Jan 20, 2007 9:09 pm
-
- Posts: 5
- Joined: Mon Jan 22, 2007 8:12 pm
- Location: Ludwigshafen, Germany
- Contact:
Hmm... yes, this would be much better and easier The only way I see at the moment is some python-scripting...
Maybe to make a 'snapshot' of each face after rendering and mapping this to an UV image.
Problems I see in this solution:
- The script must render a frame for EVERY face in the model. I.e. a cube -> 6 frames (or 12 if using triangles).
- The model (or the camera) has to be rotated after each frame to point direct on the face in orthogonal mode for next render (to avoid image distortion).
- No shadows, no lights.
- Resolution of the image for each face should be the same.
Any other ideas... ?
But my solution should work if someone can do the code for blender, or?
Greetings ct
Maybe to make a 'snapshot' of each face after rendering and mapping this to an UV image.
Problems I see in this solution:
- The script must render a frame for EVERY face in the model. I.e. a cube -> 6 frames (or 12 if using triangles).
- The model (or the camera) has to be rotated after each frame to point direct on the face in orthogonal mode for next render (to avoid image distortion).
- No shadows, no lights.
- Resolution of the image for each face should be the same.
Any other ideas... ?
But my solution should work if someone can do the code for blender, or?
Greetings ct
-
- Posts: 5
- Joined: Mon Jan 22, 2007 8:12 pm
- Location: Ludwigshafen, Germany
- Contact:
-
- Posts: 5
- Joined: Mon Jan 22, 2007 8:12 pm
- Location: Ludwigshafen, Germany
- Contact: