Another quick question for you gurus! The source I've looked at so far creates meshes using triangle surfaces - can you create meshes in purebasic that have surfaces of 4 sides or more?
Also, once you've created your mesh, can you reference a particular surface so you can perform some sort of action eg. scaleing? If this is not possible in the 3d implementation of purebasic but is available in a addon library, please let me know.
Rgrds
Hypervox
Quads in Meshs, and surface selection
Quads in Meshs, and surface selection
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000
Registered Purebasic User
PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/

PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000

Registered Purebasic User

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
Re: Quads in Meshs, and surface selection
No, you will have to use triangleshypervox wrote: can you create meshes in purebasic that have surfaces of 4 sides or more?
Also, once you've created your mesh, can you reference a particular surface so you can perform some sort of action eg. scaleing?
As you build your mesh manually, you can always scale a particular surface manually. For example :
http://purebasic.fr/english/viewtopic.php?t=21634
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
Bugger. I'm trying to load a OBJ file , and as OBJ's can have faces of 4 edges or more, that might be problematical. I suppose I could triangulate the mesh on the fly (i.e. if I have a square face, convert it to 2 triangles).
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000
Registered Purebasic User
PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/

PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000

Registered Purebasic User

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
May be you can use Deledto convert your obj file ?hypervox wrote:Bugger. I'm trying to load a OBJ file , and as OBJ's can have faces of 4 edges or more, that might be problematical. I suppose I could triangulate the mesh on the fly (i.e. if I have a square face, convert it to 2 triangles).
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/