Dreamotion3d (and PhysX) continuation...
tmyke
Hello! Could you add such function as DM_PickedSurface()? Please, this function is very necessary for system of materials (glass, wood, concrete in FPS)
PS
By the way - functions DM_PickedU(V) causes linked error
Happy New Year!
Hello! Could you add such function as DM_PickedSurface()? Please, this function is very necessary for system of materials (glass, wood, concrete in FPS)
PS
By the way - functions DM_PickedU(V) causes linked error

PSSPOLINK: error: Unresolved external symbol '_DM_PickedU'
POLINK: error: Unresolved external symbol '_DM_PickedV'
Happy New Year!

PureBasic forever!
-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact:
The Beta2 version is here: http://www.purebasicgames.fr/e107_plugi ... p?150.last
Sorry, but for the moment it's only in French, but english doc coming soon (some weeks).
@Cyan: Do you use the last version, which has been on line for this morning?
@Chrono Syndrome: Like says it Cpl.Bator, the function “Torus” already exists, for the function pyramid, I will see…
Sorry, but for the moment it's only in French, but english doc coming soon (some weeks).
@Cyan: Do you use the last version, which has been on line for this morning?
@Chrono Syndrome: Like says it Cpl.Bator, the function “Torus” already exists, for the function pyramid, I will see…
-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact:
Code: Select all
DM_CreateCone()

I really don't like this way... It's unpureFor mesh and memory , you can make a manual mesh , see example (12-CreateMesh.pb)

Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
There A were a bug, Re-load the module here (just DLL and lib) and test again
http://www.dreamotion3d.com/_downloads/ ... dulePB.zip
good night...

http://www.dreamotion3d.com/_downloads/ ... dulePB.zip
good night...
@Cyan:
there 3 instruction for find position in the world:
PickTriangle.l() is a traingle of surface picked,
PickedU.l() is Barycentric hit coordinates, U on this triangle
PickedV.l() is Barycentric hit coordinates, V on this triangle
if you want absolute coordinate, use PickedX()/PickedY()/PickedZ() like this:
Re-load the module (just somes bugs fixed):http://www.dreamotion3d.com/_downloads/ ... dulePB.zip
@Heathen:
For those who are not a Beta-tester, There is only the
section “General discution” on the forum, and which is in English.
there 3 instruction for find position in the world:
PickTriangle.l() is a traingle of surface picked,
PickedU.l() is Barycentric hit coordinates, U on this triangle
PickedV.l() is Barycentric hit coordinates, V on this triangle
if you want absolute coordinate, use PickedX()/PickedY()/PickedZ() like this:
Code: Select all
; Include files
IncludePath "Include\"
IncludeFile "dreamotion3D.pbi"
Global *camera.CEntity
Global *mesh.CEntity
Global *boule.CEntity
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
End
EndIf
; Initialize graphic windows
DM_Graphics3D(800, 600, 32, 0, 1)
; some light
DM_AmbiantLight(150, 150, 150)
DM_CreateLight(3)
; little sphere
*boule = DM_CreateSphere()
DM_ScaleMesh(*boule, 0.2,0.2,0.2)
DM_EntityPickMode(*boule, #False)
; big sphere, red
*mesh = DM_CreateSphere()
DM_ScaleMesh(*mesh, 3,3,3)
DM_EntityColor(*mesh, 255,0,0,255)
DM_TranslateEntity(*mesh,3,0,0)
; one camera
*camera = DM_CreateCamera()
DM_MoveEntity(*camera, 0,0,-15.0)
DM_CameraClsColor(*camera, 125, 125, 125)
; main loop
Repeat
ExamineKeyboard()
ExamineMouse()
ShowCursor_(1)
If KeyboardReleased(#PB_Key_Escape) Or WindowEvent()=#PB_Event_CloseWindow
Quit=1
EndIf
If MouseButton(#PB_MouseButton_Right)
*mesh = DM_CameraPick(*camera, MouseX(), MouseY())
If *mesh<> #Null
DM_PositionEntity(*boule, DM_PickedX(),DM_PickedY(),DM_PickedZ())
EndIf
EndIf
DM_BeginScene()
DM_RenderWorld()
DM_EndScene()
Until Quit=1
DM_ClearGraphics()
End
@Heathen:
For those who are not a Beta-tester, There is only the
section “General discution” on the forum, and which is in English.

-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact:
BUGReprot: That's version crashes my OS x_x ! When I trying to run EVERY example, my PC rebooting after dispalying Dream3D's windows.
Using: PB 4.00 (final), WinXP, DX9.0C. Videocard: VIA/S3G UniChrome Pro IGP
Using: PB 4.00 (final), WinXP, DX9.0C. Videocard: VIA/S3G UniChrome Pro IGP
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
-
- Enthusiast
- Posts: 169
- Joined: Thu Oct 05, 2006 6:44 am
- Contact: