MP3D Engine Alpha 33

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

Hi Michael,

I don't know if you are aware of this forum, but just in case I post this new 'bug' or issue for your knowledge.

Please look at this tip.
I use a parent mesh for the camera, and I turn it using RMB , so the camera orbitates around it and everytime pointing to it.
The problem is the picking feature; as you can see, after you orbitate the camera around, the picking feature is not accurate, because the camera believes it is always pointing to frontal global coords due it is attached to its parent mesh (pivotcam).

Code: Select all

WindowWidth=640:WindowHeigh=480
MP_Graphics3D(WindowWidth,WindowHeigh,0,2)
ViewPortX=30:ViewPortY=60:ViewPortWidth=600:ViewPortHeigh=400
light=MP_CreateLight(1)
MP_CreateCube()
cam=MP_CreateCamera():pivotcam=MP_CreateMesh():MP_EntitySetParent(cam,pivotcam,0):MP_EntitySetZ(cam,-2);  <---------  create a camera and attach it to a pivot entity
ViewPort=MP_CameraViewPort(cam,ViewPortX,ViewPortY,ViewPortWidth,ViewPortHeigh,$008B340A)
MP_CameraSetPerspective(cam,45,ViewPortWidth/ViewPortHeigh)
While WindowEvent()<>#PB_Event_CloseWindow
  mdx.f=MP_MouseDeltaX()/200:mdy.f=MP_MouseDeltaY()/200
  If MP_MouseButtonDown(1)
    MP_TurnEntity(pivotcam,mdy*60,mdx*60,0,0);   <------------------  I turn the pivot so the camera orbitates around it
  EndIf
  picked=MP_PickCamera(cam,WindowMouseX(0),WindowMouseY(0)):If picked:MP_Wireframe(1):Else:MP_Wireframe(0):EndIf
  MP_DrawText(300,60,Hex(picked)+" found. Distance: "+StrF(MP_PickedGetDistance(),4))
  MP_RenderWorld()
  MP_Flip()
Wend
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

MP_InitForceFeedBack() crashes

Post by Psychophanta »

1.- MP_InitForceFeedBack() function crashes the flux of the program, trying to read at address 0.
2.- MP_JoystickSlider() parameter is ignored.
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: MP3D Engine Alpha 32

Post by IceSoft »

Last edited by mpz on Sat Aug 13, 2016 23:34, edited 22 times in total.
Also the mp3d forum is unavailable:
Is it dead? :(
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

Thanks for bump here. I still wait for Michael to fix small issues i related.
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
Rings
Moderator
Moderator
Posts: 1427
Joined: Sat Apr 26, 2003 1:11 am

Re: MP3D Engine Alpha 32

Post by Rings »

IceSoft wrote:
Last edited by mpz on Sat Aug 13, 2016 23:34, edited 22 times in total.
Also the mp3d forum is unavailable:
Is it dead? :(
seems so, last visit of this forum from mpz: was Sun Aug 14, 2016 00:43

another closed lib passsing away ...
SPAMINATOR NR.1
Aleks_Longard
User
User
Posts: 59
Joined: Mon Dec 24, 2012 9:07 am
Location: Germany, Munich

Re: MP3D Engine Alpha 32

Post by Aleks_Longard »

Hi all!
Who can share the latest version of MP3D x64 / x86?

Thanks in advance!
Sory my bad english
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

Aleks_Longard wrote:Hi all!
Who can share the latest version of MP3D x64 / x86?

Thanks in advance!
https://mega.nz/#!4spCRCoA!wuvhnXRXZbVG ... iSPNI7XxKk
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
Aleks_Longard
User
User
Posts: 59
Joined: Mon Dec 24, 2012 9:07 am
Location: Germany, Munich

Re: MP3D Engine Alpha 32

Post by Aleks_Longard »

Psychophanta
Very big thanks!!!
Sory my bad english
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

Thanks to you.
MP3D is useful and complete pack to perform high quality and professional 3D stuff.
However I am now migrating to Blender and to the native lib form the PB package.

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.
Solidworks, AutoCAD, Catia, inventor, fusion360, Rhinoceros, etc. are powerful but not versatile at all.
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
marc_256
Enthusiast
Enthusiast
Posts: 742
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: MP3D Engine Alpha 32

Post by marc_256 »

Psychophanta wrote:Thanks to you.
MP3D is useful and complete pack to perform high quality and professional 3D stuff.
However I am now migrating to Blender and to the native lib form the PB package.

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.
Solidworks, AutoCAD, Catia, inventor, fusion360, Rhinoceros, etc. are powerful but not versatile at all.

Psychophanta 100% agree with you, I used lots of other, very expensive software ...
I use blender for years now ...
only for composing my scenes,

viewtopic.php?f=27&t=59692

marco
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Aleks_Longard
User
User
Posts: 59
Joined: Mon Dec 24, 2012 9:07 am
Location: Germany, Munich

Re: MP3D Engine Alpha 32

Post by Aleks_Longard »

Psychophanta
Do you have a version that is compatible with Purebasic v5.20 / 5.40?
The archive that you shared is very old, and does not work with the latest versions of PB.
In MP3D library, conveniently made functions for working with pixels and geometric objects. 3d I will not need.
I can use PB Engine3d.dll for my project, only if I understand the license correctly, this engine cannot be used in commercial projects.
Sory my bad english
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

Install in a x64 MSwindows with a x64 PB package:
Once you have a x64 PB package already installed in your MSwindows x64:
copy D3DX9d_43.dll 64bit lib from 'Compilers' directory to C:\Windows\System32, renamed to D3DX9_43.dll
copy D3DX9d_43.dll 32bit lib from 'Compilers' directory to C:\Windows\SysWOW64, renamed to D3DX9_43.dll
copy 'help' directory from 64bit package to the PB program files directory root
copy D3DX9d_43.dll 64bit lib from 'Compilers' directory to 'Compilers' directory in the PB program files directory root
copy 'MP3D Demos' directory from 64bit package 'Examples\3D' directory in the PB program files directory root
copy all files inside 'PureLibraries\Windows\Libraries' directory from 64bit package to the 'PureLibraries\Windows\Libraries' directory in the PB program files directory root
copy 'SubSystems\DX9\purelibraries\userlibraries\MP3D_Library' file from 64bit package to a 'SubSystems\DX9\purelibraries\userlibraries\MP3D_Library' new path and file in the PB program files directory root
Pay attention to this one, because adecuate file 'MP3D_Library' may vary depending on version of you PB x64 installed package: just test some MP3D Demos with the 3 versions of 'MP3D_Library'.


Install in a MSwindows with a x32 PB package:
Once you have a x32 PB package already installed in your MSwindows:
copy D3DX9d_43.dll 32bit lib from 'Compilers' directory to C:\Windows\System32, renamed to D3DX9_43.dll
copy 'help' directory from 32bit package to the PB program files directory root
copy D3DX9d_43.dll 32bit lib from 'Compilers' directory to 'Compilers' directory in the PB program files directory root
copy 'MP3D Demos' directory from 32bit package 'Examples\3D' directory in the PB program files directory root
copy all files inside 'PureLibraries\Windows\Libraries' directory from 32bit package to the 'PureLibraries\Windows\Libraries' directory in the PB program files directory root
copy 'SubSystems\DX9\purelibraries\userlibraries\MP3D_Library' file from 32bit package to a 'SubSystems\DX9\purelibraries\userlibraries\MP3D_Library' new path and file in the PB program files directory root
Pay attention to this one, because adecuate file 'MP3D_Library' may vary depending on version of you PB x32 installed package: just test some MP3D Demos with the different versions of 'MP3D_Library'.
NOTICE: 'MP3D\MP3D_32_x86 (Para instalar en un windows 32bit)\SubSystems\DX9\purelibraries\PB 5.41 y posteriores\MP3D_Library PB5.50' is the proper one for PB5.50 or newer (i.e. PB5.70), (always renamed to 'MP3D_Library').
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

marc_256 wrote: Psychophanta 100% agree with you, I used lots of other, very expensive software ...
I use blender for years now ...
only for composing my scenes,

viewtopic.php?f=27&t=59692

marco
Thanks Marco.
I am learning now Blender, and also doing with PB. I am even angry to have not know Blender in 2008 or before :evil: .
My greatest problem is I work much with complex rotations so I am barred in Blender, because not easy to perform some animations with some bizarre rotations.
However I am solving it.
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
Aleks_Longard
User
User
Posts: 59
Joined: Mon Dec 24, 2012 9:07 am
Location: Germany, Munich

Re: MP3D Engine Alpha 32

Post by Aleks_Longard »

Hi Psychophanta,
Thanks. I know where to copy MP3D files, the compiler swears at pointers in the library.
I will try to figure it out, only in your archive readme.txt says that this is version a32 for pb v4.61.
Sory my bad english
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: MP3D Engine Alpha 32

Post by Psychophanta »

If you follow exactly that instructions, then you should not have any problem.
However, tell me your PB version and your MSwindows scheme, so i will explain the correct config for you.
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
Post Reply