so I tried to add a small column of smoke to my 3D-pcb. I took a look at the plane example from pf shadoko (https://www.purebasic.fr/english/viewto ... 64#p535964) and wanted to add the code for the smoke to my program. This doesn't work and I'm completely lost how to do this. What I learned, is that the particle-library doesn't seem to work as I expected it (the particles aren't "ejected", the are placed in a random manner within a defined space?!). It the particle library even the right place to look at? My goal is a small "fountain" of smoke over a certain point of my pcb (to show where a part is). Is this possible with little code?
Code: Select all
InitEngine3D()
InitSprite()
OpenWindow(0, 0, 0, 640, 480, "Cube example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 640, 480, 0, 0, 0)
; Light
CreateLight(#PB_Any, RGB(25, 25, 180), -5, 10, 5, #PB_Light_Point)
; Camera
CreateCamera(0, 0, 0, 100, 100)
MoveCamera(0, 2, 1, 3, #PB_Absolute | #PB_Local)
CameraLookAt(0, 0, 0, 0)
; Erstelle den Würfel und binde ihn an die Szene
CreateCube(0, 1)
CreateEntity(0, MeshID(0), #PB_Material_None)
Repeat
RenderWorld()
FlipBuffers()
Until WaitWindowEvent(1) = #PB_Event_CloseWindow