Search found 1125 matches

by Comtois
Fri Feb 16, 2024 11:21 pm
Forum: 3D Programming
Topic: How do I put different textures on the sides of a cube?
Replies: 9
Views: 506

Re: How do I put different textures on the sides of a cube?

change MeshVertexTextureCoordinate() if you need to rotate texture for each submesh InitEngine3D() InitSprite() InitKeyboard() ExamineDesktops() OpenScreen(DesktopWidth(0), DesktopHeight(0), DesktopDepth(0), "Cube 3D") Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Textures",...
by Comtois
Sun May 14, 2023 9:12 am
Forum: 3D Programming
Topic: MousePick() new bug
Replies: 6
Views: 1010

Re: MousePick() new bug

Doc say :
Result = MousePick(#Camera, x, y [, PickMask])

The entity pick is based on its bounding box, not on its mesh.
Use MouseRayCast()
by Comtois
Tue Jan 03, 2023 2:27 pm
Forum: Feature Requests and Wishlists
Topic: Spline Lib without Engine3D
Replies: 3
Views: 377

Re: Spline Lib without Engine3D

yes same code
by Comtois
Mon Dec 19, 2022 11:27 am
Forum: 3D Programming
Topic: Entity Animation
Replies: 35
Views: 3565

Re: Entity Animation

use OgreCommandLineTools_1.7.2
to see how it's done with robot.mesh and robot.skeleton

in the tool you will find OgreXMLConverter.exe use it to convert robot.mesh and robot.skeleton in xml files

in robot.mesh you have this line <skeletonlink name="robot.skeleton" />
by Comtois
Tue Dec 06, 2022 6:26 pm
Forum: 3D Programming
Topic: Entity Animation
Replies: 35
Views: 3565

Re: Entity Animation

you need a .mesh file and a .skeleton file (animation)
by Comtois
Wed Apr 28, 2021 4:30 pm
Forum: 3D Programming
Topic: Bug?: Absolute mode for ScaleEntity() for Cylinder does not work
Replies: 7
Views: 4910

Re: Bug?: Absolute mode for ScaleEntity() for Cylinder does not work

ScaleEntity(0,x,y,z,#PB_Relative) Scales the entity, combining it's current scale with the passed in scaling factor. @remarks This method applies an extra scaling factor To the entity's existing scale, ( unlike ScaleEntity(0,x,y,z,#PB_Absolute) which overwrites it ) combining it's current scale with...
by Comtois
Tue Oct 13, 2020 8:39 pm
Forum: Bugs - 3D Engine
Topic: ConvertLocalToWorldPosition and ConvertWorldToLocalPosition
Replies: 8
Views: 3229

Re: ConvertLocalToWorldPosition and ConvertWorldToLocalPosit

Fixed for Node.
Camera, mesh and particle should be removed in doc. Use Node instead
by Comtois
Mon Mar 11, 2019 9:37 am
Forum: 3D Programming
Topic: [Solved]: Get X or Y reference from camera frontal view
Replies: 10
Views: 3931

Re: [Solved]: Get X or Y reference from camera frontal view

what is nonsense is to try to answer you.
by Comtois
Sun Mar 10, 2019 10:49 am
Forum: 3D Programming
Topic: [Solved]: Get X or Y reference from camera frontal view
Replies: 10
Views: 3931

Re: [Solved]: Get X or Y reference from camera frontal view

Maybe it's better like that Macro getbase() AxisY\x=0:AxisY\y=1:AxisY\z=0 AxisZ\x=CameraDirectionX(Camera2):AxisZ\y=CameraDirectionY(Camera2):AxisZ\z=CameraDirectionZ(Camera2) AxisZ2\x=-AxisZ\x : AxisZ2\y=-AxisZ\y : AxisZ2\z=-AxisZ\z CROSS_PRODUCT(AxisX,AxisY,AxisZ2) CROSS_PRODUCT(AxisY,AxisZ2,AxisX...
by Comtois
Sat Mar 09, 2019 11:18 am
Forum: 3D Programming
Topic: [Solved]: Get X or Y reference from camera frontal view
Replies: 10
Views: 3931

Re: Question: Get X or Y reference from camera frontal view

you are disturbed by the debug, it was to control the result of the Qmv() Procedure. Either, I modified my code to highlight the 3 axes. #CameraSpeed = 2 IncludeFile #PB_Compiler_Home + "examples/3d/Screen3DRequester.pb" Define.f KeyX, KeyY, MouseX, MouseY Structure Vector3 x.f y.f z.f End...
by Comtois
Fri Mar 08, 2019 8:07 pm
Forum: 3D Programming
Topic: [Solved]: Get X or Y reference from camera frontal view
Replies: 10
Views: 3931

Re: Question: Get X or Y reference from camera frontal view

and answer is :

AxisX = orientation * UnitX
AxisY = orientation * UnitY
AxisZ = orientation * -UnitZ

May be i should write

Vector X = orientation * UnitX
Vector Y = orientation * UnitY
Vector Z = orientation * -UnitZ
by Comtois
Fri Mar 08, 2019 6:30 pm
Forum: 3D Programming
Topic: [Solved]: Get X or Y reference from camera frontal view
Replies: 10
Views: 3931

Re: Question: Get X or Y reference from camera frontal view

AxisX = orientation * UnitX AxisY = orientation * UnitY AxisZ = orientation * -UnitZ #CameraSpeed = 2 IncludeFile #PB_Compiler_Home + "examples/3d/Screen3DRequester.pb" Define.f KeyX, KeyY, MouseX, MouseY Structure Vector3 x.f y.f z.f EndStructure Structure quaternion Extends Vector3 w.f E...