Well you CAN do something useful with Engine3d
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
-
- Addict
- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
- langinagel
- Enthusiast
- Posts: 131
- Joined: Fri Jan 28, 2005 11:53 pm
- Location: Germany
- Contact:
Hi,
the fpstrainer is nice, but I cannot build a running version with PB4.31.
from the ogre.log:
any hints?
Cheers from Monaco
LN
the fpstrainer is nice, but I cannot build a running version with PB4.31.
from the ogre.log:
- 21:46:53: Creating viewport on target 'PureBasic Ogre', rendering from camera 'C0', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
21:46:53: TerrainSceneManager: Activated PageSource Heightmap
21:46:53: Texture: Clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
21:46:53: Mesh: Loading Robot.mesh.
21:46:53: OGRE EXCEPTION(2:InvalidParametersException): Header chunk didn't match either endian: Corrupted stream? in Serializer::determineEndianness at OgreSerializer.cpp (line 90)
21:46:53: Texture: skin.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:46:53: Texture: skinhit.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
any hints?
Cheers from Monaco
LN
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
btw Irrlicht - i need some C++ Assistance within 1 Month or so and i can get a fixed version for 4.31 - atm am stuck with some compiler errors i dont get as am not that debugger savvy in C++ - Most is working - had to disable some functions for now but it runs nicely using a more latest version of irrlicht.
Am gone tho til August - on workduty traveling around fixing stuff. From August then i got time to program for fun again.
Cheers,
Thalius
Am gone tho til August - on workduty traveling around fixing stuff. From August then i got time to program for fun again.
Cheers,
Thalius
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!
"
but there's always enough Time to make them *look* right."
"psssst! i steal signatures... don't tell anyone!

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
@Rook
The distance? Maybe I don't understand really good what you ask, but if it's a distance between 2 entities in 3D, it's the Pythagore calcul:
If it's a distance an entity and the camera:
The distance? Maybe I don't understand really good what you ask, but if it's a distance between 2 entities in 3D, it's the Pythagore calcul:
Code: Select all
Procedure.F Distance3D(EntityA.I, EntityB.I)
Protected DistX.F
Protected DistY.F
Protected DistZ.F
DistX = EntityX(EntityA) - EntityX(EntityB)
DistY = EntityY(EntityA) - EntityY(EntityB)
DistZ = EntityZ(EntityA) - EntityZ(EntityB)
ProcedureReturn Sqr((DistX * DistX) + (DistY * DistY) + (DistZ * DistZ) )
EndProcedure
Code: Select all
Procedure.F CamDistance3D(Entity.I, Camera.I)
Protected DistX.F
Protected DistY.F
Protected DistZ.F
DistX = EntityX(Entity) - CameraX(Camera)
DistY = EntityY(Entity) - CameraY(Camera)
DistZ = EntityZ(Entity) - CameraZ(Camera)
ProcedureReturn Sqr((DistX * DistX) + (DistY * DistY) + (DistZ * DistZ) )
EndProcedure