Pure Basic the final hurdle

Started by Pfaber11, December 28, 2022, 11:08:19

Previous topic - Next topic

Pfaber11

Well I am stopping using Pure Basic until it works properly . The one thing which is holding me back is the fact that my models will not animate. I am going to shelve it until openGL is working ok and the no animation of entitys is sorted . I've just sunk 8 months into this and am quite good at it now . The animation or lack of it is just not quite good enough for me . This was gonna be the last hurdle everything else was great and works well . I've been trying to sort this for a couple of weeks and It just doesn't work. If anybody knows different and can do this I would like to hear from you. Thanks for reading . Bonjour
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

dawlane

#1
I've seen your post over on the PB forums. No body will be able to see what the problem is unless you post something for them to test and the exact process you've used to export from Blender.
I remember something about Quaternion vs euler movement being an issue for someone in the past.

Personally, I've always thought that Ogre3D was overrated and not the best 3D engine with having to jump through hoops to convert the mesh into the Ogre3D format.

I may have a play around at some point with blender, Purebasic and Ogre3D.

Coder Apprentice

#2
Quote from: Pfaber11 on December 28, 2022, 11:08:19
Well I am stopping using Pure Basic until it works properly . The one thing which is holding me back is the fact that my models will not animate. I am going to shelve it until openGL is working ok and the no animation of entitys is sorted . I've just sunk 8 months into this and am quite good at it now . The animation or lack of it is just not quite good enough for me . This was gonna be the last hurdle everything else was great and works well . I've been trying to sort this for a couple of weeks and It just doesn't work. If anybody knows different and can do this I would like to hear from you. Thanks for reading . Bonjour

PureBasic Ogre has quite a few issues at the moment and had in the past but none of those have to do anything with your problem I think. If you fire up PureBasic and load any of the examples with animated object, they all work. So what's your conclusion? Study the working examples. In the examples\3D\Data\Packs there is a file called Sinbad.zip. This is the character from the 3D\Demos\Character.pb .  If you open Sinbad.zip you can find the .mesh .skeleton files and also the .blend file. So you can load it to blender and study it and there is the Character.pb working source code to study.

Alienhead

#3
When I was messing around with pB in the past, I always exported out of blender as .x and converted to orge3d .mesh using unwrap3d ( https://www.unwrap3d.com/u3d/downloads.aspx ). never had a problem. Of course .x format is dated now but unwrap imports .fbx, glb or whatever.. just have to get it in unwrap3d then out as .mesh ogre.

You could try sending me the model and I'll convert it for you for a test so you don't waste money on unwrap3d if it does not work with the current pB.

Lol, I purchased unwrap3d back in the early blitz3d days  and I have never once uv mapped a model with it, strictly use it for file conversions..  and i still use it today with the more current engines.

Pfaber11

#4
I think it's because the mesh serialization number , the robot.mesh  in the examples has 1.10 serialization where as my modern ish meshes are serialization 1.8  . This is I think the problem.  They will still display in ogre but the animations won't play. Thanks for the advice though and I'm going to put some files on here so Alien Head can take a look at them who has more experience than me . I have decided I'm gonna stick with PureBasic even if I have to wait for the upgrade which might happen someday . I can manage with still entity's  for the time being . Thanks for your time.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

#5
I used Blender 3.4 to make them . I deliberately made it as simple as possible a 2 bone mesh. I Have tried ogreassimpconverter lots and it works but not with animation . I also tried the ogre xml converter and got the same thing (serialization 1.80). I believe if I can make the 1.1 of the robot mesh it will work. I've been at this a couple of weeks now and these are my findings . Thanks to you all.
Hello Alienhead please take a look when you have the time . I do really like ogre although the shadows flicker a bit around the edges but from what I have tried it is very similar to AGK 3D but still took me 6 to 8 months to get the hang of . I think I saw somewhere that Fred was planning to upgrade ogre. I think this would be smart move but could be some time . Have a nice evening . 
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

I have sorted it use "ogre mesh tool 1.3.1 ." I cannot fit the file on here It will not allow as too large . Anyway I'll try and put a link on
here . This works for me . I put in a dae mesh (Blender) and out pops a .mesh that works with  bone animation (skeleton).
https://ogremeshtool.software.informer.com/
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

The serialization number is one of them 1.0 and later 1.8
The robot is 1.0 the meshes I make are 1.8  .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

Hey guys it turned out to be the Meshserialization number . 1.41 works as 1.1 but not 1.8  for animation . here anyway
https://disk.yandex.com/d/rcyZhyqM3W6ajn
use the link above to see a program that will turn 1.8 into 1.41 and 1.1
File name OGRE_TOOLS.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz