m3d pipeline

BlitzMax Forums/BlitzMax Programming/m3d pipeline

Peter, if you are interested I've published my sandbox stuff, checkout from here:


Thank you skidracer, it's just what I need to get started.
Assimmp compiles right away, and my little test below seems to work.
I'll post again if I manage to get some minib3d interaction going.

Import axe3d.assimp

Extern
	Function aiImportFile:Byte Ptr( pFile:Byte Ptr,pFlags:Int)
	Function aiReleaseImport(pScene:Byte Ptr)
End Extern



Const filename:String = "C:\mywavefrontthingy.obj"


Local cStr:Byte Ptr = filename.toCString()

Local scene:Byte Ptr = 	aiImportFile(cStr,0)

MemFree cStr


If scene = Null Then
	DebugLog "nothing imported"
Else
	DebugLog "Hey! this might work"
EndIf

DebugLog "Releasing"

aiReleaseImport(scene)

DebugLog "Done"