Problem with Render to Texture

Hansel

26-05-2006 16:48:55

Hello peolpe. I asked about "render to texture" and how I can export it to use in Ogre in the main forums but jacmoe has redirected me here.

I'll quote myself :mrgreen:

Hi :D

I'm triying to use render to texture with Ogre to add a "complete map" to my mesh. I'm doing it with 3dsMax 8.

I follow the next steps:


- First I build a simple scene (a cube over a plane) with a simple texture on it and then I add a ligth.





- Second I go to Rendering-> Render To Texture and I select in Render Settings "3dmax.scanline.radiosity.high", in Mapping Coordinates I turn the obtect channel to "1" and then I add a Complete Map Size = 2048. I push render button.







- After pushing the button this is the result in the viewport:





- And an Automatic Flaten UV is added to the scene.




But then I have the problem, because I don't know how to export it in Ogre. I try to add an UVW map with Vertex Color Channel turning on to let the texture coordinates as they was, I try to aply a new material in the scene using the complete_map.tga, I try to change the channels values and finally I try loading material directly in ogre with mesh->setMaterial, but unfortunatelly anything works :(


Anyone can help me? Thanks :D





pd.- My english is very poor, sorry ;)

pd2.- I don't use Ofusion.

pd3.- I can't find any tutorial to help me, if it exist please just link it :D

Hansel

26-05-2006 17:46:56

Ahm... perhaps http://ofusion.inocentric.com/tutorial4.html ? :D