Page 1 of 1
mesh file not loading
Posted: Tue Jul 14, 2009 8:39 pm
by ChebbyShabby
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
Posted: Tue Jul 14, 2009 10:04 pm
by cas
ChebbyShabby wrote:whatt do i do?
First, you post here small snippet of code which shows the problem

Posted: Tue Jul 14, 2009 10:09 pm
by Digital Wargames
Posting the mesh may help too as not all converters convert properly.
Posted: Tue Jul 14, 2009 10:38 pm
by ChebbyShabby
sorry about that. here is the code:
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
i'll post the mesh file in a sec.
Re: mesh file not loading
Posted: Wed Jul 15, 2009 11:56 pm
by Kaeru Gaman
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?
.mesh is no standartized format.
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.
re
Posted: Thu Jul 16, 2009 7:37 am
by NSaneBMX

Camera dimensions are in pourcents...

Posted: Thu Jul 16, 2009 9:42 am
by djes
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