![]() ![]() ![]() MP_PositionEntity (body,sliderX,sliderY,sliderZ) MP_PositionEntity (Mesh,sliderX,sliderY,sliderZ) MP_AddMesh(block4, Mesh ) : MP_FreeEntity(block4) MP_AddMesh(block3, Mesh ) : MP_FreeEntity(block3) Global body = MP_CreateRectangle(0.5,2,0. MP_SetPhysicMaterialProperties(MaterialID1, Elasticity.f, staticFriction.f, kineticFriction.f ) While Not MP_KeyDown(#PB_Key_Escape) And Not WindowEvent() = #PB_Event_CloseWindow Esc abfrage oder Windows Schliessen MP_ConstraintCreateSlider (Mesh,1,0,0 ,sliderX,sliderY,sliderZ, body) create a slider joint functions MP_SetPhysicMaterialtoMesh (plane, NewMaterial) MP_ConstraintCreateHinge (body,0,0,1,hingX,hingY,hingZ) MP_SetPhysicMaterialtoMesh (Mesh, NewMaterial) MP_SetPhysicMaterialtoMesh (body, NewMaterial) MP_SetPhysicMaterialProperties(NewMaterial,0,2,2) Global plane = MP_CreateRectangle(20,20,1) Texture2 = MP_LoadTexture(#PB_Compiler_Home "Examples/3D/Data/Textures\Wood.jpg",0) SetWindowTitle(0, "Push Space for boxes") Global bitplanes.b=DesktopDepth(0),RX.w=DesktopWidth(0),RY.w=DesktopHeight(0) #Mp3d purebasic windows the values here are experimental, but we can calculate it exactly from geometry Here is another version an artillery, this is done by also rotating the stones (the cubes) the same as the Gun so it will be pushed the correct way ,also we need to put them near the gun opening. Texture2 = MP_LoadTexture(#PB_Compiler_Home "Examples/3D/Data/Textures\Wood.15000 StopModule(#MODULE_FILE) End EndIf EndIfFirst, we need to initialize the sound environment just like the wave file example by using the‘InitSound()’ command. Next, we need to initialize the module playing capabilities of PureBasic byusing the ‘InitModule()’ command. Both of these commands should be tested to ensure that both areinitialized correctly. Sounds 233Once the environment is set up we can load a module by using the ‘LoadModule()’ command(Helpfile:Reference Manual->2D Games Libraries->Module->LoadModule). This command takes twoparameters, the first is the PB number that you wish to be associated with this module and the secondis the filename of the module to be loaded.Once it’s loaded we can play this module at any time using the ‘PlayModule()’ command(Helpfile:Reference Manual->2D Games Libraries->Module->PlayModule). Just like the‘PlaySound()’ command, this one takes one parameter, which is the PB number of the module youwant to play. To stop the module from playing you can use the ‘StopModule()’ command.The Downsides Of Using ModulesThere are two big downsides of using modules in your PureBasic programs. The first is that there is noeasy way to embed and load from memory any modules that need to be played. This means that youhave to distribute all the used module files along with your executable. There are however, ways ofstoring the module in your executable, and then writing it to disk before loading and playing it, but thisis a little bit cumbersome. The second downside is that you have to distribute the ‘Midas11.dll’ filealong with your program. Microsoft DirectX (.This dynamic linked library is loaded by the command ‘InitModule()’ andwill error if it doesn’t find it. integration of many function of the FXLib by Epyx in mp3D (Thanks to the implementation of Epyx). Texture / pixel / vertex shader support mouse, joystick and Force Feedback Support Sprite collision system, now with pixel pixel check Sprite engine with rotating and animated sprites Parent Kid for Sprite and Mesh available You can use many PureBasic commands directly I hope you will have fun.ĥ4 improvements from 32 to 33 (see "readme Alpha 33.txt" in zip. Including direct programming, I think Blender is now the more versatile and powerful software for ANY 3D stuff in the scene in the commercial and free scene. However I am now migrating to Blender and to the native lib form the PB package. There is no installer only a zip file with libs. MP3D is useful and complete pack to perform high quality and professional 3D stuff. of related libs were changed to the PBOSL site. This includes the latest versions of famous UserLibs by Rings, Danilo. Not all demos are working correct, but most of them. A large package of powerful UserLibs has been released under the name. I have checked my old MP3D engine and have made a actualised version for PB 5.73 X86/X64 version. ![]() After a long time and a new job i have some time for programming now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |