mesh file not loading

Advanced game related topics
ChebbyShabby
Enthusiast
Enthusiast
Posts: 121
Joined: Mon Jun 26, 2006 10:47 am

mesh file not loading

Post 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?
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: mesh file not loading

Post by cas »

ChebbyShabby wrote:whatt do i do?
First, you post here small snippet of code which shows the problem 8)
Digital Wargames
Enthusiast
Enthusiast
Posts: 203
Joined: Sat May 23, 2009 4:39 am

Post by Digital Wargames »

Posting the mesh may help too as not all converters convert properly.
Don't discourage beginners. Encourage beginners.
ChebbyShabby
Enthusiast
Enthusiast
Posts: 121
Joined: Mon Jun 26, 2006 10:47 am

Post 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.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: mesh file not loading

Post 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.
oh... and have a nice day.
NSaneBMX
New User
New User
Posts: 4
Joined: Fri Mar 28, 2008 11:12 pm

re

Post by NSaneBMX »

:wink: Camera dimensions are in pourcents... :wink:
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post 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
Post Reply