Proper versions for 3D programming in PB?

Windows specific forum
User avatar
FihmpenRouk
User
User
Posts: 27
Joined: Mon May 08, 2006 2:27 pm

Proper versions for 3D programming in PB?

Post by FihmpenRouk »

Hello, everyone.

Sorry for barging in like this and start with a few perhaps stupid questions, but I hope someone has the patience to help me out a little.

I've spent allmost all day trying to find the right tools and versions but now I have given up. Mostly I'm the kind of guy who finds stuff for others but not this time ... :lol:

Anyway: Here's my dilemma.


First som background (skip it if it seems boring and read my question at the bottom):

I've been playing around with some 3D-stuff in PB and it's rather fun. I want to do some more and that leaves me to find an editor for 3d-objects and more.

I use PB 3.94 - Windows.

What exactly versions of tools shall I use? Is blender okay? But witch versions. I have tried all different versions of different stuff and nothing works all the way through.

I hav tried the xmlconverter 0.11.1 and it can convert the robot.mesh to xml but nothing from what I have managed to export in xml from Blender. I looked at the script in xmlconverter 0.11.1 and it seems to be a whole diffferent format than the rest of python files in Blender. It doesn't show up and somewhere I saw that shift F10 or something should call up the script but nothing happned.

Later versions of OGREexporter include all normals and that is perhaps what makes xmlconv 0.11.1 to fail hard?

Well, I can continue this story, but I don't think anyone finds any interest in that. :roll:

-----
Finally the questions:

What versions of what programs can I use that can give me working mesh-files and so on to PB 3.94 without making me use any beta-versions in the PB system?

What versions of what programs can I use that give me working mesh-files and so on for PB 4 Beta?

I prefer to work with PB3.94 and Blender (I think), but if I get an answer to both questions I promise that I will not cry. :wink:

Thanks to everyone developing and supporting PureBasic by programming and running legal licenses. :D
PureBasic occasionally since 2000 - when hacks are to be done. :smile:
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

I use Milkshape for 3d modeling: http://www.swissquake.ch/chumbalum-soft/

using this exporter: http://www.ogre3d.org/index.php?option= ... t=category

I have had no problem with mesh or material scripts exported from this program. The old exporter was a bit buggy but it seems to be rock solid now. I've just loaded a 65,000 poly model, reduced the poly count to 25,000 and exported it to .mesh and everything has gone fine! :D

Remeber that OGRE doesn't natively support mesh xml files and that they need to be converted to the binary form (*.mesh) to load correctly into OGRE. You can convert these using the free command line tools, also found here along with all latest versions of exporters:
http://www.ogre3d.org/index.php?option= ... tcat&cat=5

Other links of interest:
http://www.purebasic.fr/english/viewtopic.php?t=19380
--Kale

Image
User avatar
FihmpenRouk
User
User
Posts: 27
Joined: Mon May 08, 2006 2:27 pm

Post by FihmpenRouk »

Hi, Kale.

Now I have tried Milkshape 1.7.8 and the linked Exporter v1.2.0.

I made a simple box and exported it without changing any settings.

With the

Code: Select all

If LoadMesh(0, "box.mesh") = 0: Debug "No way!": End :EndIf
The program fails with the message "No way!".

When i check the header in the .mesh-files, I can read [MeshSerializer_v1.00] in the standard robot.mesh, but my new box says [MeshSerializer_v1.30].

This is where I got stucked with Blender, too.

Well, since you say it works well for you, I guess there is something different in my PureBasic 3.94 setup then? But what?

Are you using another 3D-library or something? I use the stuff out of the box for PB 3.94. My Engine3D.dll is 611.328 bytes and I can't read out the version of it.

When I searched this forum yesterday, I saw something about a beta engine. Are you perhaps using that?

Well, if that's the only way to make it work, I will have to use the beta, even though it's not so good to use beta when figuring out how stuff works. :) But, in that case. Where do I find that beta version? The links I tried yesterday were broken.
PureBasic occasionally since 2000 - when hacks are to be done. :smile:
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

FihmpenRouk wrote:Well, since you say it works well for you, I guess there is something different in my PureBasic 3.94 setup then? But what?
I've been using v4, try with that, it's released today!! :D
--Kale

Image
User avatar
FihmpenRouk
User
User
Posts: 27
Joined: Mon May 08, 2006 2:27 pm

Post by FihmpenRouk »

Hi!

Sorry, for a late answer. I'm in the middle of moving and I'm atm not @home.

I will try V4 later and see.

Thnx!
PureBasic occasionally since 2000 - when hacks are to be done. :smile:
ToastEater
User
User
Posts: 49
Joined: Tue Jul 25, 2006 5:07 pm

Post by ToastEater »

I know theres lot of topics about this so wont bother ya guys/girls about make another one. Im totaly a n00b to 3d, what i need is tutorials for purebasic or some similiar i can easly translate, plus i dont get it ?
ogre?
directx?
opengl?
zap3d(found on purearea)

is ogre some there handle directx or opengl? or is it a new 3d enginn? i have made lot of research my self but i just seem cant get any usefull for complete n00bs. i mean like i have never made any 3D other then some 3DsMax2.5 :oops: . Please any tutorials ?
Sorry for my damn english
amour au PB et au traducteur de google d'ofcourse
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Try DeleD lite (which is free) and the native OGRE exporter plugin that is at the site. These work ok.

Also Milkshape (demo) and the Ogre Exporter Plugin available at milkshape site.

The Blender plugin never worked...


Ogre works in DX in windows and GL under linux and OsX.
The reason why we are a version behind the latest OGRE is because all Purebasic Sprite commands make use of DX7, which was dropped by the newest OGRE engine release.

Because converting all those internal libs to DX8 or DX9 are much work, Fred said he will take a look at PB OGRE after the Linux and Mac versions are released.

The biggest changes to PB 4.0 in Ogre are:
OGRE engine to 1.0.7 version
WorldCollisions
WorldPhysics

NOTE

PB only allows .png textures in .material scripts!!!

So you have convert all .bmp, .jpg, .tga textures to .png's and edit the .material file by hand so that the texture names are correct with the new png names.

I'm preparing a small tutorial using DeleD Lite (which is free) so everyone can give their first steps in model converting...
ToastEater
User
User
Posts: 49
Joined: Tue Jul 25, 2006 5:07 pm

Post by ToastEater »

cool but i was also asking how to do it ? with the programming, not about modelling how to use to make boxes not to make the 3d but like set the cam and make the squares cubes etc, right now i dont care about thetexture i just wanna make 3D PROGRAMMING :S


:oops:

regardsz
Sorry for my damn english
amour au PB et au traducteur de google d'ofcourse
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

PB does not support basic shapes yet (FRED?)
You must create them yourself and save them has meshes..

Has for programming i would advice you first start by looking inside the examples folder in the Purebasic directory.

There are quite a few starter examples about 3d things :D
ToastEater
User
User
Posts: 49
Joined: Tue Jul 25, 2006 5:07 pm

Post by ToastEater »

i know but so much and i dont get any explaination of what and why put it there plus how make others and rendering and etc :S
Sorry for my damn english
amour au PB et au traducteur de google d'ofcourse
Post Reply