Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I don't mean to be unhelpful; but I have only ever done it through the modeling software, Maya, Max, Lightwave, etc.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted
I created the file in blender with the textures on it (that are just colours). I import it and I get a white mesh that isn't textured. How could I texture it from the information in the file?
Posted

I'm not sure, when you use 'color' materials in a 3D model, I believe that will only be noticable in that 3D Modeling Software's interface, you would need to use a bitmap texture of that color.

 

To save space you could make three small, 32x32, bitmaps of all the color you wish, when you export that to .X it should also output the texture (bmp) files in the same directory.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted (edited)

Oh, that seems to make sense. I'll try that.

 

One more question though, is that when I load the mesh will it load those textures, do I have to somehow get the path of the bitmaps from the .x file and load them in?

 

Edit:

 

btw, when I view it in the directx view it views to colour.

Edited by decrypt
Posted
That's interesting, if the .X viewer shows the colors, there must be something that I didn't impliment in my clsMesh code. But, the clsMesh that you are using will automatically load the associated textures if they are in the same directory as the .X file.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted
I'm sure there is a way, but I don't know how. I will keep my eye out and post back here if I find anything.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...