Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    External Texture Files
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<bsharpe>
Posted
Hello people/support. Smile

I'm currently using the SDK to export a mesh which includes
texture and bumpmap data to .MTS and .MTX files.
( It is an exporter plugin for a program, so all this has to happen in C++ via the SDK. )

Currently I 'bake' the texture data directly into the Material by..
1) Making an IMTS_Texture
2) Allocating it some memory with tex->Allocate(...)
3) copying the image directly into its rasterizer bucket.
4) Then setting the texture to the material via SetDiffuseTexture method.

But for product-spec reasons, we cannot have the textures 'baked' into the model this way.
So what I would like to do is have the texture and bumpmap info stored as external files that are loaded automatically.
( via the .MTX)
I have been looking into ImageStreams but I just can't get them to work. (at my wits end with ImageStreams)
I also can't find any examples or documentation on how to do this.

Am I on the right track looking into ImageStreams? Or do I have to insert text directly into the .MTX file?
What I would really like is an example of some sort that I could follow as the SDK is pretty cryptic by itself. (no offence intended Smile )

Thanks in advance for any help.
Brian.
 
Reply With QuoteEdit or Delete MessageReport This Post
<Niko>
Posted
you're right, you should use MTS_ImageStream.
there is an example in the sampleApp, in file MTS_SampleRoutines.cpp, function SDK_JPEGAttach.

it does a little nit more than what you want, but it should give you an idea how to initialize the animator.
 
Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    External Texture Files