mesh file not loading
-
- Enthusiast
- Posts: 121
- Joined: Mon Jun 26, 2006 10:47 am
mesh file not loading
i'm using the latest version of pb and (i think) i'm using the latest lwo2mesh converter (i use lightwave). however, whenever i load a home-made mesh in PB, it tells me that the mesh can't be initialised. whatt do i do?
Re: mesh file not loading
First, you post here small snippet of code which shows the problemChebbyShabby wrote:whatt do i do?

-
- Enthusiast
- Posts: 203
- Joined: Sat May 23, 2009 4:39 am
-
- Enthusiast
- Posts: 121
- Joined: Mon Jun 26, 2006 10:47 am
sorry about that. here is the code:
i'll post the mesh file in a sec.
Code: Select all
InitEngine3D()
InitSprite()
Add3DArchive("Data" , #PB_3DArchive_FileSystem)
If OpenScreen(640, 480, 32, "")
InitKeyboard()
LoadMesh (0, "TEST.mesh")
CreateCamera(0, 0, 0, 640, 480)
CreateEntity(0, MeshID(0), 0)
Repeat
ClearScreen(RGB(0, 0, 0))
ExamineKeyboard()
;*****
RenderWorld()
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape) Or Quit = 1
EndIf
End
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: mesh file not loading
.mesh is no standartized format.ChebbyShabby wrote:i'm using the latest version of pb and (i think) i'm using the latest lwo2mesh converter (i use lightwave). however, whenever i load a home-made mesh in PB, it tells me that the mesh can't be initialised. whatt do i do?
even with different versions of OGRE there were different formats of .mesh
e.g. for the 1.0.6 in PB 4.0 - 4.2, you needed the older mesh-importer from the OGRE homepage...
the new version is 1.6.0
have a look on the OGRE homepage (don't have the sublink at hand now)
if you find the OGRE commandline tool for 1.6.0, and if it's capable of importing .lwo, I guess is should.
oh... and have a nice day.
I've done several examples showing how to load meshes, and so on. I'm using lightwave too, with the nice lwo2ogre plugin. See there for the ogre post about the plugin : https://www.ogre3d.org/forums/viewtopic ... &start=150
The files :
plugin : http://djes.free.fr/lw2ogre/lw2ogre1.0.1.rar
src : http://djes.free.fr/lw2ogre/lw2ogre_src.zip
manual (already included in the other files) : http://djes.free.fr/lw2ogre/manual.pdf
XMLConverter (needed for the plugin to automagically convert to mesh format) : http://djes.free.fr/lw2ogre/OgreCommand ... -1.0.6.zip
The files :
plugin : http://djes.free.fr/lw2ogre/lw2ogre1.0.1.rar
src : http://djes.free.fr/lw2ogre/lw2ogre_src.zip
manual (already included in the other files) : http://djes.free.fr/lw2ogre/manual.pdf
XMLConverter (needed for the plugin to automagically convert to mesh format) : http://djes.free.fr/lw2ogre/OgreCommand ... -1.0.6.zip