Mesh Files

Advanced game related topics
nci
User
User
Posts: 28
Joined: Mon Jul 28, 2003 6:03 pm

Mesh Files

Post by nci »

How can I make Mesh Files without using expensive editors?
Or is it possible to create the objects in pure basic without using mesh
files?

Thanks
Neptune Century Inc.
Eric Butler, CEO, Lead programmer

"The road to happiness never ends..."
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Milkshape is only US $25 or EUR 25, not very expensive! :D

Or you can use code to create from scratch!

Code: Select all

Result = CreateMesh(#Mesh)

Description:
Creates a new empy #Mesh. SetMeshData() can be used to build a mesh from scratch by inserting the vertices, normals, uv textures and more. If the 'Result' is 0, the mesh creation has failed. If the #NewMesh was already created, it is automatically freed and replaced by the new one.

Supported OS:
Windows, Linux
--Kale

Image
LJ
Enthusiast
Enthusiast
Posts: 177
Joined: Wed Apr 30, 2003 4:00 pm

Sure

Post by LJ »

Sure it's possible to create .mesh files in Purebasic using data statements. Check out the .Mesh Editor toy I wrote. This simply changes the vertices, then exports out to hard coded data statements in a complete .pb file that runs independently of the .mesh editor program, but if you made it also change the faces and then gave it the option to add vertices and faces, you'd have a full fledged .mesh editor. And what's really cool about using data statements is that you can post your code in the message thread and everyone can get your .mesh creation without having to download seperate resources from a web hosting site, it's just all included right in your file in the data statements. But creating a .mesh editor that can make really nice models, now that would be very hard and time consuming.
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Post by hypervox »

Blender (www.blender.org) can create 3d models, and there's a mesh exporter script for blender on the ogre website (ogre.sourceforge.net)
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
Post Reply